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

Side by Side Diff: ash/wm/lock_layout_manager.h

Issue 2323823004: Add action for each button on opt-in IME menu. (Closed)
Patch Set: Created 4 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ASH_WM_LOCK_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_LOCK_LAYOUT_MANAGER_H_
6 #define ASH_WM_LOCK_LAYOUT_MANAGER_H_ 6 #define ASH_WM_LOCK_LAYOUT_MANAGER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/shell_observer.h" 9 #include "ash/common/shell_observer.h"
10 #include "ash/common/wm/wm_types.h" 10 #include "ash/common/wm/wm_types.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void OnWindowDestroying(aura::Window* window) override; 71 void OnWindowDestroying(aura::Window* window) override;
72 void OnWindowBoundsChanged(aura::Window* window, 72 void OnWindowBoundsChanged(aura::Window* window,
73 const gfx::Rect& old_bounds, 73 const gfx::Rect& old_bounds,
74 const gfx::Rect& new_bounds) override; 74 const gfx::Rect& new_bounds) override;
75 75
76 // ShellObserver: 76 // ShellObserver:
77 void OnVirtualKeyboardStateChanged(bool activated) override; 77 void OnVirtualKeyboardStateChanged(bool activated) override;
78 78
79 // keyboard::KeyboardControllerObserver overrides: 79 // keyboard::KeyboardControllerObserver overrides:
80 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; 80 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override;
81 void OnKeyboardHidden() override;
81 82
82 private: 83 private:
83 // Adjusts the bounds of all managed windows when the display area changes. 84 // Adjusts the bounds of all managed windows when the display area changes.
84 // This happens when the display size, work area insets has changed. 85 // This happens when the display size, work area insets has changed.
85 void AdjustWindowsForWorkAreaChange(const wm::WMEvent* event); 86 void AdjustWindowsForWorkAreaChange(const wm::WMEvent* event);
86 87
87 aura::Window* window_; 88 aura::Window* window_;
88 aura::Window* root_window_; 89 aura::Window* root_window_;
89 90
90 // True is subscribed as keyboard controller observer. 91 // True is subscribed as keyboard controller observer.
91 bool is_observing_keyboard_; 92 bool is_observing_keyboard_;
92 93
93 // The bounds of the keyboard. 94 // The bounds of the keyboard.
94 gfx::Rect keyboard_bounds_; 95 gfx::Rect keyboard_bounds_;
95 96
96 DISALLOW_COPY_AND_ASSIGN(LockLayoutManager); 97 DISALLOW_COPY_AND_ASSIGN(LockLayoutManager);
97 }; 98 };
98 99
99 } // namespace ash 100 } // namespace ash
100 101
101 #endif // ASH_WM_LOCK_LAYOUT_MANAGER_H_ 102 #endif // ASH_WM_LOCK_LAYOUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698