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

Side by Side Diff: ui/views/win/hwnd_message_handler.h

Issue 133053004: Ensure that trackpad and trackpoint scrolling works on Windows desktop Aura with legacy trackpad dr… (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 MESSAGE_HANDLER_EX(WM_IME_STARTCOMPOSITION, OnImeMessages) 317 MESSAGE_HANDLER_EX(WM_IME_STARTCOMPOSITION, OnImeMessages)
318 MESSAGE_HANDLER_EX(WM_IME_COMPOSITION, OnImeMessages) 318 MESSAGE_HANDLER_EX(WM_IME_COMPOSITION, OnImeMessages)
319 MESSAGE_HANDLER_EX(WM_IME_ENDCOMPOSITION, OnImeMessages) 319 MESSAGE_HANDLER_EX(WM_IME_ENDCOMPOSITION, OnImeMessages)
320 MESSAGE_HANDLER_EX(WM_IME_REQUEST, OnImeMessages) 320 MESSAGE_HANDLER_EX(WM_IME_REQUEST, OnImeMessages)
321 MESSAGE_HANDLER_EX(WM_IME_NOTIFY, OnImeMessages) 321 MESSAGE_HANDLER_EX(WM_IME_NOTIFY, OnImeMessages)
322 MESSAGE_HANDLER_EX(WM_CHAR, OnImeMessages) 322 MESSAGE_HANDLER_EX(WM_CHAR, OnImeMessages)
323 MESSAGE_HANDLER_EX(WM_SYSCHAR, OnImeMessages) 323 MESSAGE_HANDLER_EX(WM_SYSCHAR, OnImeMessages)
324 MESSAGE_HANDLER_EX(WM_DEADCHAR, OnImeMessages) 324 MESSAGE_HANDLER_EX(WM_DEADCHAR, OnImeMessages)
325 MESSAGE_HANDLER_EX(WM_SYSDEADCHAR, OnImeMessages) 325 MESSAGE_HANDLER_EX(WM_SYSDEADCHAR, OnImeMessages)
326 326
327 // Scroll events
328 MESSAGE_HANDLER_EX(WM_VSCROLL, OnScrollMessage)
329 MESSAGE_HANDLER_EX(WM_HSCROLL, OnScrollMessage)
330
327 // Touch Events. 331 // Touch Events.
328 MESSAGE_HANDLER_EX(WM_TOUCH, OnTouchEvent) 332 MESSAGE_HANDLER_EX(WM_TOUCH, OnTouchEvent)
329 333
330 // Uses the general handler macro since the specific handler macro 334 // Uses the general handler macro since the specific handler macro
331 // MSG_WM_NCACTIVATE would convert WPARAM type to BOOL type. The high 335 // MSG_WM_NCACTIVATE would convert WPARAM type to BOOL type. The high
332 // word of WPARAM could be set when the window is minimized or restored. 336 // word of WPARAM could be set when the window is minimized or restored.
333 MESSAGE_HANDLER_EX(WM_NCACTIVATE, OnNCActivate) 337 MESSAGE_HANDLER_EX(WM_NCACTIVATE, OnNCActivate)
334 338
335 // This list is in _ALPHABETICAL_ order! OR I WILL HURT YOU. 339 // This list is in _ALPHABETICAL_ order! OR I WILL HURT YOU.
336 MSG_WM_ACTIVATEAPP(OnActivateApp) 340 MSG_WM_ACTIVATEAPP(OnActivateApp)
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 void OnMoving(UINT param, const RECT* new_bounds); 407 void OnMoving(UINT param, const RECT* new_bounds);
404 LRESULT OnNCActivate(UINT message, WPARAM w_param, LPARAM l_param); 408 LRESULT OnNCActivate(UINT message, WPARAM w_param, LPARAM l_param);
405 LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param); 409 LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param);
406 LRESULT OnNCHitTest(const CPoint& point); 410 LRESULT OnNCHitTest(const CPoint& point);
407 void OnNCPaint(HRGN rgn); 411 void OnNCPaint(HRGN rgn);
408 LRESULT OnNCUAHDrawCaption(UINT message, WPARAM w_param, LPARAM l_param); 412 LRESULT OnNCUAHDrawCaption(UINT message, WPARAM w_param, LPARAM l_param);
409 LRESULT OnNCUAHDrawFrame(UINT message, WPARAM w_param, LPARAM l_param); 413 LRESULT OnNCUAHDrawFrame(UINT message, WPARAM w_param, LPARAM l_param);
410 LRESULT OnNotify(int w_param, NMHDR* l_param); 414 LRESULT OnNotify(int w_param, NMHDR* l_param);
411 void OnPaint(HDC dc); 415 void OnPaint(HDC dc);
412 LRESULT OnReflectedMessage(UINT message, WPARAM w_param, LPARAM l_param); 416 LRESULT OnReflectedMessage(UINT message, WPARAM w_param, LPARAM l_param);
417 LRESULT OnScrollMessage(UINT message, WPARAM w_param, LPARAM l_param);
413 LRESULT OnSetCursor(UINT message, WPARAM w_param, LPARAM l_param); 418 LRESULT OnSetCursor(UINT message, WPARAM w_param, LPARAM l_param);
414 void OnSetFocus(HWND last_focused_window); 419 void OnSetFocus(HWND last_focused_window);
415 LRESULT OnSetIcon(UINT size_type, HICON new_icon); 420 LRESULT OnSetIcon(UINT size_type, HICON new_icon);
416 LRESULT OnSetText(const wchar_t* text); 421 LRESULT OnSetText(const wchar_t* text);
417 void OnSettingChange(UINT flags, const wchar_t* section); 422 void OnSettingChange(UINT flags, const wchar_t* section);
418 void OnSize(UINT param, const CSize& size); 423 void OnSize(UINT param, const CSize& size);
419 void OnSysCommand(UINT notification_code, const CPoint& point); 424 void OnSysCommand(UINT notification_code, const CPoint& point);
420 void OnThemeChanged(); 425 void OnThemeChanged();
421 LRESULT OnTouchEvent(UINT message, WPARAM w_param, LPARAM l_param); 426 LRESULT OnTouchEvent(UINT message, WPARAM w_param, LPARAM l_param);
422 void OnWindowPosChanging(WINDOWPOS* window_pos); 427 void OnWindowPosChanging(WINDOWPOS* window_pos);
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 532
528 // If > 0 indicates a menu is running (we're showing a native menu). 533 // If > 0 indicates a menu is running (we're showing a native menu).
529 int menu_depth_; 534 int menu_depth_;
530 535
531 // A factory used to lookup appbar autohide edges. 536 // A factory used to lookup appbar autohide edges.
532 base::WeakPtrFactory<HWNDMessageHandler> autohide_factory_; 537 base::WeakPtrFactory<HWNDMessageHandler> autohide_factory_;
533 538
534 // Generates touch-ids for touch-events. 539 // Generates touch-ids for touch-events.
535 ui::SequentialIDGenerator id_generator_; 540 ui::SequentialIDGenerator id_generator_;
536 541
542 // Indicates if the window has the WS_VSCROLL and WS_HSCROLL styles set.
543 bool scroll_styles_set_;
544
537 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); 545 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
538 }; 546 };
539 547
540 // This window property if set on the window does not activate the window for a 548 // This window property if set on the window does not activate the window for a
541 // touch based WM_MOUSEACTIVATE message. 549 // touch based WM_MOUSEACTIVATE message.
542 const wchar_t kIgnoreTouchMouseActivateForWindow[] = 550 const wchar_t kIgnoreTouchMouseActivateForWindow[] =
543 L"Chrome.IgnoreMouseActivate"; 551 L"Chrome.IgnoreMouseActivate";
544 552
545 } // namespace views 553 } // namespace views
546 554
547 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 555 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698