OLD | NEW |
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/wm_root_window_controller.h" | 9 #include "ash/common/wm_root_window_controller.h" |
10 #include "ash/shell_observer.h" | 10 #include "ash/shell_observer.h" |
(...skipping 19 matching lines...) Expand all Loading... |
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 AlwaysOnTopController* GetAlwaysOnTopController() override; | 39 AlwaysOnTopController* GetAlwaysOnTopController() override; |
40 wm::WmShelf* GetShelf() override; | 40 WmShelf* GetShelf() override; |
41 WmWindow* GetWindow() override; | 41 WmWindow* GetWindow() override; |
42 void ConfigureWidgetInitParamsForContainer( | 42 void ConfigureWidgetInitParamsForContainer( |
43 views::Widget* widget, | 43 views::Widget* widget, |
44 int shell_container_id, | 44 int shell_container_id, |
45 views::Widget::InitParams* init_params) override; | 45 views::Widget::InitParams* init_params) override; |
46 WmWindow* FindEventTarget(const gfx::Point& location_in_screen) override; | 46 WmWindow* FindEventTarget(const gfx::Point& location_in_screen) override; |
47 void AddObserver(WmRootWindowControllerObserver* observer) override; | 47 void AddObserver(WmRootWindowControllerObserver* observer) override; |
48 void RemoveObserver(WmRootWindowControllerObserver* observer) override; | 48 void RemoveObserver(WmRootWindowControllerObserver* observer) override; |
49 | 49 |
50 // ShellObserver: | 50 // ShellObserver: |
51 void OnDisplayWorkAreaInsetsChanged() override; | 51 void OnDisplayWorkAreaInsetsChanged() override; |
52 void OnFullscreenStateChanged(bool is_fullscreen, | 52 void OnFullscreenStateChanged(bool is_fullscreen, |
53 aura::Window* root_window) override; | 53 aura::Window* root_window) override; |
54 void OnShelfAlignmentChanged(aura::Window* root_window) override; | 54 void OnShelfAlignmentChanged(aura::Window* root_window) override; |
55 | 55 |
56 private: | 56 private: |
57 RootWindowController* root_window_controller_; | 57 RootWindowController* root_window_controller_; |
58 base::ObserverList<WmRootWindowControllerObserver> observers_; | 58 base::ObserverList<WmRootWindowControllerObserver> observers_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerAura); | 60 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerAura); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace ash | 63 } // namespace ash |
64 | 64 |
65 #endif // ASH_AURA_WM_ROOT_CONTROLLER_AURA_H_ | 65 #endif // ASH_AURA_WM_ROOT_CONTROLLER_AURA_H_ |
OLD | NEW |