summaryrefslogtreecommitdiffstats
path: root/content/common/swapped_out_messages.cc
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-27 01:08:15 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-27 01:08:15 +0000
commitc084330e0809fe289a5c6e307aefc437249192e3 (patch)
treeb8077dd4028c9bf65d2142db68209cc8aca82ab0 /content/common/swapped_out_messages.cc
parentdd398db6721ac0a3cd427d966f15fbe9d620b984 (diff)
downloadchromium_src-c084330e0809fe289a5c6e307aefc437249192e3.zip
chromium_src-c084330e0809fe289a5c6e307aefc437249192e3.tar.gz
chromium_src-c084330e0809fe289a5c6e307aefc437249192e3.tar.bz2
Add a new pair of IPC categories for messages that need handling as input events
The compositor thread input filtering mechanism adds the possibility of handling some IPCs in the render process main thread in a different order than they were sent from the browser process since it filters some messages from the IO thread. For the most part, this is OK since the exact order of different types of messages is not important but there are some input-related messages that do need to processed in order - for instance MouseCaptureLost (see crbug.com/231532). This adds a new IPC class, InputMsg, for messages that need input-like filtering and InputHostMsg for their ACKs. All messages of this class are routed through the compositor thread to preserve order. BUG=233365 Review URL: https://chromiumcodereview.appspot.com/14487003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196907 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/swapped_out_messages.cc')
-rw-r--r--content/common/swapped_out_messages.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/common/swapped_out_messages.cc b/content/common/swapped_out_messages.cc
index d94f0b9..5fe91cb 100644
--- a/content/common/swapped_out_messages.cc
+++ b/content/common/swapped_out_messages.cc
@@ -5,6 +5,7 @@
#include "content/common/swapped_out_messages.h"
#include "content/common/accessibility_messages.h"
+#include "content/common/input_messages.h"
#include "content/common/view_messages.h"
#include "content/public/common/content_client.h"
@@ -16,7 +17,7 @@ bool SwappedOutMessages::CanSendWhileSwappedOut(const IPC::Message* msg) {
// consistent in case we later return to the same renderer.
switch (msg->type()) {
// Handled by RenderWidget.
- case ViewHostMsg_HandleInputEvent_ACK::ID:
+ case InputHostMsg_HandleInputEvent_ACK::ID:
case ViewHostMsg_PaintAtSize_ACK::ID:
case ViewHostMsg_UpdateRect::ID:
// Allow targeted navigations while swapped out.