| 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" |
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 13 #include "ui/base/events.h" | 13 #include "ui/base/events/event_constants.h" |
| 14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 // Owns a platform specific event; used to pass own and pass event through | 18 // Owns a platform specific event; used to pass own and pass event through |
| 19 // platform independent code. | 19 // platform independent code. |
| 20 struct CONTENT_EXPORT NativeWebKeyboardEvent : | 20 struct CONTENT_EXPORT NativeWebKeyboardEvent : |
| 21 NON_EXPORTED_BASE(public WebKit::WebKeyboardEvent) { | 21 NON_EXPORTED_BASE(public WebKit::WebKeyboardEvent) { |
| 22 NativeWebKeyboardEvent(); | 22 NativeWebKeyboardEvent(); |
| 23 | 23 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 bool skip_in_browser; | 68 bool skip_in_browser; |
| 69 | 69 |
| 70 #if defined(TOOLKIT_GTK) | 70 #if 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/base/events.h. | 78 // Returns a bitmak of values from ui/base/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 |