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

Unified Diff: aura/desktop_host_win.cc

Issue 7791030: Proper MouseEvent targeting. Adds a Window method that locates a Window for a given point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | « aura/desktop_host_win.h ('k') | aura/event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: aura/desktop_host_win.cc
===================================================================
--- aura/desktop_host_win.cc (revision 98852)
+++ aura/desktop_host_win.cc (working copy)
@@ -47,6 +47,17 @@
return gfx::Rect(r).size();
}
+void DesktopHostWin::SetSize(const gfx::Size& size) {
+ SetWindowPos(
+ hwnd(),
+ NULL,
+ 0,
+ 0,
+ size.width(),
+ size.height(),
+ SWP_NOMOVE | SWP_NOOWNERZORDER | SWP_NOREDRAW | SWP_NOREPOSITION);
+}
+
void DesktopHostWin::OnClose() {
// TODO: this obviously shouldn't be here.
MessageLoopForUI::current()->Quit();
« no previous file with comments | « aura/desktop_host_win.h ('k') | aura/event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698