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

Side by Side Diff: ash/aura/wm_root_window_controller_aura.h

Issue 2103913003: Converts MaximizeModeWindowManager to use ash/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@maximize_mode_event_handler
Patch Set: fix chrome Created 4 years, 5 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 | « no previous file | ash/aura/wm_root_window_controller_aura.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_AURA_WM_ROOT_CONTROLLER_AURA_H_ 5 #ifndef ASH_AURA_WM_ROOT_CONTROLLER_AURA_H_
6 #define ASH_AURA_WM_ROOT_CONTROLLER_AURA_H_ 6 #define ASH_AURA_WM_ROOT_CONTROLLER_AURA_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_root_window_controller.h" 10 #include "ash/common/wm_root_window_controller.h"
(...skipping 18 matching lines...) Expand all
29 static WmRootWindowControllerAura* Get(aura::Window* window) { 29 static WmRootWindowControllerAura* Get(aura::Window* window) {
30 return const_cast<WmRootWindowControllerAura*>( 30 return const_cast<WmRootWindowControllerAura*>(
31 Get(const_cast<const aura::Window*>(window))); 31 Get(const_cast<const aura::Window*>(window)));
32 } 32 }
33 static const WmRootWindowControllerAura* Get(const aura::Window* window); 33 static const WmRootWindowControllerAura* Get(const aura::Window* window);
34 34
35 // WmRootWindowController: 35 // WmRootWindowController:
36 bool HasShelf() override; 36 bool HasShelf() override;
37 WmShell* GetShell() override; 37 WmShell* GetShell() override;
38 wm::WorkspaceWindowState GetWorkspaceWindowState() override; 38 wm::WorkspaceWindowState GetWorkspaceWindowState() override;
39 void SetMaximizeBackdropDelegate(
40 std::unique_ptr<WorkspaceLayoutManagerBackdropDelegate> delegate)
41 override;
39 AlwaysOnTopController* GetAlwaysOnTopController() override; 42 AlwaysOnTopController* GetAlwaysOnTopController() override;
40 WmShelf* GetShelf() override; 43 WmShelf* GetShelf() override;
41 WmWindow* GetWindow() override; 44 WmWindow* GetWindow() override;
42 void ConfigureWidgetInitParamsForContainer( 45 void ConfigureWidgetInitParamsForContainer(
43 views::Widget* widget, 46 views::Widget* widget,
44 int shell_container_id, 47 int shell_container_id,
45 views::Widget::InitParams* init_params) override; 48 views::Widget::InitParams* init_params) override;
46 WmWindow* FindEventTarget(const gfx::Point& location_in_screen) override; 49 WmWindow* FindEventTarget(const gfx::Point& location_in_screen) override;
47 void AddObserver(WmRootWindowControllerObserver* observer) override; 50 void AddObserver(WmRootWindowControllerObserver* observer) override;
48 void RemoveObserver(WmRootWindowControllerObserver* observer) override; 51 void RemoveObserver(WmRootWindowControllerObserver* observer) override;
49 52
50 // ShellObserver: 53 // ShellObserver:
51 void OnDisplayWorkAreaInsetsChanged() override; 54 void OnDisplayWorkAreaInsetsChanged() override;
52 void OnFullscreenStateChanged(bool is_fullscreen, 55 void OnFullscreenStateChanged(bool is_fullscreen,
53 WmWindow* root_window) override; 56 WmWindow* root_window) override;
54 void OnShelfAlignmentChanged(WmWindow* root_window) override; 57 void OnShelfAlignmentChanged(WmWindow* root_window) override;
55 58
56 private: 59 private:
57 RootWindowController* root_window_controller_; 60 RootWindowController* root_window_controller_;
58 base::ObserverList<WmRootWindowControllerObserver> observers_; 61 base::ObserverList<WmRootWindowControllerObserver> observers_;
59 62
60 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerAura); 63 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerAura);
61 }; 64 };
62 65
63 } // namespace ash 66 } // namespace ash
64 67
65 #endif // ASH_AURA_WM_ROOT_CONTROLLER_AURA_H_ 68 #endif // ASH_AURA_WM_ROOT_CONTROLLER_AURA_H_
OLDNEW
« no previous file with comments | « no previous file | ash/aura/wm_root_window_controller_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698