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

Side by Side Diff: content/public/browser/native_web_keyboard_event.h

Issue 234533002: Remove a bunch of TOOLKIT_GTK in content/ and gpu/, as well as NPAPI plugins on linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, skip changing browser_main_loop.cc because of presubmit issues, will follow up Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/plugin/webplugin_proxy.cc ('k') | content/public/browser/render_widget_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_NATIVE_WEB_KEYBOARD_EVENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NATIVE_WEB_KEYBOARD_EVENT_H_
6 #define CONTENT_PUBLIC_BROWSER_NATIVE_WEB_KEYBOARD_EVENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_NATIVE_WEB_KEYBOARD_EVENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 10 matching lines...) Expand all
21 NON_EXPORTED_BASE(public blink::WebKeyboardEvent) { 21 NON_EXPORTED_BASE(public blink::WebKeyboardEvent) {
22 NativeWebKeyboardEvent(); 22 NativeWebKeyboardEvent();
23 23
24 explicit NativeWebKeyboardEvent(gfx::NativeEvent native_event); 24 explicit NativeWebKeyboardEvent(gfx::NativeEvent native_event);
25 #if defined(USE_AURA) 25 #if defined(USE_AURA)
26 NativeWebKeyboardEvent(ui::EventType type, 26 NativeWebKeyboardEvent(ui::EventType type,
27 bool is_char, 27 bool is_char,
28 wchar_t character, 28 wchar_t character,
29 int state, 29 int state,
30 double time_stamp_seconds); 30 double time_stamp_seconds);
31 #elif defined(OS_MACOSX) || defined(TOOLKIT_GTK) 31 #elif defined(OS_MACOSX)
32 // TODO(suzhe): Limit these constructors to Linux native Gtk port. 32 // TODO(suzhe): Limit these constructors to Linux native Gtk port.
33 // For Linux Views port, after using RenderWidgetHostViewViews to replace 33 // For Linux Views port, after using RenderWidgetHostViewViews to replace
34 // RenderWidgetHostViewGtk, we can use constructors for TOOLKIT_VIEWS defined 34 // RenderWidgetHostViewGtk, we can use constructors for TOOLKIT_VIEWS defined
35 // below. 35 // below.
36 NativeWebKeyboardEvent(wchar_t character, 36 NativeWebKeyboardEvent(wchar_t character,
37 int state, 37 int state,
38 double time_stamp_seconds); 38 double time_stamp_seconds);
39 #elif defined(OS_ANDROID) 39 #elif defined(OS_ANDROID)
40 NativeWebKeyboardEvent(blink::WebInputEvent::Type type, 40 NativeWebKeyboardEvent(blink::WebInputEvent::Type type,
41 int modifiers, 41 int modifiers,
(...skipping 18 matching lines...) Expand all
60 60
61 gfx::NativeEvent os_event; 61 gfx::NativeEvent os_event;
62 62
63 // True if the browser should ignore this event if it's not handled by the 63 // True if the browser should ignore this event if it's not handled by the
64 // renderer. This happens for RawKeyDown events that are created while IME is 64 // renderer. This happens for RawKeyDown events that are created while IME is
65 // active and is necessary to prevent backspace from doing "history back" if 65 // active and is necessary to prevent backspace from doing "history back" if
66 // it is hit in ime mode. 66 // it is hit in ime mode.
67 // Currently, it's only used by Linux and Mac ports. 67 // Currently, it's only used by Linux and Mac ports.
68 bool skip_in_browser; 68 bool skip_in_browser;
69 69
70 #if defined(USE_AURA) || defined(TOOLKIT_GTK) 70 #if defined(USE_AURA)
71 // True if the key event matches an edit command. In order to ensure the edit 71 // True if the key event matches an edit command. In order to ensure the edit
72 // command always work in web page, the browser should not pre-handle this key 72 // command always work in web page, the browser should not pre-handle this key
73 // event as a reserved accelerator. See http://crbug.com/54573 73 // event as a reserved accelerator. See http://crbug.com/54573
74 bool match_edit_command; 74 bool match_edit_command;
75 #endif 75 #endif
76 }; 76 };
77 77
78 // Returns a bitmak of values from ui/events/event_constants.h. 78 // Returns a bitmak of values from ui/events/event_constants.h.
79 CONTENT_EXPORT int GetModifiersFromNativeWebKeyboardEvent( 79 CONTENT_EXPORT int GetModifiersFromNativeWebKeyboardEvent(
80 const NativeWebKeyboardEvent& event); 80 const NativeWebKeyboardEvent& event);
81 81
82 } // namespace content 82 } // namespace content
83 83
84 #endif // CONTENT_PUBLIC_BROWSER_NATIVE_WEB_KEYBOARD_EVENT_H_ 84 #endif // CONTENT_PUBLIC_BROWSER_NATIVE_WEB_KEYBOARD_EVENT_H_
OLDNEW
« no previous file with comments | « content/plugin/webplugin_proxy.cc ('k') | content/public/browser/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698