diff options
author | spang@chromium.org <spang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-14 23:33:04 +0000 |
---|---|---|
committer | spang@chromium.org <spang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-14 23:33:04 +0000 |
commit | 23bc7aa52ba12f27fe0671c16882f3e574077568 (patch) | |
tree | 67fb5d74ea22bad1c52068388b7c9c7b1ca7e389 /content/shell | |
parent | 1898561794589d724eb2ede2530f5d962c96e748 (diff) | |
download | chromium_src-23bc7aa52ba12f27fe0671c16882f3e574077568.zip chromium_src-23bc7aa52ba12f27fe0671c16882f3e574077568.tar.gz chromium_src-23bc7aa52ba12f27fe0671c16882f3e574077568.tar.bz2 |
Fix shell_aura.cc with RootWindow refactor
To get aura::Window we need to call root_window_->window().
NOTRY=true
Review URL: https://codereview.chromium.org/72013002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235254 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell')
-rw-r--r-- | content/shell/browser/shell_aura.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/content/shell/browser/shell_aura.cc b/content/shell/browser/shell_aura.cc index 9fdd448..c14b9f3 100644 --- a/content/shell/browser/shell_aura.cc +++ b/content/shell/browser/shell_aura.cc @@ -71,14 +71,14 @@ class MinimalInputEventFilter : public ui::internal::InputMethodDelegate, input_method_(ui::CreateInputMethod(this, gfx::kNullAcceleratedWidget)) { input_method_->Init(true); - root_->AddPreTargetHandler(this); - root_->SetProperty(aura::client::kRootWindowInputMethodKey, + root_->window()->AddPreTargetHandler(this); + root_->window()->SetProperty(aura::client::kRootWindowInputMethodKey, input_method_.get()); } virtual ~MinimalInputEventFilter() { - root_->RemovePreTargetHandler(this); - root_->SetProperty(aura::client::kRootWindowInputMethodKey, + root_->window()->RemovePreTargetHandler(this); + root_->window()->SetProperty(aura::client::kRootWindowInputMethodKey, static_cast<ui::InputMethod*>(NULL)); } @@ -129,17 +129,17 @@ ShellAuraPlatformData::ShellAuraPlatformData() { gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, screen); root_window_.reset(screen->CreateRootWindowForPrimaryDisplay()); root_window_->ShowRootWindow(); - root_window_->SetLayoutManager(new FillLayout(root_window_.get())); + root_window_->window()->SetLayoutManager(new FillLayout(root_window_.get())); focus_client_.reset(new aura::test::TestFocusClient()); - aura::client::SetFocusClient(root_window_.get(), focus_client_.get()); + aura::client::SetFocusClient(root_window_->window(), focus_client_.get()); activation_client_.reset( - new aura::client::DefaultActivationClient(root_window_.get())); + new aura::client::DefaultActivationClient(root_window_->window())); capture_client_.reset( - new aura::client::DefaultCaptureClient(root_window_.get())); + new aura::client::DefaultCaptureClient(root_window_->window())); window_tree_client_.reset( - new aura::test::TestWindowTreeClient(root_window_.get())); + new aura::test::TestWindowTreeClient(root_window_->window())); ime_filter_.reset(new MinimalInputEventFilter(root_window_.get())); } @@ -184,7 +184,7 @@ void Shell::PlatformCreateWindow(int width, int height) { void Shell::PlatformSetContents() { CHECK(platform_); aura::Window* content = web_contents_->GetView()->GetNativeView(); - aura::Window* parent = platform_->window(); + aura::Window* parent = platform_->window()->window(); if (parent->Contains(content)) return; parent->AddChild(content); |