Chromium Code Reviews| 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); |
| } |