summaryrefslogtreecommitdiffstats
path: root/chromium/content/common/browser_plugin
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@digia.com>2014-03-18 13:16:26 +0100
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2014-03-20 15:55:39 +0100
commit3f0f86b0caed75241fa71c95a5d73bc0164348c5 (patch)
tree92b9fb00f2e9e90b0be2262093876d4f43b6cd13 /chromium/content/common/browser_plugin
parente90d7c4b152c56919d963987e2503f9909a666d2 (diff)
Update to new stable branch 1750
This also includes an updated ninja and chromium dependencies needed on Windows. Change-Id: Icd597d80ed3fa4425933c9f1334c3c2e31291c42 Reviewed-by: Zoltan Arvai <zarvai@inf.u-szeged.hu> Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Diffstat (limited to 'chromium/content/common/browser_plugin')
-rw-r--r--chromium/content/common/browser_plugin/OWNERS1
-rw-r--r--chromium/content/common/browser_plugin/browser_plugin_constants.cc4
-rw-r--r--chromium/content/common/browser_plugin/browser_plugin_constants.h1
-rw-r--r--chromium/content/common/browser_plugin/browser_plugin_messages.h61
4 files changed, 59 insertions, 8 deletions
diff --git a/chromium/content/common/browser_plugin/OWNERS b/chromium/content/common/browser_plugin/OWNERS
index 3da5cc714c2..8028520cd54 100644
--- a/chromium/content/common/browser_plugin/OWNERS
+++ b/chromium/content/common/browser_plugin/OWNERS
@@ -7,6 +7,5 @@ per-file *_messages*.h=cdn@chromium.org
per-file *_messages*.h=cevans@chromium.org
per-file *_messages*.h=inferno@chromium.org
per-file *_messages*.h=jschuh@chromium.org
-per-file *_messages*.h=palmer@chromium.org
per-file *_messages*.h=tsepez@chromium.org
per-file *_messages*.h=kenrb@chromium.org
diff --git a/chromium/content/common/browser_plugin/browser_plugin_constants.cc b/chromium/content/common/browser_plugin/browser_plugin_constants.cc
index 6da58e96c53..ea3925dfd0e 100644
--- a/chromium/content/common/browser_plugin/browser_plugin_constants.cc
+++ b/chromium/content/common/browser_plugin/browser_plugin_constants.cc
@@ -31,6 +31,7 @@ const char kEventInternalInstanceIDAllocated[] = "instanceid-allocated";
const char kEventInternalTrackedObjectGone[] = "trackedobjectgone";
// Attributes.
+const char kAttributeAllowTransparency[] = "allowtransparency";
const char kAttributeApi[] = "api";
const char kAttributeAutoSize[] = "autosize";
const char kAttributeContentWindow[] = "contentWindow";
@@ -42,9 +43,6 @@ const char kAttributeName[] = "name";
const char kAttributePartition[] = "partition";
const char kAttributeSrc[] = "src";
-// Events.
-const char kEventSizeChanged[] = "sizechanged";
-
// Parameters/properties on events.
const char kDefaultPromptText[] = "defaultPromptText";
const char kId[] = "id";
diff --git a/chromium/content/common/browser_plugin/browser_plugin_constants.h b/chromium/content/common/browser_plugin/browser_plugin_constants.h
index 8e911f04ef2..f870c48ff2b 100644
--- a/chromium/content/common/browser_plugin/browser_plugin_constants.h
+++ b/chromium/content/common/browser_plugin/browser_plugin_constants.h
@@ -31,6 +31,7 @@ extern const char kEventInternalInstanceIDAllocated[];
extern const char kEventInternalTrackedObjectGone[];
// Attributes.
+extern const char kAttributeAllowTransparency[];
extern const char kAttributeApi[];
extern const char kAttributeAutoSize[];
extern const char kAttributeContentWindow[];
diff --git a/chromium/content/common/browser_plugin/browser_plugin_messages.h b/chromium/content/common/browser_plugin/browser_plugin_messages.h
index b4345c628dd..c85b2299c95 100644
--- a/chromium/content/common/browser_plugin/browser_plugin_messages.h
+++ b/chromium/content/common/browser_plugin/browser_plugin_messages.h
@@ -21,11 +21,14 @@
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_message_utils.h"
+#include "third_party/skia/include/core/SkBitmap.h"
+#include "third_party/WebKit/public/web/WebCompositionUnderline.h"
#include "third_party/WebKit/public/web/WebDragOperation.h"
#include "third_party/WebKit/public/web/WebDragStatus.h"
#include "ui/gfx/point.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/size.h"
+#include "url/gurl.h"
#include "webkit/common/cursors/webcursor.h"
#undef IPC_MESSAGE_EXPORT
@@ -34,7 +37,7 @@
#define IPC_MESSAGE_START BrowserPluginMsgStart
-IPC_ENUM_TRAITS(WebKit::WebDragStatus)
+IPC_ENUM_TRAITS(blink::WebDragStatus)
IPC_STRUCT_BEGIN(BrowserPluginHostMsg_AutoSize_Params)
IPC_STRUCT_MEMBER(bool, enable)
@@ -67,8 +70,10 @@ IPC_STRUCT_BEGIN(BrowserPluginHostMsg_Attach_Params)
IPC_STRUCT_MEMBER(bool, persist_storage)
IPC_STRUCT_MEMBER(bool, focused)
IPC_STRUCT_MEMBER(bool, visible)
+ IPC_STRUCT_MEMBER(bool, opaque)
IPC_STRUCT_MEMBER(std::string, name)
IPC_STRUCT_MEMBER(std::string, src)
+ IPC_STRUCT_MEMBER(GURL, embedder_frame_url)
IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, auto_size_params)
IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params,
resize_guest_params)
@@ -151,6 +156,30 @@ IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetEditCommandsForNextKeyEvent,
int /* instance_id */,
std::vector<content::EditCommand> /* edit_commands */)
+// This message is sent from BrowserPlugin to BrowserPluginGuest whenever IME
+// composition state is updated.
+IPC_MESSAGE_ROUTED5(
+ BrowserPluginHostMsg_ImeSetComposition,
+ int /* instance_id */,
+ std::string /* text */,
+ std::vector<blink::WebCompositionUnderline> /* underlines */,
+ int /* selectiont_start */,
+ int /* selection_end */)
+
+// This message is sent from BrowserPlugin to BrowserPluginGuest to notify that
+// confirming the current composition is requested.
+IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_ImeConfirmComposition,
+ int /* instance_id */,
+ std::string /* text */,
+ bool /* keep selection */)
+
+// Deletes the current selection plus the specified number of characters before
+// and after the selection or caret.
+IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_ExtendSelectionAndDelete,
+ int /* instance_id */,
+ int /* before */,
+ int /* after */)
+
// This message is sent to the browser process to enable or disable autosize
// mode.
IPC_MESSAGE_ROUTED3(
@@ -209,6 +238,11 @@ IPC_MESSAGE_ROUTED5(BrowserPluginHostMsg_BuffersSwappedACK,
std::string /* mailbox_name */,
uint32 /* sync_point */)
+IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_CopyFromCompositingSurfaceAck,
+ int /* instance_id */,
+ int /* request_id */,
+ SkBitmap);
+
// Acknowledge that we presented an ubercomp frame.
IPC_MESSAGE_ROUTED5(BrowserPluginHostMsg_CompositorFrameACK,
int /* instance_id */,
@@ -217,6 +251,15 @@ IPC_MESSAGE_ROUTED5(BrowserPluginHostMsg_CompositorFrameACK,
int /* renderer_host_id */,
cc::CompositorFrameAck /* ack */)
+// Notify the guest renderer that some resources given to the embededer
+// are not used any more.
+IPC_MESSAGE_ROUTED5(BrowserPluginHostMsg_ReclaimCompositorResources,
+ int /* instance_id */,
+ int /* route_id */,
+ uint32 /* output_surface_id */,
+ int /* renderer_host_id */,
+ cc::CompositorFrameAck /* ack */)
+
// When a BrowserPlugin has been removed from the embedder's DOM, it informs
// the browser process to cleanup the guest.
IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed,
@@ -227,12 +270,17 @@ IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility,
int /* instance_id */,
bool /* visible */)
+// Tells the guest to change its background opacity.
+IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetContentsOpaque,
+ int /* instance_id */,
+ bool /* opaque */)
+
// Tells the guest that a drag event happened on the plugin.
IPC_MESSAGE_ROUTED5(BrowserPluginHostMsg_DragStatusUpdate,
int /* instance_id */,
- WebKit::WebDragStatus /* drag_status */,
+ blink::WebDragStatus /* drag_status */,
content::DropData /* drop_data */,
- WebKit::WebDragOperationsMask /* operation_mask */,
+ blink::WebDragOperationsMask /* operation_mask */,
gfx::Point /* plugin_location */)
// Response to BrowserPluginMsg_PluginAtPositionRequest, returns the browser
@@ -321,6 +369,12 @@ IPC_MESSAGE_CONTROL2(BrowserPluginMsg_UpdateRect,
int /* instance_id */,
BrowserPluginMsg_UpdateRect_Params)
+IPC_MESSAGE_CONTROL4(BrowserPluginMsg_CopyFromCompositingSurface,
+ int /* instance_id */,
+ int /* request_id */,
+ gfx::Rect /* source_rect */,
+ gfx::Size /* dest_size */)
+
// Requests the renderer to find out if a browser plugin is at position
// (|x|, |y|) within the embedder.
// The response message is BrowserPluginHostMsg_PluginAtPositionResponse.
@@ -353,4 +407,3 @@ IPC_MESSAGE_CONTROL5(BrowserPluginMsg_CompositorFrameSwapped,
IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetMouseLock,
int /* instance_id */,
bool /* enable */)
-