OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |