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

Unified Diff: ui/views/win/hwnd_message_handler.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: More changes based on feedback/suggestions 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
« no previous file with comments | « content/browser/renderer_host/legacy_render_widget_host_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/win/hwnd_message_handler.cc
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
index 531b4881a52f56d1dfe62604a6999364b81b6fd9..123ee058cab570076dd15f7bb4225ded3281ca38 100644
--- a/ui/views/win/hwnd_message_handler.cc
+++ b/ui/views/win/hwnd_message_handler.cc
@@ -8,7 +8,6 @@
#include <oleacc.h>
#include <shellapi.h>
#include <tchar.h>
-#include <tpcshrd.h>
#include <utility>
@@ -385,9 +384,7 @@ void HWNDMessageHandler::Init(HWND parent, const gfx::Rect& bounds) {
direct_manipulation_helper_->Initialize(hwnd());
// Disable pen flicks (http://crbug.com/506977)
- ::SetProp(hwnd(), MICROSOFT_TABLETPENSERVICE_PROPERTY,
- reinterpret_cast<HANDLE>(TABLET_DISABLE_FLICKS |
- TABLET_DISABLE_FLICKFALLBACKKEYS));
+ base::win::DisableFlicks(hwnd());
}
void HWNDMessageHandler::InitModalType(ui::ModalType modal_type) {
@@ -414,9 +411,8 @@ void HWNDMessageHandler::Close() {
// they can activate as foreground windows upon this window's destruction.
RestoreEnabledIfNecessary();
- // Remove the property which disables pen flicks (http://crbug.com/506977)
- // for this window.
- ::RemoveProp(hwnd(), MICROSOFT_TABLETPENSERVICE_PROPERTY);
+ // Re-enable flicks which removes the window property.
+ base::win::EnableFlicks(hwnd());
if (!waiting_for_close_now_) {
// And we delay the close so that if we are called from an ATL callback,
« no previous file with comments | « content/browser/renderer_host/legacy_render_widget_host_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698