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

Side by Side Diff: ash/wm/workspace/backdrop_delegate.h

Issue 2890733005: Refactor backdrop that is currently used in the maximized mode. (Closed)
Patch Set: fix memory issue in AshTouchExplorationManager 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
« no previous file with comments | « ash/wm/workspace/backdrop_controller.cc ('k') | ash/wm/workspace/workspace_layout_manager.h » ('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_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_BACKDROP_DELEGATE_H_ 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_BACKDROP_DELEGATE_H_
6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_BACKDROP_DELEGATE_H_ 6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_BACKDROP_DELEGATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/wm_types.h" 9
10 namespace aura {
11 class Window;
12 }
10 13
11 namespace ash { 14 namespace ash {
12 15
13 class WmWindow;
14
15 namespace wm {
16 class WindowState;
17 }
18
19 // A delegate which can be set to create and control a backdrop which gets 16 // A delegate which can be set to create and control a backdrop which gets
20 // placed below the top level window. 17 // placed below the top level window.
21 class ASH_EXPORT WorkspaceLayoutManagerBackdropDelegate { 18 class ASH_EXPORT BackdropDelegate {
22 public: 19 public:
23 virtual ~WorkspaceLayoutManagerBackdropDelegate() {} 20 virtual ~BackdropDelegate() {}
24 21
25 // A window got added to the layout. 22 // A window got added to the layout.
26 virtual void OnWindowAddedToLayout(WmWindow* child) = 0; 23 virtual bool HasBackdrop(aura::Window* window) = 0;
27
28 // A window got removed from the layout.
29 virtual void OnWindowRemovedFromLayout(WmWindow* child) = 0;
30
31 // The visibility of a window has changed.
32 virtual void OnChildWindowVisibilityChanged(WmWindow* child,
33 bool visible) = 0;
34
35 // The stacking order of a window has changed.
36 virtual void OnWindowStackingChanged(WmWindow* window) = 0;
37
38 // A window state type has changed.
39 virtual void OnPostWindowStateTypeChange(wm::WindowState* window_state,
40 wm::WindowStateType old_type) = 0;
41 }; 24 };
42 25
43 } // namespace ash 26 } // namespace ash
44 27
45 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_BACKDROP_DELEGATE_H_ 28 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_BACKDROP_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/backdrop_controller.cc ('k') | ash/wm/workspace/workspace_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698