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

Unified Diff: chrome/common/native_web_keyboard_event_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 | « chrome/common/native_web_keyboard_event_views.h ('k') | content/common/native_web_keyboard_event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/native_web_keyboard_event_views.cc
===================================================================
--- chrome/common/native_web_keyboard_event_views.cc (revision 98479)
+++ chrome/common/native_web_keyboard_event_views.cc (working copy)
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/common/native_web_keyboard_event.h"
+#include "chrome/common/native_web_keyboard_event_views.h"
#if defined(TOOLKIT_USES_GTK)
#include <gdk/gdk.h>
@@ -23,9 +23,9 @@
} // namespace
-NativeWebKeyboardEvent::NativeWebKeyboardEvent(
- const views::KeyEvent& event)
- : skip_in_browser(false) {
+NativeWebKeyboardEventViews::NativeWebKeyboardEventViews(
+ const views::KeyEvent& event) {
+ skip_in_browser = false;
DCHECK(event.type() == ui::ET_KEY_PRESSED ||
event.type() == ui::ET_KEY_RELEASED);
@@ -60,11 +60,13 @@
#endif
}
-NativeWebKeyboardEvent::NativeWebKeyboardEvent(uint16 character,
- int flags,
- double time_stamp_seconds,
- FromViewsEvent)
- : skip_in_browser(true) {
+NativeWebKeyboardEventViews::NativeWebKeyboardEventViews(
+ uint16 character,
+ int flags,
+ double time_stamp_seconds,
+ FromViewsEvent) {
+ skip_in_browser = true;
+
type = WebKit::WebInputEvent::Char;
modifiers = ViewsFlagsToWebInputEventModifiers(flags);
timeStampSeconds = time_stamp_seconds;
@@ -84,3 +86,6 @@
match_edit_command = false;
#endif
}
+
+NativeWebKeyboardEventViews::~NativeWebKeyboardEventViews() {
+}
« no previous file with comments | « chrome/common/native_web_keyboard_event_views.h ('k') | content/common/native_web_keyboard_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698