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

Side by Side Diff: ash/mus/bridge/wm_root_window_controller_mus.h

Issue 2624613002: Promotes common functions to WmRootWindowController (Closed)
Patch Set: order Created 3 years, 11 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_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ 5 #ifndef ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_
6 #define ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ 6 #define ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_
7 7
8 #include "ash/common/wm_root_window_controller.h" 8 #include "ash/common/wm_root_window_controller.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 const display::Display& GetDisplay() const; 47 const display::Display& GetDisplay() const;
48 48
49 // Exposed as public so WindowManager can call it. 49 // Exposed as public so WindowManager can call it.
50 void MoveWindowsTo(WmWindow* dest); 50 void MoveWindowsTo(WmWindow* dest);
51 51
52 // WmRootWindowController: 52 // WmRootWindowController:
53 bool HasShelf() override; 53 bool HasShelf() override;
54 WmShell* GetShell() override; 54 WmShell* GetShell() override;
55 WmShelf* GetShelf() override; 55 WmShelf* GetShelf() override;
56 WmWindow* GetWindow() override; 56 WmWindow* GetWindow() override;
57 void ConfigureWidgetInitParamsForContainer(
58 views::Widget* widget,
59 int shell_container_id,
60 views::Widget::InitParams* init_params) override;
61 WmWindow* FindEventTarget(const gfx::Point& location_in_screen) override;
62 gfx::Point GetLastMouseLocationInRoot() override;
63 57
64 private: 58 private:
65 friend class RootWindowController; 59 friend class RootWindowController;
66 60
67 // WmRootWindowController: 61 // WmRootWindowController:
68 bool ShouldDestroyWindowInCloseChildWindows(WmWindow* window) override; 62 bool ShouldDestroyWindowInCloseChildWindows(WmWindow* window) override;
69 63
70 WmShellMus* shell_; 64 WmShellMus* shell_;
71 RootWindowController* root_window_controller_; 65 RootWindowController* root_window_controller_;
72 66
73 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerMus); 67 DISALLOW_COPY_AND_ASSIGN(WmRootWindowControllerMus);
74 }; 68 };
75 69
76 } // namespace mus 70 } // namespace mus
77 } // namespace ash 71 } // namespace ash
78 72
79 #endif // ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_ 73 #endif // ASH_MUS_BRIDGE_WM_ROOT_WINDOW_CONTROLLER_MUS_H_
OLDNEW
« no previous file with comments | « ash/common/wm_root_window_controller.cc ('k') | ash/mus/bridge/wm_root_window_controller_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698