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

Unified Diff: chrome/browser/ui/views/native_constrained_window_win.cc

Issue 10892014: Make HWNDMessageHandler subclass WindowImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | « chrome/browser/ui/views/frame/browser_frame_win.cc ('k') | ui/views/widget/native_widget_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/native_constrained_window_win.cc
===================================================================
--- chrome/browser/ui/views/native_constrained_window_win.cc (revision 153679)
+++ chrome/browser/ui/views/native_constrained_window_win.cc (working copy)
@@ -34,12 +34,15 @@
delegate_->OnNativeConstrainedWindowDestroyed();
NativeWidgetWin::OnFinalMessage(window);
}
- virtual LRESULT OnMouseActivate(UINT message,
- WPARAM w_param,
- LPARAM l_param) OVERRIDE {
- if (IsNonClientHitTestCode(static_cast<UINT>(LOWORD(l_param))))
+ virtual bool PreHandleMSG(UINT message,
+ WPARAM w_param,
+ LPARAM l_param,
+ LRESULT* result) OVERRIDE {
+ if (message == WM_MOUSEACTIVATE &&
+ IsNonClientHitTestCode(static_cast<UINT>(LOWORD(l_param)))) {
delegate_->OnNativeConstrainedWindowMouseActivate();
- return NativeWidgetWin::OnMouseActivate(message, w_param, l_param);
+ }
+ return false;
}
NativeConstrainedWindowDelegate* delegate_;
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame_win.cc ('k') | ui/views/widget/native_widget_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698