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

Side by Side Diff: ash/wm/maximize_mode/workspace_backdrop_delegate.h

Issue 337193002: WorkspaceLayoutManager backdrop should fill entire region. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_ 5 #ifndef ASH_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_
6 #define ASH_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_ 6 #define ASH_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_
7 7
8 #include "ash/wm/workspace/workspace_layout_manager_delegate.h" 8 #include "ash/wm/workspace/workspace_layout_manager_delegate.h"
9 #include "ui/aura/window_observer.h" 9 #include "ui/aura/window_observer.h"
10 10
(...skipping 27 matching lines...) Expand all
38 38
39 // WorkspaceLayoutManagerDelegate overrides: 39 // WorkspaceLayoutManagerDelegate overrides:
40 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE; 40 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE;
41 virtual void OnWindowRemovedFromLayout(aura::Window* child) OVERRIDE; 41 virtual void OnWindowRemovedFromLayout(aura::Window* child) OVERRIDE;
42 virtual void OnChildWindowVisibilityChanged(aura::Window* child, 42 virtual void OnChildWindowVisibilityChanged(aura::Window* child,
43 bool visible) OVERRIDE; 43 bool visible) OVERRIDE;
44 virtual void OnWindowStackingChanged(aura::Window* window) OVERRIDE; 44 virtual void OnWindowStackingChanged(aura::Window* window) OVERRIDE;
45 virtual void OnPostWindowStateTypeChange( 45 virtual void OnPostWindowStateTypeChange(
46 wm::WindowState* window_state, 46 wm::WindowState* window_state,
47 wm::WindowStateType old_type) OVERRIDE; 47 wm::WindowStateType old_type) OVERRIDE;
48 virtual void OnDisplayWorkAreaInsetsChanged() OVERRIDE;
48 49
49 private: 50 private:
50 // Restack the backdrop relatively to the other windows in the container. 51 // Restack the backdrop relatively to the other windows in the container.
51 void RestackBackdrop(); 52 void RestackBackdrop();
52 53
53 // Returns the current visible top level window in the container. 54 // Returns the current visible top level window in the container.
54 aura::Window* GetCurrentTopWindow(); 55 aura::Window* GetCurrentTopWindow();
55 56
56 // Position & size the background over the container window. 57 // Position & size the background over the container window.
57 void AdjustToContainerBounds(); 58 void AdjustToContainerBounds();
58 59
59 // Show the overlay. 60 // Show the overlay.
60 void Show(); 61 void Show();
61 62
62 // The background which covers the rest of the screen. 63 // The background which covers the rest of the screen.
63 views::Widget* background_; 64 views::Widget* background_;
64 65
65 // The window which is being "maximized". 66 // The window which is being "maximized".
66 aura::Window* container_; 67 aura::Window* container_;
67 68
68 // If true, the |RestackOrHideWindow| might recurse. 69 // If true, the |RestackOrHideWindow| might recurse.
69 bool in_restacking_; 70 bool in_restacking_;
70 71
71 DISALLOW_COPY_AND_ASSIGN(WorkspaceBackdropDelegate); 72 DISALLOW_COPY_AND_ASSIGN(WorkspaceBackdropDelegate);
72 }; 73 };
73 74
74 } // namespace ash 75 } // namespace ash
75 76
76 #endif // ASH_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_ 77 #endif // ASH_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/maximize_mode/workspace_backdrop_delegate.cc » ('j') | ash/wm/workspace/workspace_layout_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698