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

Side by Side Diff: ash/root_window_controller.h

Issue 149493008: Use active window if on current workspace for fullscreen mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update fullscreen state tracking in workspace and only consider switchable containers for active no… Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ROOT_WINDOW_CONTROLLER_H_ 5 #ifndef ASH_ROOT_WINDOW_CONTROLLER_H_
6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ 6 #define ASH_ROOT_WINDOW_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 // Returns the RootWindowController of the target root window. 104 // Returns the RootWindowController of the target root window.
105 static internal::RootWindowController* ForTargetRootWindow(); 105 static internal::RootWindowController* ForTargetRootWindow();
106 106
107 // Returns container which contains a given |window|. 107 // Returns container which contains a given |window|.
108 static aura::Window* GetContainerForWindow(aura::Window* window); 108 static aura::Window* GetContainerForWindow(aura::Window* window);
109 109
110 virtual ~RootWindowController(); 110 virtual ~RootWindowController();
111 111
112 aura::Window* root_window() { return dispatcher()->window(); } 112 aura::Window* root_window() { return dispatcher()->window(); }
113 const aura::Window* root_window() const { return dispatcher()->window(); }
114
113 aura::WindowEventDispatcher* dispatcher() { return root_window_.get(); } 115 aura::WindowEventDispatcher* dispatcher() { return root_window_.get(); }
116 const aura::WindowEventDispatcher* dispatcher() const {
117 return root_window_.get();
118 }
114 119
115 RootWindowLayoutManager* root_window_layout() { return root_window_layout_; } 120 RootWindowLayoutManager* root_window_layout() { return root_window_layout_; }
116 121
117 WorkspaceController* workspace_controller() { 122 WorkspaceController* workspace_controller() {
118 return workspace_controller_.get(); 123 return workspace_controller_.get();
119 } 124 }
120 125
121 AlwaysOnTopController* always_on_top_controller() { 126 AlwaysOnTopController* always_on_top_controller() {
122 return always_on_top_controller_.get(); 127 return always_on_top_controller_.get();
123 } 128 }
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 317
313 318
314 // Gets the RootWindowController for |root_window|. 319 // Gets the RootWindowController for |root_window|.
315 ASH_EXPORT RootWindowController* GetRootWindowController( 320 ASH_EXPORT RootWindowController* GetRootWindowController(
316 const aura::Window* root_window); 321 const aura::Window* root_window);
317 322
318 } // namespace internal 323 } // namespace internal
319 } // ash 324 } // ash
320 325
321 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ 326 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/root_window_controller.cc » ('j') | ash/shelf/shelf_layout_manager_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698