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 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 bool left_button_down_on_caption_; | 694 bool left_button_down_on_caption_; |
695 | 695 |
696 // Set to true if the window is a background fullscreen window, i.e a | 696 // Set to true if the window is a background fullscreen window, i.e a |
697 // fullscreen window which lost activation. Defaults to false. | 697 // fullscreen window which lost activation. Defaults to false. |
698 bool background_fullscreen_hack_; | 698 bool background_fullscreen_hack_; |
699 | 699 |
700 // This is a map of the HMONITOR to full screeen window instance. It is safe | 700 // This is a map of the HMONITOR to full screeen window instance. It is safe |
701 // to keep a raw pointer to the HWNDMessageHandler instance as we track the | 701 // to keep a raw pointer to the HWNDMessageHandler instance as we track the |
702 // window destruction and ensure that the map is cleaned up. | 702 // window destruction and ensure that the map is cleaned up. |
703 using FullscreenWindowMonitorMap = std::map<HMONITOR, HWNDMessageHandler*>; | 703 using FullscreenWindowMonitorMap = std::map<HMONITOR, HWNDMessageHandler*>; |
704 static base::LazyInstance<FullscreenWindowMonitorMap> fullscreen_monitor_map_; | 704 static base::LazyInstance<FullscreenWindowMonitorMap>::DestructorAtExit |
| 705 fullscreen_monitor_map_; |
705 | 706 |
706 // The WeakPtrFactories below must occur last in the class definition so they | 707 // The WeakPtrFactories below must occur last in the class definition so they |
707 // get destroyed last. | 708 // get destroyed last. |
708 | 709 |
709 // The factory used to lookup appbar autohide edges. | 710 // The factory used to lookup appbar autohide edges. |
710 base::WeakPtrFactory<HWNDMessageHandler> autohide_factory_; | 711 base::WeakPtrFactory<HWNDMessageHandler> autohide_factory_; |
711 | 712 |
712 // The factory used with BEGIN_SAFE_MSG_MAP_EX. | 713 // The factory used with BEGIN_SAFE_MSG_MAP_EX. |
713 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; | 714 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; |
714 | 715 |
715 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 716 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
716 }; | 717 }; |
717 | 718 |
718 } // namespace views | 719 } // namespace views |
719 | 720 |
720 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 721 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
OLD | NEW |