| Index: ui/aura/root_window_host_win.cc
|
| ===================================================================
|
| --- ui/aura/root_window_host_win.cc (revision 160403)
|
| +++ ui/aura/root_window_host_win.cc (working copy)
|
| @@ -28,9 +28,8 @@
|
| } // namespace
|
|
|
| // static
|
| -RootWindowHost* RootWindowHost::Create(RootWindowHostDelegate* delegate,
|
| - const gfx::Rect& bounds) {
|
| - return new RootWindowHostWin(delegate, bounds);
|
| +RootWindowHost* RootWindowHost::Create(const gfx::Rect& bounds) {
|
| + return new RootWindowHostWin(bounds);
|
| }
|
|
|
| // static
|
| @@ -46,9 +45,8 @@
|
| GetSystemMetrics(SM_CYSCREEN));
|
| }
|
|
|
| -RootWindowHostWin::RootWindowHostWin(RootWindowHostDelegate* delegate,
|
| - const gfx::Rect& bounds)
|
| - : delegate_(delegate),
|
| +RootWindowHostWin::RootWindowHostWin(const gfx::Rect& bounds)
|
| + : delegate_(NULL),
|
| fullscreen_(false),
|
| has_capture_(false),
|
| saved_window_style_(0),
|
| @@ -62,6 +60,10 @@
|
| DestroyWindow(hwnd());
|
| }
|
|
|
| +void RootWindowHostWin::SetDelegate(RootWindowHostDelegate* delegate) {
|
| + delegate_ = delegate;
|
| +}
|
| +
|
| RootWindow* RootWindowHostWin::GetRootWindow() {
|
| return delegate_->AsRootWindow();
|
| }
|
|
|