diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-10 06:16:08 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-10 06:16:08 +0000 |
commit | 688c225e6f3825179e1b8d706f05e4438fa1e36a (patch) | |
tree | a4b7ce2c97553f52b6fb89a75b37b3e00bc62505 /ui/aura/bench | |
parent | 6ed843366f5ee413ca48f1ad245ab0000981b8f6 (diff) | |
download | chromium_src-688c225e6f3825179e1b8d706f05e4438fa1e36a.zip chromium_src-688c225e6f3825179e1b8d706f05e4438fa1e36a.tar.gz chromium_src-688c225e6f3825179e1b8d706f05e4438fa1e36a.tar.bz2 |
Use Window instead of RootWindow in many more places throughout the codebase
TBR=sky@chromium.org
http://crbug.com/308843
Review URL: https://codereview.chromium.org/66653005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234166 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/bench')
-rw-r--r-- | ui/aura/bench/bench_main.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/aura/bench/bench_main.cc b/ui/aura/bench/bench_main.cc index 372c17a..9ebfb39 100644 --- a/ui/aura/bench/bench_main.cc +++ b/ui/aura/bench/bench_main.cc @@ -316,17 +316,17 @@ int main(int argc, char** argv) { scoped_ptr<aura::RootWindow> root_window( test_screen->CreateRootWindowForPrimaryDisplay()); aura::client::SetCaptureClient( - root_window.get(), - new aura::client::DefaultCaptureClient(root_window.get())); + root_window->window(), + new aura::client::DefaultCaptureClient(root_window->window())); scoped_ptr<aura::client::FocusClient> focus_client( new aura::test::TestFocusClient); - aura::client::SetFocusClient(root_window.get(), focus_client.get()); + aura::client::SetFocusClient(root_window->window(), focus_client.get()); // add layers ColoredLayer background(SK_ColorRED); - background.SetBounds(root_window->bounds()); - root_window->layer()->Add(&background); + background.SetBounds(root_window->window()->bounds()); + root_window->window()->layer()->Add(&background); ColoredLayer window(SK_ColorBLUE); window.SetBounds(gfx::Rect(background.bounds().size())); @@ -360,7 +360,7 @@ int main(int argc, char** argv) { } #ifndef NDEBUG - ui::PrintLayerHierarchy(root_window->layer(), gfx::Point(100, 100)); + ui::PrintLayerHierarchy(root_window->window()->layer(), gfx::Point(100, 100)); #endif root_window->ShowRootWindow(); |