| Index: chrome/common/extensions/chrome_extension_messages.h
|
| diff --git a/chrome/common/extensions/chrome_extension_messages.h b/chrome/common/extensions/chrome_extension_messages.h
|
| index 8b2fb7ae12813a1a37601e25cb247db47ab23c18..cd1b5cc11691effa6cf11006aaa23e3bf1339b18 100644
|
| --- a/chrome/common/extensions/chrome_extension_messages.h
|
| +++ b/chrome/common/extensions/chrome_extension_messages.h
|
| @@ -8,15 +8,27 @@
|
| //
|
| // Multiply-included message file, hence no include guard.
|
|
|
| +#include <string>
|
| +
|
| +#include "base/strings/string16.h"
|
| #include "chrome/common/extensions/api/webstore/webstore_api_constants.h"
|
| #include "chrome/common/web_application_info.h"
|
| +#include "extensions/common/stack_frame.h"
|
| #include "ipc/ipc_message_macros.h"
|
| +#include "url/gurl.h"
|
|
|
| #define IPC_MESSAGE_START ChromeExtensionMsgStart
|
|
|
| IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage,
|
| extensions::api::webstore::INSTALL_STAGE_INSTALLING)
|
|
|
| +IPC_STRUCT_TRAITS_BEGIN(extensions::StackFrame)
|
| + IPC_STRUCT_TRAITS_MEMBER(line_number)
|
| + IPC_STRUCT_TRAITS_MEMBER(column_number)
|
| + IPC_STRUCT_TRAITS_MEMBER(source)
|
| + IPC_STRUCT_TRAITS_MEMBER(function)
|
| +IPC_STRUCT_TRAITS_END()
|
| +
|
| IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo)
|
| IPC_STRUCT_TRAITS_MEMBER(url)
|
| IPC_STRUCT_TRAITS_MEMBER(width)
|
| @@ -37,13 +49,14 @@ IPC_STRUCT_TRAITS_END()
|
| // ExtensionHostMsg_DidGetApplicationInfo.
|
| IPC_MESSAGE_ROUTED0(ChromeExtensionMsg_GetApplicationInfo)
|
|
|
| -// Sent by the renderer to implement chrome.webstore.install().
|
| -IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall,
|
| - int32 /* install id */,
|
| - int32 /* return route id */,
|
| - std::string /* Web Store item ID */,
|
| - GURL /* requestor URL */,
|
| - int /* listeners_mask */)
|
| +// Set the top-level frame to the provided name.
|
| +IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetName,
|
| + std::string /* frame_name */)
|
| +
|
| +// Toggles visual muting of the render view area. This is on when a constrained
|
| +// window is showing.
|
| +IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized,
|
| + bool /* deemphazied */)
|
|
|
| // Sent to the renderer if install stage updates were requested for an inline
|
| // install.
|
| @@ -64,5 +77,35 @@ IPC_MESSAGE_ROUTED3(ExtensionMsg_InlineWebstoreInstallResponse,
|
|
|
| // Messages sent from the renderer to the browser.
|
|
|
| +// Informs the browser of updated frame names.
|
| +IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_UpdateFrameName,
|
| + bool /* is_top_level */,
|
| + std::string /* name */)
|
| +
|
| +// Sent by the renderer to check if a URL has permission to trigger a clipboard
|
| +// read/write operation from the DOM.
|
| +IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_CanTriggerClipboardRead,
|
| + GURL /* origin */,
|
| + bool /* allowed */)
|
| +IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_CanTriggerClipboardWrite,
|
| + GURL /* origin */,
|
| + bool /* allowed */)
|
| +
|
| +// Tells listeners that a detailed message was reported to the console by
|
| +// WebKit.
|
| +IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DetailedConsoleMessageAdded,
|
| + base::string16 /* message */,
|
| + base::string16 /* source */,
|
| + extensions::StackTrace /* stack trace */,
|
| + int32 /* severity level */)
|
| +
|
| +// Sent by the renderer to implement chrome.webstore.install().
|
| +IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall,
|
| + int32 /* install id */,
|
| + int32 /* return route id */,
|
| + std::string /* Web Store item ID */,
|
| + GURL /* requestor URL */,
|
| + int /* listeners_mask */)
|
| +
|
| IPC_MESSAGE_ROUTED1(ChromeExtensionHostMsg_DidGetApplicationInfo,
|
| WebApplicationInfo)
|
|
|