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

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

Issue 235693002: Merge 260900 "linux_aura: Port GtkKeybindingsHandler to Aura." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1916/src/
Patch Set: 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/browser/renderer_host/render_widget_host_view_aura.cc ('k') | ui/events/events.gyp » ('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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(TOOLKIT_GTK) 70 #if defined(USE_AURA) || defined(TOOLKIT_GTK)
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/browser/renderer_host/render_widget_host_view_aura.cc ('k') | ui/events/events.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698