| 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 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 // The last cursor that was active before the current one was selected. Saved | 555 // The last cursor that was active before the current one was selected. Saved |
| 556 // so that we can restore it. | 556 // so that we can restore it. |
| 557 HCURSOR previous_cursor_; | 557 HCURSOR previous_cursor_; |
| 558 | 558 |
| 559 // The icon created from the bitmap image of the window icon. | 559 // The icon created from the bitmap image of the window icon. |
| 560 base::win::ScopedHICON window_icon_; | 560 base::win::ScopedHICON window_icon_; |
| 561 | 561 |
| 562 // The icon created from the bitmap image of the app icon. | 562 // The icon created from the bitmap image of the app icon. |
| 563 base::win::ScopedHICON app_icon_; | 563 base::win::ScopedHICON app_icon_; |
| 564 | 564 |
| 565 // The current DPI. |
| 566 int dpi_; |
| 567 |
| 565 // Event handling ------------------------------------------------------------ | 568 // Event handling ------------------------------------------------------------ |
| 566 | 569 |
| 567 // The flags currently being used with TrackMouseEvent to track mouse | 570 // The flags currently being used with TrackMouseEvent to track mouse |
| 568 // messages. 0 if there is no active tracking. The value of this member is | 571 // messages. 0 if there is no active tracking. The value of this member is |
| 569 // used when tracking is canceled. | 572 // used when tracking is canceled. |
| 570 DWORD active_mouse_tracking_flags_; | 573 DWORD active_mouse_tracking_flags_; |
| 571 | 574 |
| 572 // Set to true when the user presses the right mouse button on the caption | 575 // Set to true when the user presses the right mouse button on the caption |
| 573 // area. We need this so we can correctly show the context menu on mouse-up. | 576 // area. We need this so we can correctly show the context menu on mouse-up. |
| 574 bool is_right_mouse_pressed_on_caption_; | 577 bool is_right_mouse_pressed_on_caption_; |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 | 687 |
| 685 // The factory used with BEGIN_SAFE_MSG_MAP_EX. | 688 // The factory used with BEGIN_SAFE_MSG_MAP_EX. |
| 686 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; | 689 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; |
| 687 | 690 |
| 688 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 691 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
| 689 }; | 692 }; |
| 690 | 693 |
| 691 } // namespace views | 694 } // namespace views |
| 692 | 695 |
| 693 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 696 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| OLD | NEW |