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

Side by Side Diff: ash/shell.h

Issue 10835047: Allow the cursor to warp even when a window is dragged (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: style fix Created 8 years, 4 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
« no previous file with comments | « ash/screen_ash.cc ('k') | ash/shell.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 (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_SHELL_H_ 5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_ 6 #define ASH_SHELL_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // Returns the primary RootWindow. The primary RootWindow is the one 159 // Returns the primary RootWindow. The primary RootWindow is the one
160 // that has a launcher. 160 // that has a launcher.
161 static aura::RootWindow* GetPrimaryRootWindow(); 161 static aura::RootWindow* GetPrimaryRootWindow();
162 162
163 // Returns the active RootWindow. The active RootWindow is the one that 163 // Returns the active RootWindow. The active RootWindow is the one that
164 // contains the current active window as a decendant child. The active 164 // contains the current active window as a decendant child. The active
165 // RootWindow remains the same even when the active window becomes NULL, 165 // RootWindow remains the same even when the active window becomes NULL,
166 // until the another window who has a different root window becomes active. 166 // until the another window who has a different root window becomes active.
167 static aura::RootWindow* GetActiveRootWindow(); 167 static aura::RootWindow* GetActiveRootWindow();
168 168
169 // Returns the RootWindow at |point| in the virtual screen coordinates.
170 // Returns NULL if the root window does not exist at the given
171 // point.
172 static aura::RootWindow* GetRootWindowAt(const gfx::Point& point);
173
174 // Returns the RootWindow that shares the most area with |rect| in
175 // the virtual scren coordinates.
176 static aura::RootWindow* GetRootWindowMatching(const gfx::Rect& rect);
177
178 // Returns all root windows. In non extended desktop mode, this 169 // Returns all root windows. In non extended desktop mode, this
179 // returns the primary root window only. 170 // returns the primary root window only.
180 static RootWindowList GetAllRootWindows(); 171 static RootWindowList GetAllRootWindows();
181 172
182 static aura::Window* GetContainer(aura::RootWindow* root_window, 173 static aura::Window* GetContainer(aura::RootWindow* root_window,
183 int container_id); 174 int container_id);
184 175
185 // Returns the list of containers that match |container_id| in 176 // Returns the list of containers that match |container_id| in
186 // all root windows. 177 // all root windows.
187 static std::vector<aura::Window*> GetAllContainers(int container_id); 178 static std::vector<aura::Window*> GetAllContainers(int container_id);
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 483
493 // Used by ash/shell. 484 // Used by ash/shell.
494 content::BrowserContext* browser_context_; 485 content::BrowserContext* browser_context_;
495 486
496 DISALLOW_COPY_AND_ASSIGN(Shell); 487 DISALLOW_COPY_AND_ASSIGN(Shell);
497 }; 488 };
498 489
499 } // namespace ash 490 } // namespace ash
500 491
501 #endif // ASH_SHELL_H_ 492 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/screen_ash.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698