| 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 <set> | 10 #include <set> |
| (...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 // to Aero(glass) we delay setting the DWM related properties in full | 580 // to Aero(glass) we delay setting the DWM related properties in full |
| 581 // screen mode as DWM is not supported in full screen windows. We perform | 581 // screen mode as DWM is not supported in full screen windows. We perform |
| 582 // the DWM related operations when the window comes out of fullscreen mode. | 582 // the DWM related operations when the window comes out of fullscreen mode. |
| 583 // This member variable is set to true if the window is transitioning to | 583 // This member variable is set to true if the window is transitioning to |
| 584 // glass. Defaults to false. | 584 // glass. Defaults to false. |
| 585 bool dwm_transition_desired_; | 585 bool dwm_transition_desired_; |
| 586 | 586 |
| 587 // Manages observation of Windows Session Change messages. | 587 // Manages observation of Windows Session Change messages. |
| 588 scoped_ptr<WindowsSessionChangeObserver> windows_session_change_observer_; | 588 scoped_ptr<WindowsSessionChangeObserver> windows_session_change_observer_; |
| 589 | 589 |
| 590 // This class provides functionality to register the legacy window as a |
| 591 // Direct Manipulation consumer. This allows us to support smooth scroll |
| 592 // in Chrome on Windows 10. |
| 593 scoped_ptr<gfx::win::DirectManipulationHelper> direct_manipulation_helper_; |
| 594 |
| 590 // The WeakPtrFactories below must occur last in the class definition so they | 595 // The WeakPtrFactories below must occur last in the class definition so they |
| 591 // get destroyed last. | 596 // get destroyed last. |
| 592 | 597 |
| 593 // The factory used to lookup appbar autohide edges. | 598 // The factory used to lookup appbar autohide edges. |
| 594 base::WeakPtrFactory<HWNDMessageHandler> autohide_factory_; | 599 base::WeakPtrFactory<HWNDMessageHandler> autohide_factory_; |
| 595 | 600 |
| 596 // The factory used with BEGIN_SAFE_MSG_MAP_EX. | 601 // The factory used with BEGIN_SAFE_MSG_MAP_EX. |
| 597 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; | 602 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; |
| 598 | 603 |
| 599 // This class provides functionality to register the legacy window as a | |
| 600 // Direct Manipulation consumer. This allows us to support smooth scroll | |
| 601 // in Chrome on Windows 10. | |
| 602 scoped_ptr<gfx::win::DirectManipulationHelper> direct_manipulation_helper_; | |
| 603 | |
| 604 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 604 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
| 605 }; | 605 }; |
| 606 | 606 |
| 607 } // namespace views | 607 } // namespace views |
| 608 | 608 |
| 609 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 609 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| OLD | NEW |