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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_views.cc

Issue 7766012: Move native_web_keyboard_event_views.cc to chrome, so that we don't have any views code in conten... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Get rid of the views constructor in content as well Created 9 years, 4 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
« no previous file with comments | « no previous file | chrome/chrome_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host_view_views.cc
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_views.cc (revision 98479)
+++ chrome/browser/renderer_host/render_widget_host_view_views.cc (working copy)
@@ -14,10 +14,10 @@
#include "base/task.h"
#include "base/time.h"
#include "base/utf_string_conversions.h"
+#include "chrome/common/native_web_keyboard_event_views.h"
#include "chrome/common/render_messages.h"
#include "content/browser/renderer_host/backing_store_skia.h"
#include "content/browser/renderer_host/render_widget_host.h"
-#include "content/common/native_web_keyboard_event.h"
#include "content/common/result_codes.h"
#include "content/common/view_messages.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
@@ -478,14 +478,14 @@
// TODO(suzhe): Support editor key bindings.
if (!host_)
return false;
- host_->ForwardKeyboardEvent(NativeWebKeyboardEvent(event));
+ host_->ForwardKeyboardEvent(NativeWebKeyboardEventViews(event));
return true;
}
bool RenderWidgetHostViewViews::OnKeyReleased(const views::KeyEvent& event) {
if (!host_)
return false;
- host_->ForwardKeyboardEvent(NativeWebKeyboardEvent(event));
+ host_->ForwardKeyboardEvent(NativeWebKeyboardEventViews(event));
return true;
}
@@ -568,9 +568,9 @@
void RenderWidgetHostViewViews::InsertChar(char16 ch, int flags) {
if (host_) {
- NativeWebKeyboardEvent::FromViewsEvent from_views_event;
- NativeWebKeyboardEvent wke(ch, flags, base::Time::Now().ToDoubleT(),
- from_views_event);
+ NativeWebKeyboardEventViews::FromViewsEvent from_views_event;
+ NativeWebKeyboardEventViews wke(ch, flags, base::Time::Now().ToDoubleT(),
+ from_views_event);
host_->ForwardKeyboardEvent(wke);
}
}
« no previous file with comments | « no previous file | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698