OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NATIVE_INPUT_EVENT_BUILDER_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NATIVE_INPUT_EVENT_BUILDER_H_ |
| 7 |
| 8 #include "content/public/browser/native_web_keyboard_event.h" |
| 9 |
| 10 namespace content { |
| 11 namespace protocol { |
| 12 |
| 13 class NativeInputEventBuilder { |
| 14 public: |
| 15 #if defined(OS_MACOSX) |
| 16 // This returned object has a retain count of 1. |
| 17 static gfx::NativeEvent CreateEvent(const NativeWebKeyboardEvent& event); |
| 18 #else |
| 19 // We only need this for Macs because they require an OS event to process |
| 20 // some keyboard events in browser (see: crbug.com/667387). |
| 21 static gfx::NativeEvent CreateEvent(const NativeWebKeyboardEvent& event) { |
| 22 return nullptr; |
| 23 } |
| 24 #endif |
| 25 }; |
| 26 |
| 27 } // namespace protocol |
| 28 } // namespace content |
| 29 |
| 30 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NATIVE_INPUT_EVENT_BUILDER_H_ |
OLD | NEW |