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

Unified Diff: ui/views/win/hwnd_message_handler.cc

Issue 151083002: Create a visible window with class name Chrome_RenderWidgetHostHWND which corresponds to the bounds… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 11 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
Index: ui/views/win/hwnd_message_handler.cc
===================================================================
--- ui/views/win/hwnd_message_handler.cc (revision 247584)
+++ ui/views/win/hwnd_message_handler.cc (working copy)
@@ -788,7 +788,7 @@
}
void HWNDMessageHandler::SetCapture() {
- DCHECK(!HasCapture());
+ // DCHECK(!HasCapture());
scottmg 2014/01/31 21:52:01 when is not doing this necessary? wouldn't it eith
ananta 2014/01/31 23:56:26 The dummy Chrome_RenderWidgetHostHWND class sets c
::SetCapture(hwnd());
}
@@ -1333,7 +1333,8 @@
}
void HWNDMessageHandler::OnCaptureChanged(HWND window) {
- delegate_->HandleCaptureLost();
+ if (!HasCapture())
+ delegate_->HandleCaptureLost();
}
void HWNDMessageHandler::OnClose() {

Powered by Google App Engine
This is Rietveld 408576698