clang-format chromium_src
This commit is contained in:
parent
c090dd2f81
commit
8cc81509d7
38 changed files with 202 additions and 231 deletions
|
@ -19,36 +19,36 @@ namespace chrome {
|
|||
enum {
|
||||
PATH_START = 1000,
|
||||
|
||||
DIR_APP = PATH_START, // Directory where dlls and data reside.
|
||||
DIR_LOGS, // Directory where logs should be written.
|
||||
DIR_USER_DATA, // Directory where user data can be written.
|
||||
DIR_CRASH_DUMPS, // Directory where crash dumps are written.
|
||||
DIR_APP = PATH_START, // Directory where dlls and data reside.
|
||||
DIR_LOGS, // Directory where logs should be written.
|
||||
DIR_USER_DATA, // Directory where user data can be written.
|
||||
DIR_CRASH_DUMPS, // Directory where crash dumps are written.
|
||||
#if defined(OS_WIN)
|
||||
DIR_WATCHER_DATA, // Directory where the Chrome watcher stores
|
||||
// data.
|
||||
DIR_WATCHER_DATA, // Directory where the Chrome watcher stores
|
||||
// data.
|
||||
#endif
|
||||
DIR_RESOURCES, // Directory containing separate file resources
|
||||
// used by Chrome at runtime.
|
||||
DIR_INSPECTOR, // Directory where web inspector is located.
|
||||
DIR_APP_DICTIONARIES, // Directory where the global dictionaries are.
|
||||
DIR_USER_DOCUMENTS, // Directory for a user's "My Documents".
|
||||
DIR_USER_MUSIC, // Directory for a user's music.
|
||||
DIR_USER_PICTURES, // Directory for a user's pictures.
|
||||
DIR_USER_VIDEOS, // Directory for a user's videos.
|
||||
DIR_DEFAULT_DOWNLOADS_SAFE, // Directory for a user's
|
||||
// "My Documents/Downloads", (Windows) or
|
||||
// "Downloads". (Linux)
|
||||
DIR_DEFAULT_DOWNLOADS, // Directory for a user's downloads.
|
||||
DIR_INTERNAL_PLUGINS, // Directory where internal plugins reside.
|
||||
DIR_RESOURCES, // Directory containing separate file resources
|
||||
// used by Chrome at runtime.
|
||||
DIR_INSPECTOR, // Directory where web inspector is located.
|
||||
DIR_APP_DICTIONARIES, // Directory where the global dictionaries are.
|
||||
DIR_USER_DOCUMENTS, // Directory for a user's "My Documents".
|
||||
DIR_USER_MUSIC, // Directory for a user's music.
|
||||
DIR_USER_PICTURES, // Directory for a user's pictures.
|
||||
DIR_USER_VIDEOS, // Directory for a user's videos.
|
||||
DIR_DEFAULT_DOWNLOADS_SAFE, // Directory for a user's
|
||||
// "My Documents/Downloads", (Windows) or
|
||||
// "Downloads". (Linux)
|
||||
DIR_DEFAULT_DOWNLOADS, // Directory for a user's downloads.
|
||||
DIR_INTERNAL_PLUGINS, // Directory where internal plugins reside.
|
||||
#if defined(OS_POSIX) && !defined(OS_MACOSX)
|
||||
DIR_POLICY_FILES, // Directory for system-wide read-only
|
||||
// policy files that allow sys-admins
|
||||
// to set policies for chrome. This directory
|
||||
// contains subdirectories.
|
||||
DIR_POLICY_FILES, // Directory for system-wide read-only
|
||||
// policy files that allow sys-admins
|
||||
// to set policies for chrome. This directory
|
||||
// contains subdirectories.
|
||||
#endif
|
||||
#if defined(OS_MACOSX) && !defined(OS_IOS)
|
||||
DIR_USER_APPLICATIONS, // ~/Applications
|
||||
DIR_USER_LIBRARY, // ~/Library
|
||||
DIR_USER_APPLICATIONS, // ~/Applications
|
||||
DIR_USER_LIBRARY, // ~/Library
|
||||
#endif
|
||||
#if defined(OS_CHROMEOS) || (defined(OS_LINUX) && defined(CHROMIUM_BUILD)) || \
|
||||
(defined(OS_MACOSX) && !defined(OS_IOS))
|
||||
|
@ -65,47 +65,47 @@ enum {
|
|||
// describe extensions which are to be
|
||||
// installed when chrome is run.
|
||||
#endif
|
||||
DIR_EXTERNAL_EXTENSIONS, // Directory where installer places .crx files.
|
||||
DIR_EXTERNAL_EXTENSIONS, // Directory where installer places .crx files.
|
||||
|
||||
DIR_DEFAULT_APPS, // Directory where installer places .crx files
|
||||
// to be installed when chrome is first run.
|
||||
DIR_PEPPER_FLASH_PLUGIN, // Directory to the bundled Pepper Flash plugin,
|
||||
// containing the plugin and the manifest.
|
||||
DIR_DEFAULT_APPS, // Directory where installer places .crx files
|
||||
// to be installed when chrome is first run.
|
||||
DIR_PEPPER_FLASH_PLUGIN, // Directory to the bundled Pepper Flash plugin,
|
||||
// containing the plugin and the manifest.
|
||||
DIR_COMPONENT_UPDATED_PEPPER_FLASH_PLUGIN, // Base directory of the Pepper
|
||||
// Flash plugins downloaded by the
|
||||
// component updater.
|
||||
FILE_RESOURCE_MODULE, // Full path and filename of the module that
|
||||
// contains embedded resources (version,
|
||||
// strings, images, etc.).
|
||||
FILE_LOCAL_STATE, // Path and filename to the file in which
|
||||
// machine/installation-specific state is saved.
|
||||
FILE_RECORDED_SCRIPT, // Full path to the script.log file that
|
||||
// contains recorded browser events for
|
||||
// playback.
|
||||
FILE_PEPPER_FLASH_PLUGIN, // Full path to the bundled Pepper Flash plugin
|
||||
// file.
|
||||
FILE_RESOURCE_MODULE, // Full path and filename of the module that
|
||||
// contains embedded resources (version,
|
||||
// strings, images, etc.).
|
||||
FILE_LOCAL_STATE, // Path and filename to the file in which
|
||||
// machine/installation-specific state is saved.
|
||||
FILE_RECORDED_SCRIPT, // Full path to the script.log file that
|
||||
// contains recorded browser events for
|
||||
// playback.
|
||||
FILE_PEPPER_FLASH_PLUGIN, // Full path to the bundled Pepper Flash plugin
|
||||
// file.
|
||||
FILE_PEPPER_FLASH_SYSTEM_PLUGIN, // Full path to the system version of the
|
||||
// Pepper Flash plugin, downloadable from
|
||||
// Adobe website. Querying this path might
|
||||
// succeed no matter the file exists or not.
|
||||
FILE_FLASH_SYSTEM_PLUGIN, // Full path to the system version of NPAPI
|
||||
// Flash plugin, downloadable from Adobe
|
||||
// website. Querying this path might succeed no
|
||||
// matter the file exists or not.
|
||||
FILE_NACL_PLUGIN, // Full path to the internal NaCl plugin file.
|
||||
DIR_PNACL_BASE, // Full path to the base dir for PNaCl.
|
||||
DIR_PNACL_COMPONENT, // Full path to the latest PNaCl version
|
||||
// (subdir of DIR_PNACL_BASE).
|
||||
DIR_COMPONENT_WIDEVINE_CDM, // Directory that contains component-updated
|
||||
// Widevine CDM files.
|
||||
FILE_WIDEVINE_CDM_ADAPTER, // Full path to the Widevine CDM adapter file.
|
||||
FILE_RESOURCES_PACK, // Full path to the .pak file containing
|
||||
// binary data (e.g., html files and images
|
||||
// used by internal pages).
|
||||
DIR_RESOURCES_EXTENSION, // Full path to extension resources.
|
||||
FILE_FLASH_SYSTEM_PLUGIN, // Full path to the system version of NPAPI
|
||||
// Flash plugin, downloadable from Adobe
|
||||
// website. Querying this path might succeed no
|
||||
// matter the file exists or not.
|
||||
FILE_NACL_PLUGIN, // Full path to the internal NaCl plugin file.
|
||||
DIR_PNACL_BASE, // Full path to the base dir for PNaCl.
|
||||
DIR_PNACL_COMPONENT, // Full path to the latest PNaCl version
|
||||
// (subdir of DIR_PNACL_BASE).
|
||||
DIR_COMPONENT_WIDEVINE_CDM, // Directory that contains component-updated
|
||||
// Widevine CDM files.
|
||||
FILE_WIDEVINE_CDM_ADAPTER, // Full path to the Widevine CDM adapter file.
|
||||
FILE_RESOURCES_PACK, // Full path to the .pak file containing
|
||||
// binary data (e.g., html files and images
|
||||
// used by internal pages).
|
||||
DIR_RESOURCES_EXTENSION, // Full path to extension resources.
|
||||
#if defined(OS_CHROMEOS)
|
||||
DIR_CHROMEOS_WALLPAPERS, // Directory where downloaded chromeos
|
||||
// wallpapers reside.
|
||||
DIR_CHROMEOS_WALLPAPERS, // Directory where downloaded chromeos
|
||||
// wallpapers reside.
|
||||
DIR_CHROMEOS_WALLPAPER_THUMBNAILS, // Directory where downloaded chromeos
|
||||
// wallpaper thumbnails reside.
|
||||
DIR_CHROMEOS_CUSTOM_WALLPAPERS, // Directory where custom wallpapers
|
||||
|
@ -118,24 +118,24 @@ enum {
|
|||
// supervised user whitelists are
|
||||
// installed.
|
||||
#if defined(OS_LINUX) || (defined(OS_MACOSX) && !defined(OS_IOS))
|
||||
DIR_NATIVE_MESSAGING, // System directory where native messaging host
|
||||
// manifest files are stored.
|
||||
DIR_USER_NATIVE_MESSAGING, // Directory with Native Messaging Hosts
|
||||
// installed per-user.
|
||||
DIR_NATIVE_MESSAGING, // System directory where native messaging host
|
||||
// manifest files are stored.
|
||||
DIR_USER_NATIVE_MESSAGING, // Directory with Native Messaging Hosts
|
||||
// installed per-user.
|
||||
#endif
|
||||
#if !defined(OS_ANDROID)
|
||||
DIR_GLOBAL_GCM_STORE, // Directory where the global GCM instance
|
||||
// stores its data.
|
||||
DIR_GLOBAL_GCM_STORE, // Directory where the global GCM instance
|
||||
// stores its data.
|
||||
#endif
|
||||
|
||||
// Valid only in development environment; TODO(darin): move these
|
||||
DIR_GEN_TEST_DATA, // Directory where generated test data resides.
|
||||
DIR_TEST_DATA, // Directory where unit test data resides.
|
||||
DIR_TEST_TOOLS, // Directory where unit test tools reside.
|
||||
DIR_GEN_TEST_DATA, // Directory where generated test data resides.
|
||||
DIR_TEST_DATA, // Directory where unit test data resides.
|
||||
DIR_TEST_TOOLS, // Directory where unit test tools reside.
|
||||
#if defined(OS_LINUX)
|
||||
FILE_COMPONENT_FLASH_HINT, // A file in a known location that points to
|
||||
// the component updated flash plugin.
|
||||
#endif // defined(OS_LINUX)
|
||||
FILE_COMPONENT_FLASH_HINT, // A file in a known location that points to
|
||||
// the component updated flash plugin.
|
||||
#endif // defined(OS_LINUX)
|
||||
|
||||
PATH_END
|
||||
};
|
||||
|
|
|
@ -34,7 +34,8 @@ bool GetDefaultUserDataDirectory(base::FilePath* result);
|
|||
// of this directory, with names like "Cache" and "Media Cache".
|
||||
// This will always fill in |result| with a directory, sometimes
|
||||
// just |profile_dir|.
|
||||
void GetUserCacheDirectory(const base::FilePath& profile_dir, base::FilePath* result);
|
||||
void GetUserCacheDirectory(const base::FilePath& profile_dir,
|
||||
base::FilePath* result);
|
||||
|
||||
// Get the path to the user's documents directory.
|
||||
bool GetUserDocumentsDirectory(base::FilePath* result);
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
#include "printing/page_size_margins.h"
|
||||
#include "printing/print_job_constants.h"
|
||||
#include "third_party/WebKit/public/web/WebPrintScalingOption.h"
|
||||
#include "ui/gfx/native_widget_types.h"
|
||||
#include "ui/gfx/geometry/rect.h"
|
||||
#include "ui/gfx/native_widget_types.h"
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#include "ipc/ipc_platform_file.h"
|
||||
|
@ -71,8 +71,7 @@ struct PrintMsg_PrintPages_Params {
|
|||
|
||||
#define IPC_MESSAGE_START PrintMsgStart
|
||||
|
||||
IPC_ENUM_TRAITS_MAX_VALUE(printing::MarginType,
|
||||
printing::MARGIN_TYPE_LAST)
|
||||
IPC_ENUM_TRAITS_MAX_VALUE(printing::MarginType, printing::MARGIN_TYPE_LAST)
|
||||
IPC_ENUM_TRAITS_MIN_MAX_VALUE(printing::DuplexMode,
|
||||
printing::UNKNOWN_DUPLEX_MODE,
|
||||
printing::SHORT_EDGE)
|
||||
|
@ -224,7 +223,6 @@ IPC_STRUCT_BEGIN(PrintHostMsg_DidPreviewDocument_Params)
|
|||
IPC_STRUCT_MEMBER(int, preview_request_id)
|
||||
IPC_STRUCT_END()
|
||||
|
||||
|
||||
// Messages sent from the browser to the renderer.
|
||||
|
||||
// Tells the render view to switch the CSS to print media type, renders every
|
||||
|
@ -235,14 +233,12 @@ IPC_MESSAGE_ROUTED3(PrintMsg_PrintPages,
|
|||
base::string16 /* device name*/)
|
||||
|
||||
// Tells the render view that printing is done so it can clean up.
|
||||
IPC_MESSAGE_ROUTED1(PrintMsg_PrintingDone,
|
||||
bool /* success */)
|
||||
IPC_MESSAGE_ROUTED1(PrintMsg_PrintingDone, bool /* success */)
|
||||
|
||||
// Tells the render view to switch the CSS to print media type, renders every
|
||||
// requested pages for print preview using the given |settings|. This gets
|
||||
// called multiple times as the user updates settings.
|
||||
IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview,
|
||||
base::DictionaryValue /* settings */)
|
||||
IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview, base::DictionaryValue /* settings */)
|
||||
|
||||
// Messages sent from the renderer to the browser.
|
||||
|
||||
|
@ -279,8 +275,8 @@ IPC_SYNC_MESSAGE_ROUTED0_1(PrintHostMsg_GetDefaultPrintSettings,
|
|||
|
||||
// you can set the printer
|
||||
IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_InitSettingWithDeviceName,
|
||||
base::string16, /* device name */
|
||||
PrintMsg_Print_Params /* default_settings */)
|
||||
base::string16, /* device name */
|
||||
PrintMsg_Print_Params /* default_settings */)
|
||||
|
||||
// The renderer wants to update the current print settings with new
|
||||
// |job_settings|.
|
||||
|
@ -297,14 +293,13 @@ IPC_SYNC_MESSAGE_ROUTED2_2(PrintHostMsg_UpdatePrintSettings,
|
|||
IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_ScriptedPrint,
|
||||
PrintHostMsg_ScriptedPrint_Params,
|
||||
PrintMsg_PrintPages_Params
|
||||
/* settings chosen by the user*/)
|
||||
/* settings chosen by the user*/)
|
||||
|
||||
// This is sent when there are invalid printer settings.
|
||||
IPC_MESSAGE_ROUTED0(PrintHostMsg_ShowInvalidPrinterSettingsError)
|
||||
|
||||
// Tell the browser printing failed.
|
||||
IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed,
|
||||
int /* document cookie */)
|
||||
IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, int /* document cookie */)
|
||||
|
||||
// Sends back to the browser the complete rendered document (non-draft mode,
|
||||
// used for printing) that was requested by a PrintMsg_PrintPreview message.
|
||||
|
|
|
@ -13,44 +13,38 @@
|
|||
#define IPC_MESSAGE_START TtsMsgStart
|
||||
|
||||
IPC_STRUCT_TRAITS_BEGIN(TtsUtteranceRequest)
|
||||
IPC_STRUCT_TRAITS_MEMBER(id)
|
||||
IPC_STRUCT_TRAITS_MEMBER(text)
|
||||
IPC_STRUCT_TRAITS_MEMBER(lang)
|
||||
IPC_STRUCT_TRAITS_MEMBER(voice)
|
||||
IPC_STRUCT_TRAITS_MEMBER(volume)
|
||||
IPC_STRUCT_TRAITS_MEMBER(rate)
|
||||
IPC_STRUCT_TRAITS_MEMBER(pitch)
|
||||
IPC_STRUCT_TRAITS_MEMBER(id)
|
||||
IPC_STRUCT_TRAITS_MEMBER(text)
|
||||
IPC_STRUCT_TRAITS_MEMBER(lang)
|
||||
IPC_STRUCT_TRAITS_MEMBER(voice)
|
||||
IPC_STRUCT_TRAITS_MEMBER(volume)
|
||||
IPC_STRUCT_TRAITS_MEMBER(rate)
|
||||
IPC_STRUCT_TRAITS_MEMBER(pitch)
|
||||
IPC_STRUCT_TRAITS_END()
|
||||
|
||||
IPC_STRUCT_TRAITS_BEGIN(TtsVoice)
|
||||
IPC_STRUCT_TRAITS_MEMBER(voice_uri)
|
||||
IPC_STRUCT_TRAITS_MEMBER(name)
|
||||
IPC_STRUCT_TRAITS_MEMBER(lang)
|
||||
IPC_STRUCT_TRAITS_MEMBER(local_service)
|
||||
IPC_STRUCT_TRAITS_MEMBER(is_default)
|
||||
IPC_STRUCT_TRAITS_MEMBER(voice_uri)
|
||||
IPC_STRUCT_TRAITS_MEMBER(name)
|
||||
IPC_STRUCT_TRAITS_MEMBER(lang)
|
||||
IPC_STRUCT_TRAITS_MEMBER(local_service)
|
||||
IPC_STRUCT_TRAITS_MEMBER(is_default)
|
||||
IPC_STRUCT_TRAITS_END()
|
||||
|
||||
// Renderer -> Browser messages.
|
||||
|
||||
IPC_MESSAGE_CONTROL0(TtsHostMsg_InitializeVoiceList)
|
||||
IPC_MESSAGE_CONTROL1(TtsHostMsg_Speak,
|
||||
TtsUtteranceRequest)
|
||||
IPC_MESSAGE_CONTROL1(TtsHostMsg_Speak, TtsUtteranceRequest)
|
||||
IPC_MESSAGE_CONTROL0(TtsHostMsg_Pause)
|
||||
IPC_MESSAGE_CONTROL0(TtsHostMsg_Resume)
|
||||
IPC_MESSAGE_CONTROL0(TtsHostMsg_Cancel)
|
||||
|
||||
// Browser -> Renderer messages.
|
||||
|
||||
IPC_MESSAGE_CONTROL1(TtsMsg_SetVoiceList,
|
||||
std::vector<TtsVoice>)
|
||||
IPC_MESSAGE_CONTROL1(TtsMsg_DidStartSpeaking,
|
||||
int /* utterance id */)
|
||||
IPC_MESSAGE_CONTROL1(TtsMsg_DidFinishSpeaking,
|
||||
int /* utterance id */)
|
||||
IPC_MESSAGE_CONTROL1(TtsMsg_DidPauseSpeaking,
|
||||
int /* utterance id */)
|
||||
IPC_MESSAGE_CONTROL1(TtsMsg_DidResumeSpeaking,
|
||||
int /* utterance id */)
|
||||
IPC_MESSAGE_CONTROL1(TtsMsg_SetVoiceList, std::vector<TtsVoice>)
|
||||
IPC_MESSAGE_CONTROL1(TtsMsg_DidStartSpeaking, int /* utterance id */)
|
||||
IPC_MESSAGE_CONTROL1(TtsMsg_DidFinishSpeaking, int /* utterance id */)
|
||||
IPC_MESSAGE_CONTROL1(TtsMsg_DidPauseSpeaking, int /* utterance id */)
|
||||
IPC_MESSAGE_CONTROL1(TtsMsg_DidResumeSpeaking, int /* utterance id */)
|
||||
IPC_MESSAGE_CONTROL2(TtsMsg_WordBoundary,
|
||||
int /* utterance id */,
|
||||
int /* char index */)
|
||||
|
@ -60,10 +54,8 @@ IPC_MESSAGE_CONTROL2(TtsMsg_SentenceBoundary,
|
|||
IPC_MESSAGE_CONTROL2(TtsMsg_MarkerEvent,
|
||||
int /* utterance id */,
|
||||
int /* char index */)
|
||||
IPC_MESSAGE_CONTROL1(TtsMsg_WasInterrupted,
|
||||
int /* utterance id */)
|
||||
IPC_MESSAGE_CONTROL1(TtsMsg_WasCancelled,
|
||||
int /* utterance id */)
|
||||
IPC_MESSAGE_CONTROL1(TtsMsg_WasInterrupted, int /* utterance id */)
|
||||
IPC_MESSAGE_CONTROL1(TtsMsg_WasCancelled, int /* utterance id */)
|
||||
IPC_MESSAGE_CONTROL2(TtsMsg_SpeakingErrorOccurred,
|
||||
int /* utterance id */,
|
||||
std::string /* error message */)
|
|
@ -5,8 +5,8 @@
|
|||
#ifndef CHROME_COMMON_WIDEVINE_CDM_CONSTANTS_H_
|
||||
#define CHROME_COMMON_WIDEVINE_CDM_CONSTANTS_H_
|
||||
|
||||
#include "base/macros.h"
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/macros.h"
|
||||
|
||||
extern const char kWidevineCdmPluginExtension[];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue