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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/strings/string16.h" | 17 #include "base/strings/string16.h" |
18 #include "base/win/scoped_gdi_object.h" | 18 #include "base/win/scoped_gdi_object.h" |
19 #include "base/win/win_util.h" | 19 #include "base/win/win_util.h" |
20 #include "ui/accessibility/ax_enums.h" | 20 #include "ui/accessibility/ax_enums.h" |
21 #include "ui/base/ui_base_types.h" | 21 #include "ui/base/ui_base_types.h" |
22 #include "ui/base/win/window_event_target.h" | 22 #include "ui/base/win/window_event_target.h" |
23 #include "ui/events/event.h" | 23 #include "ui/events/event.h" |
24 #include "ui/gfx/geometry/rect.h" | 24 #include "ui/gfx/geometry/rect.h" |
25 #include "ui/gfx/sequential_id_generator.h" | 25 #include "ui/gfx/sequential_id_generator.h" |
| 26 #include "ui/gfx/win/direct_manipulation.h" |
26 #include "ui/gfx/win/window_impl.h" | 27 #include "ui/gfx/win/window_impl.h" |
27 #include "ui/views/views_export.h" | 28 #include "ui/views/views_export.h" |
28 | 29 |
29 namespace gfx { | 30 namespace gfx { |
30 class Canvas; | 31 class Canvas; |
31 class ImageSkia; | 32 class ImageSkia; |
32 class Insets; | 33 class Insets; |
33 } | 34 } |
34 | 35 |
35 namespace ui { | 36 namespace ui { |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 | 587 |
587 // The WeakPtrFactories below must occur last in the class definition so they | 588 // The WeakPtrFactories below must occur last in the class definition so they |
588 // get destroyed last. | 589 // get destroyed last. |
589 | 590 |
590 // The factory used to lookup appbar autohide edges. | 591 // The factory used to lookup appbar autohide edges. |
591 base::WeakPtrFactory<HWNDMessageHandler> autohide_factory_; | 592 base::WeakPtrFactory<HWNDMessageHandler> autohide_factory_; |
592 | 593 |
593 // The factory used with BEGIN_SAFE_MSG_MAP_EX. | 594 // The factory used with BEGIN_SAFE_MSG_MAP_EX. |
594 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; | 595 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; |
595 | 596 |
| 597 // This class provides functionality to register the legacy window as a |
| 598 // Direct Manipulation consumer. This allows us to support smooth scroll |
| 599 // in Chrome on Windows 10. |
| 600 scoped_ptr<gfx::win::DirectManipulationHelper> direct_manipulation_helper_; |
| 601 |
596 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 602 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
597 }; | 603 }; |
598 | 604 |
599 } // namespace views | 605 } // namespace views |
600 | 606 |
601 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 607 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
OLD | NEW |