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

Side by Side Diff: ash/shell.h

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 8 years, 2 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_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
11 #include "ash/ash_export.h" 11 #include "ash/ash_export.h"
12 #include "ash/system/user/login_status.h" 12 #include "ash/system/user/login_status.h"
13 #include "ash/wm/cursor_delegate.h" 13 #include "ash/wm/cursor_delegate.h"
14 #include "ash/wm/cursor_manager.h" 14 #include "ash/wm/cursor_manager.h"
15 #include "ash/wm/shelf_types.h" 15 #include "ash/wm/shelf_types.h"
16 #include "ash/wm/system_modal_container_event_filter_delegate.h" 16 #include "ash/wm/system_modal_container_event_filter_delegate.h"
17 #include "base/basictypes.h" 17 #include "base/basictypes.h"
18 #include "base/compiler_specific.h" 18 #include "base/compiler_specific.h"
19 #include "base/gtest_prod_util.h" 19 #include "base/gtest_prod_util.h"
20 #include "base/memory/scoped_ptr.h" 20 #include "base/memory/scoped_ptr.h"
21 #include "base/observer_list.h" 21 #include "base/observer_list.h"
22 #include "ui/gfx/insets.h" 22 #include "ui/gfx/insets.h"
23 #include "ui/gfx/screen.h"
23 #include "ui/gfx/size.h" 24 #include "ui/gfx/size.h"
24 25
25 class CommandLine; 26 class CommandLine;
26 27
27 namespace aura { 28 namespace aura {
28 class EventFilter; 29 class EventFilter;
29 class FocusManager; 30 class FocusManager;
30 class RootWindow; 31 class RootWindow;
31 class Window; 32 class Window;
32 namespace client { 33 namespace client {
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // Returns the primary RootWindow. The primary RootWindow is the one 164 // Returns the primary RootWindow. The primary RootWindow is the one
164 // that has a launcher. 165 // that has a launcher.
165 static aura::RootWindow* GetPrimaryRootWindow(); 166 static aura::RootWindow* GetPrimaryRootWindow();
166 167
167 // Returns the active RootWindow. The active RootWindow is the one that 168 // Returns the active RootWindow. The active RootWindow is the one that
168 // contains the current active window as a decendant child. The active 169 // contains the current active window as a decendant child. The active
169 // RootWindow remains the same even when the active window becomes NULL, 170 // RootWindow remains the same even when the active window becomes NULL,
170 // until the another window who has a different root window becomes active. 171 // until the another window who has a different root window becomes active.
171 static aura::RootWindow* GetActiveRootWindow(); 172 static aura::RootWindow* GetActiveRootWindow();
172 173
174 // Returns the global Screen object that's always active in ash.
175 static gfx::Screen* GetAshScreen();
176
173 // Returns all root windows. 177 // Returns all root windows.
174 static RootWindowList GetAllRootWindows(); 178 static RootWindowList GetAllRootWindows();
175 179
176 static aura::Window* GetContainer(aura::RootWindow* root_window, 180 static aura::Window* GetContainer(aura::RootWindow* root_window,
177 int container_id); 181 int container_id);
178 182
179 // Returns the list of containers that match |container_id| in 183 // Returns the list of containers that match |container_id| in
180 // all root windows. 184 // all root windows.
181 static std::vector<aura::Window*> GetAllContainers(int container_id); 185 static std::vector<aura::Window*> GetAllContainers(int container_id);
182 186
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 508
505 // Used by ash/shell. 509 // Used by ash/shell.
506 content::BrowserContext* browser_context_; 510 content::BrowserContext* browser_context_;
507 511
508 DISALLOW_COPY_AND_ASSIGN(Shell); 512 DISALLOW_COPY_AND_ASSIGN(Shell);
509 }; 513 };
510 514
511 } // namespace ash 515 } // namespace ash
512 516
513 #endif // ASH_SHELL_H_ 517 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/screensaver/screensaver_view.cc ('k') | ash/shell.cc » ('j') | ash/shell.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698