diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-21 05:19:32 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-21 05:19:32 +0000 |
commit | 056ce05075d1eccc591007b553acf1a77c9984da (patch) | |
tree | 0120aab5ede38d13baf801b95b18f2c073657721 /ui/aura/window_tree_host_win.cc | |
parent | 21d32ecf459324e55d24a84a4fc89d9166fa4fc8 (diff) | |
download | chromium_src-056ce05075d1eccc591007b553acf1a77c9984da.zip chromium_src-056ce05075d1eccc591007b553acf1a77c9984da.tar.gz chromium_src-056ce05075d1eccc591007b553acf1a77c9984da.tar.bz2 |
Rename RootWindow -> WindowEventDispatcher.
http://crbug.com/308843
R=sky@chromium.org
Review URL: https://codereview.chromium.org/172743002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252501 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/window_tree_host_win.cc')
-rw-r--r-- | ui/aura/window_tree_host_win.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ui/aura/window_tree_host_win.cc b/ui/aura/window_tree_host_win.cc index e1f9ea2..53851df 100644 --- a/ui/aura/window_tree_host_win.cc +++ b/ui/aura/window_tree_host_win.cc @@ -56,10 +56,6 @@ WindowTreeHostWin::~WindowTreeHostWin() { DestroyWindow(hwnd()); } -RootWindow* WindowTreeHostWin::GetRootWindow() { - return delegate_->AsRootWindow(); -} - gfx::AcceleratedWidget WindowTreeHostWin::GetAcceleratedWidget() { return hwnd(); } @@ -138,8 +134,8 @@ void WindowTreeHostWin::SetBounds(const gfx::Rect& bounds) { // the window size may not have changed. float current_scale = compositor()->device_scale_factor(); float new_scale = gfx::Screen::GetScreenFor( - delegate_->AsRootWindow()->window())->GetDisplayNearestWindow( - delegate_->AsRootWindow()->window()).device_scale_factor(); + delegate_->AsDispatcher()->window())->GetDisplayNearestWindow( + delegate_->AsDispatcher()->window()).device_scale_factor(); if (current_scale != new_scale) NotifyHostResized(bounds.size()); } @@ -174,7 +170,7 @@ void WindowTreeHostWin::ReleaseCapture() { bool WindowTreeHostWin::QueryMouseLocation(gfx::Point* location_return) { client::CursorClient* cursor_client = - client::GetCursorClient(GetRootWindow()->window()); + client::GetCursorClient(GetDispatcher()->window()); if (cursor_client && !cursor_client->IsMouseEventsEnabled()) { *location_return = gfx::Point(0, 0); return false; |