Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Unified Diff: ui/aura/root_window_host_win.cc

Issue 11047012: Wiring metro mouse events to aura viewer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/root_window_host_win.h ('k') | ui/metro_viewer/metro_viewer_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « ui/aura/root_window_host_win.h ('k') | ui/metro_viewer/metro_viewer_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698