OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_COMMON_NATIVE_WEB_KEYBOARD_EVENT_H_ | 5 #ifndef CONTENT_COMMON_NATIVE_WEB_KEYBOARD_EVENT_H_ |
6 #define CONTENT_COMMON_NATIVE_WEB_KEYBOARD_EVENT_H_ | 6 #define CONTENT_COMMON_NATIVE_WEB_KEYBOARD_EVENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 GdkEventKey* os_event; | 79 GdkEventKey* os_event; |
80 #endif | 80 #endif |
81 | 81 |
82 // True if the browser should ignore this event if it's not handled by the | 82 // True if the browser should ignore this event if it's not handled by the |
83 // renderer. This happens for RawKeyDown events that are created while IME is | 83 // renderer. This happens for RawKeyDown events that are created while IME is |
84 // active and is necessary to prevent backspace from doing "history back" if | 84 // active and is necessary to prevent backspace from doing "history back" if |
85 // it is hit in ime mode. | 85 // it is hit in ime mode. |
86 // Currently, it's only used by Linux and Mac ports. | 86 // Currently, it's only used by Linux and Mac ports. |
87 bool skip_in_browser; | 87 bool skip_in_browser; |
88 | 88 |
89 #if defined(OS_LINUX) | 89 #if defined(TOOLKIT_USES_GTK) |
90 // True if the key event matches an edit command. In order to ensure the edit | 90 // True if the key event matches an edit command. In order to ensure the edit |
91 // command always work in web page, the browser should not pre-handle this key | 91 // command always work in web page, the browser should not pre-handle this key |
92 // event as a reserved accelerator. See http://crbug.com/54573 | 92 // event as a reserved accelerator. See http://crbug.com/54573 |
93 bool match_edit_command; | 93 bool match_edit_command; |
94 #endif | 94 #endif |
95 }; | 95 }; |
96 | 96 |
97 #endif // CONTENT_COMMON_NATIVE_WEB_KEYBOARD_EVENT_H_ | 97 #endif // CONTENT_COMMON_NATIVE_WEB_KEYBOARD_EVENT_H_ |
OLD | NEW |