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

Unified Diff: content/browser/renderer_host/legacy_render_widget_host_win.cc

Issue 1852503002: Need to set the MICROSOFT_TABLETPENSERVICE_PROPERTY window property even for child windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring based on suggestions from ananta@ Created 4 years, 8 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: content/browser/renderer_host/legacy_render_widget_host_win.cc
diff --git a/content/browser/renderer_host/legacy_render_widget_host_win.cc b/content/browser/renderer_host/legacy_render_widget_host_win.cc
index f99cb38ef6e07195ddccbf4b17e54988e97faa05..c82f16812e76c177c7d357f2393069e64521dcf0 100644
--- a/content/browser/renderer_host/legacy_render_widget_host_win.cc
+++ b/content/browser/renderer_host/legacy_render_widget_host_win.cc
@@ -17,6 +17,7 @@
#include "ui/base/view_prop.h"
#include "ui/base/win/internal_constants.h"
#include "ui/base/win/window_event_target.h"
+#include "base/win/win_util.h"
ananta 2016/04/04 21:17:59 Please fix the include order
kylix_rd 2016/04/04 21:40:51 Done.
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/win/direct_manipulation.h"
#include "ui/gfx/win/dpi.h"
@@ -96,6 +97,10 @@ void LegacyRenderWidgetHostHWND::OnFinalMessage(HWND hwnd) {
host_->OnLegacyWindowDestroyed();
host_ = NULL;
}
+
+ // Re-enable flicks for just a moment
+ base::win::AllowFlicks(hwnd, true);
+
delete this;
}
@@ -136,6 +141,9 @@ bool LegacyRenderWidgetHostHWND::Init() {
if (direct_manipulation_helper_)
direct_manipulation_helper_->Initialize(hwnd());
+ // Disable pen flicks (http://crbug.com/506977)
+ base::win::AllowFlicks(hwnd(), false);
+
return !!SUCCEEDED(hr);
}

Powered by Google App Engine
This is Rietveld 408576698