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

Side by Side Diff: content/browser/devtools/protocol/native_input_event_builder.h

Issue 2656903005: ChromeDriver: Handle key events properly on Mac (Closed)
Patch Set: fixes Created 3 years, 5 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698