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

Unified Diff: chrome/common/native_web_keyboard_event_views.h

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/chrome_common.gypi ('k') | chrome/common/native_web_keyboard_event_views.cc » ('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.h
===================================================================
--- chrome/common/native_web_keyboard_event_views.h (revision 0)
+++ chrome/common/native_web_keyboard_event_views.h (revision 0)
@@ -0,0 +1,33 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_NATIVE_WEB_KEYBOARD_EVENT_VIEWS_H_
+#define CHROME_COMMON_NATIVE_WEB_KEYBOARD_EVENT_VIEWS_H_
+#pragma once
+
+#include "content/common/native_web_keyboard_event.h"
+
+namespace views {
+class KeyEvent;
+}
+
+// A views implementation of NativeWebKeyboardEvent.
+struct NativeWebKeyboardEventViews : public NativeWebKeyboardEvent {
+ // TODO(suzhe): remove once we get rid of Gtk from Views.
+ struct FromViewsEvent {};
+ // These two constructors are shared between Windows and Linux Views ports.
+ explicit NativeWebKeyboardEventViews(const views::KeyEvent& event);
+ // TODO(suzhe): Sadly, we need to add a meanless FromViewsEvent parameter to
+ // distinguish between this contructor and above Gtk one, because they use
+ // different modifier flags. We can remove this extra parameter as soon as we
+ // disable above Gtk constructor in Linux Views port.
+ NativeWebKeyboardEventViews(uint16 character,
+ int flags,
+ double time_stamp_seconds,
+ FromViewsEvent);
+
+ ~NativeWebKeyboardEventViews();
+};
+
+#endif // CHROME_COMMON_NATIVE_WEB_KEYBOARD_EVENT_VIEWS_H_
Property changes on: chrome\common\native_web_keyboard_event_views.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/native_web_keyboard_event_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698