| OLD | NEW |
| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 wParam; \ | 96 wParam; \ |
| 97 lParam; \ | 97 lParam; \ |
| 98 lResult; \ | 98 lResult; \ |
| 99 bHandled; \ | 99 bHandled; \ |
| 100 switch(dwMsgMapID) { \ | 100 switch(dwMsgMapID) { \ |
| 101 case 0: | 101 case 0: |
| 102 | 102 |
| 103 // An object that handles messages for a HWND that implements the views | 103 // An object that handles messages for a HWND that implements the views |
| 104 // "Custom Frame" look. The purpose of this class is to isolate the windows- | 104 // "Custom Frame" look. The purpose of this class is to isolate the windows- |
| 105 // specific message handling from the code that wraps it. It is intended to be | 105 // specific message handling from the code that wraps it. It is intended to be |
| 106 // used by both a views::NativeWidget and an aura::RootWindowHost | 106 // used by both a views::NativeWidget and an aura::WindowTreeHost |
| 107 // implementation. | 107 // implementation. |
| 108 // TODO(beng): This object should eventually *become* the WindowImpl. | 108 // TODO(beng): This object should eventually *become* the WindowImpl. |
| 109 class VIEWS_EXPORT HWNDMessageHandler : | 109 class VIEWS_EXPORT HWNDMessageHandler : |
| 110 public gfx::WindowImpl, | 110 public gfx::WindowImpl, |
| 111 public internal::InputMethodDelegate, | 111 public internal::InputMethodDelegate, |
| 112 public base::MessageLoopForUI::Observer { | 112 public base::MessageLoopForUI::Observer { |
| 113 public: | 113 public: |
| 114 explicit HWNDMessageHandler(HWNDMessageHandlerDelegate* delegate); | 114 explicit HWNDMessageHandler(HWNDMessageHandlerDelegate* delegate); |
| 115 ~HWNDMessageHandler(); | 115 ~HWNDMessageHandler(); |
| 116 | 116 |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 }; | 538 }; |
| 539 | 539 |
| 540 // This window property if set on the window does not activate the window for a | 540 // This window property if set on the window does not activate the window for a |
| 541 // touch based WM_MOUSEACTIVATE message. | 541 // touch based WM_MOUSEACTIVATE message. |
| 542 const wchar_t kIgnoreTouchMouseActivateForWindow[] = | 542 const wchar_t kIgnoreTouchMouseActivateForWindow[] = |
| 543 L"Chrome.IgnoreMouseActivate"; | 543 L"Chrome.IgnoreMouseActivate"; |
| 544 | 544 |
| 545 } // namespace views | 545 } // namespace views |
| 546 | 546 |
| 547 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 547 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| OLD | NEW |