Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 14487003: Add a new pair of IPC categories for messages that need handling as input events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addresses feedback Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/browser_plugin/browser_plugin_guest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
index 83b6292c9f19fc0ef94a63a25312656bd1ae256a..cdcadd7e4b6697580f9a0366da0d330a40f2b4ec 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -24,6 +24,7 @@
#include "content/common/content_constants_internal.h"
#include "content/common/drag_messages.h"
#include "content/common/gpu/gpu_messages.h"
+#include "content/common/input_messages.h"
#include "content/common/view_messages.h"
#include "content/port/browser/render_view_host_delegate_view.h"
#include "content/public/browser/browser_context.h"
@@ -619,7 +620,7 @@ void BrowserPluginGuest::DidStopLoading(RenderViewHost* render_view_host) {
void BrowserPluginGuest::RenderViewReady() {
// TODO(fsamuel): Investigate whether it's possible to update state earlier
// here (see http://crbug.com/158151).
- Send(new ViewMsg_SetFocus(routing_id(), focused_));
+ Send(new InputMsg_SetFocus(routing_id(), focused_));
UpdateVisibility();
RenderViewHost* rvh = GetWebContents()->GetRenderViewHost();
if (auto_size_enabled_)
@@ -951,7 +952,7 @@ void BrowserPluginGuest::OnSetFocus(int instance_id, bool focused) {
if (focused_ == focused)
return;
focused_ = focused;
- Send(new ViewMsg_SetFocus(routing_id(), focused));
+ Send(new InputMsg_SetFocus(routing_id(), focused));
}
void BrowserPluginGuest::OnSetName(int instance_id, const std::string& name) {
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/ime_adapter_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698