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

Side by Side Diff: components/exo/keyboard.h

Issue 2567903003: exo: Produce an error if get_keyboard_device_configuration is called with a keyboard object that al… (Closed)
Patch Set: rebase Created 4 years 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
« no previous file with comments | « no previous file | components/exo/keyboard.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_EXO_KEYBOARD_H_ 5 #ifndef COMPONENTS_EXO_KEYBOARD_H_
6 #define COMPONENTS_EXO_KEYBOARD_H_ 6 #define COMPONENTS_EXO_KEYBOARD_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 15 matching lines...) Expand all
26 // devices. 26 // devices.
27 class Keyboard : public ui::EventHandler, 27 class Keyboard : public ui::EventHandler,
28 public WMHelper::FocusObserver, 28 public WMHelper::FocusObserver,
29 public WMHelper::InputDeviceEventObserver, 29 public WMHelper::InputDeviceEventObserver,
30 public WMHelper::MaximizeModeObserver, 30 public WMHelper::MaximizeModeObserver,
31 public SurfaceObserver { 31 public SurfaceObserver {
32 public: 32 public:
33 explicit Keyboard(KeyboardDelegate* delegate); 33 explicit Keyboard(KeyboardDelegate* delegate);
34 ~Keyboard() override; 34 ~Keyboard() override;
35 35
36 bool HasDeviceConfigurationDelegate() const;
36 void SetDeviceConfigurationDelegate( 37 void SetDeviceConfigurationDelegate(
37 KeyboardDeviceConfigurationDelegate* delegate); 38 KeyboardDeviceConfigurationDelegate* delegate);
38 39
39 // Overridden from ui::EventHandler: 40 // Overridden from ui::EventHandler:
40 void OnKeyEvent(ui::KeyEvent* event) override; 41 void OnKeyEvent(ui::KeyEvent* event) override;
41 42
42 // Overridden WMHelper::FocusObserver: 43 // Overridden WMHelper::FocusObserver:
43 void OnWindowFocused(aura::Window* gained_focus, 44 void OnWindowFocused(aura::Window* gained_focus,
44 aura::Window* lost_focus) override; 45 aura::Window* lost_focus) override;
45 46
(...skipping 27 matching lines...) Expand all
73 74
74 // Current set of modifier flags. 75 // Current set of modifier flags.
75 int modifier_flags_ = 0; 76 int modifier_flags_ = 0;
76 77
77 DISALLOW_COPY_AND_ASSIGN(Keyboard); 78 DISALLOW_COPY_AND_ASSIGN(Keyboard);
78 }; 79 };
79 80
80 } // namespace exo 81 } // namespace exo
81 82
82 #endif // COMPONENTS_EXO_KEYBOARD_H_ 83 #endif // COMPONENTS_EXO_KEYBOARD_H_
OLDNEW
« no previous file with comments | « no previous file | components/exo/keyboard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698