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

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

Issue 2700523004: Remove docked windows entirely in M59. (Closed)
Patch Set: Rebase Created 3 years, 9 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
« no previous file with comments | « ash/common/wm/fullscreen_window_finder.cc ('k') | ash/common/wm/lock_window_state.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 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_COMMON_WM_LOCK_LAYOUT_MANAGER_H_ 5 #ifndef ASH_COMMON_WM_LOCK_LAYOUT_MANAGER_H_
6 #define ASH_COMMON_WM_LOCK_LAYOUT_MANAGER_H_ 6 #define ASH_COMMON_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_snap_to_pixel_layout_manager.h" 10 #include "ash/common/wm/wm_snap_to_pixel_layout_manager.h"
11 #include "ash/common/wm/wm_types.h" 11 #include "ash/common/wm/wm_types.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/scoped_observer.h" 13 #include "base/scoped_observer.h"
14 #include "ui/aura/window_observer.h" 14 #include "ui/aura/window_observer.h"
15 #include "ui/gfx/geometry/rect.h" 15 #include "ui/gfx/geometry/rect.h"
16 #include "ui/keyboard/keyboard_controller.h" 16 #include "ui/keyboard/keyboard_controller.h"
17 #include "ui/keyboard/keyboard_controller_observer.h" 17 #include "ui/keyboard/keyboard_controller_observer.h"
18 18
19 namespace ash { 19 namespace ash {
20 namespace wm { 20 namespace wm {
21 class WindowState; 21 class WindowState;
22 class WMEvent; 22 class WMEvent;
23 } 23 }
24 24
25 // LockLayoutManager is used for the windows created in LockScreenContainer. 25 // LockLayoutManager is used for the windows created in LockScreenContainer.
26 // For Chrome OS this includes out-of-box/login/lock/multi-profile login use 26 // For Chrome OS this includes out-of-box/login/lock/multi-profile login use
27 // cases. LockScreenContainer does not use default work area definition. 27 // cases. LockScreenContainer does not use default work area definition.
28 // By default work area is defined as display area minus shelf, docked windows 28 // By default work area is defined as display area minus shelf, and minus
29 // and minus virtual keyboard bounds. 29 // virtual keyboard bounds.
30 // For windows in LockScreenContainer work area is display area minus virtual 30 // For windows in LockScreenContainer work area is display area minus virtual
31 // keyboard bounds (only if keyboard overscroll is disabled). If keyboard 31 // keyboard bounds (only if keyboard overscroll is disabled). If keyboard
32 // overscroll is enabled then work area always equals to display area size since 32 // overscroll is enabled then work area always equals to display area size since
33 // virtual keyboard changes inner workspace of each WebContents. 33 // virtual keyboard changes inner workspace of each WebContents.
34 // For all windows in LockScreenContainer default wm::WindowState is replaced 34 // For all windows in LockScreenContainer default wm::WindowState is replaced
35 // with LockWindowState. 35 // with LockWindowState.
36 class ASH_EXPORT LockLayoutManager 36 class ASH_EXPORT LockLayoutManager
37 : public wm::WmSnapToPixelLayoutManager, 37 : public wm::WmSnapToPixelLayoutManager,
38 public aura::WindowObserver, 38 public aura::WindowObserver,
39 public ShellObserver, 39 public ShellObserver,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // The bounds of the keyboard. 80 // The bounds of the keyboard.
81 gfx::Rect keyboard_bounds_; 81 gfx::Rect keyboard_bounds_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(LockLayoutManager); 83 DISALLOW_COPY_AND_ASSIGN(LockLayoutManager);
84 }; 84 };
85 85
86 } // namespace ash 86 } // namespace ash
87 87
88 #endif // ASH_COMMON_WM_LOCK_LAYOUT_MANAGER_H_ 88 #endif // ASH_COMMON_WM_LOCK_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/common/wm/fullscreen_window_finder.cc ('k') | ash/common/wm/lock_window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698