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

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

Issue 1914093002: Refactors DockedWindowLayoutManager in terms of ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nuke_aura_window
Patch Set: comment Created 4 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
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_WM_AURA_WM_ROOT_CONTROLLER_AURA_H_ 5 #ifndef ASH_WM_AURA_WM_ROOT_CONTROLLER_AURA_H_
6 #define ASH_WM_AURA_WM_ROOT_CONTROLLER_AURA_H_ 6 #define ASH_WM_AURA_WM_ROOT_CONTROLLER_AURA_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shell_observer.h" 9 #include "ash/shell_observer.h"
10 #include "ash/wm/common/wm_root_window_controller.h" 10 #include "ash/wm/common/wm_root_window_controller.h"
(...skipping 20 matching lines...) Expand all
31 static WmRootWindowControllerAura* Get(aura::Window* window) { 31 static WmRootWindowControllerAura* Get(aura::Window* window) {
32 return const_cast<WmRootWindowControllerAura*>( 32 return const_cast<WmRootWindowControllerAura*>(
33 Get(const_cast<const aura::Window*>(window))); 33 Get(const_cast<const aura::Window*>(window)));
34 } 34 }
35 static const WmRootWindowControllerAura* Get(const aura::Window* window); 35 static const WmRootWindowControllerAura* Get(const aura::Window* window);
36 36
37 // WmRootWindowController: 37 // WmRootWindowController:
38 bool HasShelf() override; 38 bool HasShelf() override;
39 WmGlobals* GetGlobals() override; 39 WmGlobals* GetGlobals() override;
40 WorkspaceWindowState GetWorkspaceWindowState() override; 40 WorkspaceWindowState GetWorkspaceWindowState() override;
41 WmShelf* GetShelf() override;
41 WmWindow* GetWindow() override; 42 WmWindow* GetWindow() override;
42 void ConfigureWidgetInitParamsForContainer( 43 void ConfigureWidgetInitParamsForContainer(
43 views::Widget* widget, 44 views::Widget* widget,
44 int shell_container_id, 45 int shell_container_id,
45 views::Widget::InitParams* init_params) override; 46 views::Widget::InitParams* init_params) override;
46 void AddObserver(WmRootWindowControllerObserver* observer) override; 47 void AddObserver(WmRootWindowControllerObserver* observer) override;
47 void RemoveObserver(WmRootWindowControllerObserver* observer) override; 48 void RemoveObserver(WmRootWindowControllerObserver* observer) override;
48 49
49 // ShellObserver: 50 // ShellObserver:
50 void OnDisplayWorkAreaInsetsChanged() override; 51 void OnDisplayWorkAreaInsetsChanged() override;
51 void OnFullscreenStateChanged(bool is_fullscreen, 52 void OnFullscreenStateChanged(bool is_fullscreen,
52 aura::Window* root_window) override; 53 aura::Window* root_window) override;
53 void OnShelfAlignmentChanged(aura::Window* root_window) override; 54 void OnShelfAlignmentChanged(aura::Window* root_window) override;
54 55
55 private: 56 private:
56 RootWindowController* root_window_controller_; 57 RootWindowController* root_window_controller_;
57 base::ObserverList<WmRootWindowControllerObserver> observers_; 58 base::ObserverList<WmRootWindowControllerObserver> observers_;
58 59
59 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerAura); 60 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerAura);
60 }; 61 };
61 62
62 } // namespace wm 63 } // namespace wm
63 } // namespace ash 64 } // namespace ash
64 65
65 #endif // ASH_WM_AURA_WM_ROOT_CONTROLLER_AURA_H_ 66 #endif // ASH_WM_AURA_WM_ROOT_CONTROLLER_AURA_H_
OLDNEW
« no previous file with comments | « ash/system/web_notification/web_notification_tray.cc ('k') | ash/wm/aura/wm_root_window_controller_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698