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

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

Issue 551373005: Enable ash shell and unit tests in GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: non-exported base for windows Created 6 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
« no previous file with comments | « ash/display/display_controller_unittest.cc ('k') | ash/wm/overview/window_selector_unittest.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_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/ash_export.h"
8 #include "ash/wm/workspace/workspace_layout_manager_delegate.h" 9 #include "ash/wm/workspace/workspace_layout_manager_delegate.h"
10 #include "base/compiler_specific.h"
9 #include "ui/aura/window_observer.h" 11 #include "ui/aura/window_observer.h"
10 12
11 namespace aura { 13 namespace aura {
12 class Window; 14 class Window;
13 } 15 }
14 16
15 namespace ui { 17 namespace ui {
16 class Layer; 18 class Layer;
17 } 19 }
18 20
19 namespace views { 21 namespace views {
20 class Widget; 22 class Widget;
21 } 23 }
22 24
23 namespace ash { 25 namespace ash {
24 26
25 // A background which gets created for a container |window| and which gets 27 // A background which gets created for a container |window| and which gets
26 // stacked behind the topmost window (within that container) covering the 28 // stacked behind the topmost window (within that container) covering the
27 // entire container. 29 // entire container.
28 class WorkspaceBackdropDelegate : public aura::WindowObserver, 30 class ASH_EXPORT WorkspaceBackdropDelegate
29 public WorkspaceLayoutManagerDelegate { 31 : public aura::WindowObserver,
32 public NON_EXPORTED_BASE(WorkspaceLayoutManagerDelegate) {
30 public: 33 public:
31 explicit WorkspaceBackdropDelegate(aura::Window* container); 34 explicit WorkspaceBackdropDelegate(aura::Window* container);
32 virtual ~WorkspaceBackdropDelegate(); 35 virtual ~WorkspaceBackdropDelegate();
33 36
34 // WindowObserver overrides: 37 // WindowObserver overrides:
35 virtual void OnWindowBoundsChanged(aura::Window* window, 38 virtual void OnWindowBoundsChanged(aura::Window* window,
36 const gfx::Rect& old_bounds, 39 const gfx::Rect& old_bounds,
37 const gfx::Rect& new_bounds) OVERRIDE; 40 const gfx::Rect& new_bounds) OVERRIDE;
38 41
39 // WorkspaceLayoutManagerDelegate overrides: 42 // WorkspaceLayoutManagerDelegate overrides:
(...skipping 28 matching lines...) Expand all
68 71
69 // If true, the |RestackOrHideWindow| might recurse. 72 // If true, the |RestackOrHideWindow| might recurse.
70 bool in_restacking_; 73 bool in_restacking_;
71 74
72 DISALLOW_COPY_AND_ASSIGN(WorkspaceBackdropDelegate); 75 DISALLOW_COPY_AND_ASSIGN(WorkspaceBackdropDelegate);
73 }; 76 };
74 77
75 } // namespace ash 78 } // namespace ash
76 79
77 #endif // ASH_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_ 80 #endif // ASH_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/display/display_controller_unittest.cc ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698