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

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

Issue 2704173002: Update the layout mode first when exiting tablet mode (Closed)
Patch Set: . Created 3 years, 10 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 aura::Window* lost_focus) override; 45 aura::Window* lost_focus) override;
46 46
47 // Overridden from SurfaceObserver: 47 // Overridden from SurfaceObserver:
48 void OnSurfaceDestroying(Surface* surface) override; 48 void OnSurfaceDestroying(Surface* surface) override;
49 49
50 // Overridden from ui::InputDeviceEventObserver: 50 // Overridden from ui::InputDeviceEventObserver:
51 void OnKeyboardDeviceConfigurationChanged() override; 51 void OnKeyboardDeviceConfigurationChanged() override;
52 52
53 // Overridden from WMHelper::MaximizeModeObserver: 53 // Overridden from WMHelper::MaximizeModeObserver:
54 void OnMaximizeModeStarted() override; 54 void OnMaximizeModeStarted() override;
55 void OnMaximizeModeEnding() override;
55 void OnMaximizeModeEnded() override; 56 void OnMaximizeModeEnded() override;
56 57
57 private: 58 private:
58 // Returns the effective focus for |window|. 59 // Returns the effective focus for |window|.
59 Surface* GetEffectiveFocus(aura::Window* window) const; 60 Surface* GetEffectiveFocus(aura::Window* window) const;
60 61
61 // The delegate instance that all events except for events about device 62 // The delegate instance that all events except for events about device
62 // configuration are dispatched to. 63 // configuration are dispatched to.
63 KeyboardDelegate* const delegate_; 64 KeyboardDelegate* const delegate_;
64 65
65 // The delegate instance that events about device configuration are dispatched 66 // The delegate instance that events about device configuration are dispatched
66 // to. 67 // to.
67 KeyboardDeviceConfigurationDelegate* device_configuration_delegate_ = nullptr; 68 KeyboardDeviceConfigurationDelegate* device_configuration_delegate_ = nullptr;
68 69
69 // The current focus surface for the keyboard. 70 // The current focus surface for the keyboard.
70 Surface* focus_ = nullptr; 71 Surface* focus_ = nullptr;
71 72
72 // Vector of currently pressed keys. 73 // Vector of currently pressed keys.
73 std::vector<ui::DomCode> pressed_keys_; 74 std::vector<ui::DomCode> pressed_keys_;
74 75
75 // Current set of modifier flags. 76 // Current set of modifier flags.
76 int modifier_flags_ = 0; 77 int modifier_flags_ = 0;
77 78
78 DISALLOW_COPY_AND_ASSIGN(Keyboard); 79 DISALLOW_COPY_AND_ASSIGN(Keyboard);
79 }; 80 };
80 81
81 } // namespace exo 82 } // namespace exo
82 83
83 #endif // COMPONENTS_EXO_KEYBOARD_H_ 84 #endif // COMPONENTS_EXO_KEYBOARD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698