diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-05 00:34:18 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-05 00:34:18 +0000 |
commit | f18e8452e919dc352b28cb1a4575e59e4545e57e (patch) | |
tree | 41c70d7f8ea1e128b8d9fe29556fbe0896998841 /ash | |
parent | 91fc247123c66d127ea4384907e7294fca2e9c53 (diff) | |
download | chromium_src-f18e8452e919dc352b28cb1a4575e59e4545e57e.zip chromium_src-f18e8452e919dc352b28cb1a4575e59e4545e57e.tar.gz chromium_src-f18e8452e919dc352b28cb1a4575e59e4545e57e.tar.bz2 |
Add GetRootWindowAt(const gfx::Point&) per skuhne's request.
Implmenetation is currently just a stub.
BUG=123160
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10502020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140448 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r-- | ash/shell.cc | 5 | ||||
-rw-r--r-- | ash/shell.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/ash/shell.cc b/ash/shell.cc index fcbb11a..8380945 100644 --- a/ash/shell.cc +++ b/ash/shell.cc @@ -687,6 +687,11 @@ aura::RootWindow* Shell::GetActiveRootWindow() { return GetInstance()->active_root_window_; } +aura::RootWindow* Shell::GetRootWindowAt(const gfx::Point& point) { + // TODO(oshima): Support multiple root windows. + return GetPrimaryRootWindow(); +} + void Shell::Init() { // Install the custom factory first so that views::FocusManagers for Tray, // Launcher, and WallPaper could be created by the factory. diff --git a/ash/shell.h b/ash/shell.h index 6e874c0..ef4cb34 100644 --- a/ash/shell.h +++ b/ash/shell.h @@ -152,6 +152,11 @@ class ASH_EXPORT Shell { // until the another window who has a different root window becomes active. static aura::RootWindow* GetActiveRootWindow(); + // Gets the RootWindow at |point| in the virtual screen coordinates. + // Returns NULL if the root window does not exist at the given + // point. + static aura::RootWindow* GetRootWindowAt(const gfx::Point& point); + void set_active_root_window(aura::RootWindow* active_root_window) { active_root_window_ = active_root_window; } |