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

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

Issue 2876993002: Introduce window container to be used by lock screen app windows (Closed)
Patch Set: . Created 3 years, 7 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/shell_observer.h" 9 #include "ash/shell_observer.h"
10 #include "ash/wm/wm_snap_to_pixel_layout_manager.h" 10 #include "ash/wm/wm_snap_to_pixel_layout_manager.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 const gfx::Rect& new_bounds) override; 59 const gfx::Rect& new_bounds) override;
60 60
61 // ShellObserver: 61 // ShellObserver:
62 void OnVirtualKeyboardStateChanged(bool activated, 62 void OnVirtualKeyboardStateChanged(bool activated,
63 aura::Window* root_window) override; 63 aura::Window* root_window) override;
64 64
65 // keyboard::KeyboardControllerObserver overrides: 65 // keyboard::KeyboardControllerObserver overrides:
66 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; 66 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override;
67 void OnKeyboardClosed() override; 67 void OnKeyboardClosed() override;
68 68
69 private: 69 protected:
70 // Adjusts the bounds of all managed windows when the display area changes. 70 // Adjusts the bounds of all managed windows when the display area changes.
71 // This happens when the display size, work area insets has changed. 71 // This happens when the display size, work area insets has changed.
72 void AdjustWindowsForWorkAreaChange(const wm::WMEvent* event); 72 void AdjustWindowsForWorkAreaChange(const wm::WMEvent* event);
73 73
74 aura::Window* window() { return window_; }
75 aura::Window* root_window() { return root_window_; }
76
77 private:
74 aura::Window* window_; 78 aura::Window* window_;
75 aura::Window* root_window_; 79 aura::Window* root_window_;
76 80
77 ScopedObserver<keyboard::KeyboardController, 81 ScopedObserver<keyboard::KeyboardController,
78 keyboard::KeyboardControllerObserver> 82 keyboard::KeyboardControllerObserver>
79 keyboard_observer_; 83 keyboard_observer_;
80 84
81 // The bounds of the keyboard. 85 // The bounds of the keyboard.
82 gfx::Rect keyboard_bounds_; 86 gfx::Rect keyboard_bounds_;
83 87
84 DISALLOW_COPY_AND_ASSIGN(LockLayoutManager); 88 DISALLOW_COPY_AND_ASSIGN(LockLayoutManager);
85 }; 89 };
86 90
87 } // namespace ash 91 } // namespace ash
88 92
89 #endif // ASH_WM_LOCK_LAYOUT_MANAGER_H_ 93 #endif // ASH_WM_LOCK_LAYOUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698