OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlwin.h> | 9 #include <atlwin.h> |
10 #include <atlcrack.h> | 10 #include <atlcrack.h> |
11 #include <oleacc.h> | 11 #include <oleacc.h> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/memory/scoped_ptr.h" |
14 #include "base/win/scoped_comptr.h" | 15 #include "base/win/scoped_comptr.h" |
15 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
16 #include "ui/gfx/geometry/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
17 | 18 |
| 19 namespace gfx { |
| 20 namespace win { |
| 21 class DirectManipulationHelper; |
| 22 } // namespace win |
| 23 } // namespace gfx |
| 24 |
18 namespace ui { | 25 namespace ui { |
19 class WindowEventTarget; | 26 class WindowEventTarget; |
20 } | 27 } |
21 | 28 |
22 namespace content { | 29 namespace content { |
23 class RenderWidgetHostViewAura; | 30 class RenderWidgetHostViewAura; |
24 | 31 |
25 // Reasons for the existence of this class outlined below:- | 32 // Reasons for the existence of this class outlined below:- |
26 // 1. Some screen readers expect every tab / every unique web content container | 33 // 1. Some screen readers expect every tab / every unique web content container |
27 // to be in its own HWND with class name Chrome_RenderWidgetHostHWND. | 34 // to be in its own HWND with class name Chrome_RenderWidgetHostHWND. |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 LRESULT OnNCCalcSize(UINT message, WPARAM w_param, LPARAM l_param); | 143 LRESULT OnNCCalcSize(UINT message, WPARAM w_param, LPARAM l_param); |
137 LRESULT OnSize(UINT message, WPARAM w_param, LPARAM l_param); | 144 LRESULT OnSize(UINT message, WPARAM w_param, LPARAM l_param); |
138 | 145 |
139 base::win::ScopedComPtr<IAccessible> window_accessible_; | 146 base::win::ScopedComPtr<IAccessible> window_accessible_; |
140 | 147 |
141 // Set to true if we turned on mouse tracking. | 148 // Set to true if we turned on mouse tracking. |
142 bool mouse_tracking_enabled_; | 149 bool mouse_tracking_enabled_; |
143 | 150 |
144 RenderWidgetHostViewAura* host_; | 151 RenderWidgetHostViewAura* host_; |
145 | 152 |
| 153 // This class provides functionality to register the legacy window as a |
| 154 // Direct Manipulation consumer. This allows us to support smooth scroll |
| 155 // in Chrome on Windows 10. |
| 156 scoped_ptr<gfx::win::DirectManipulationHelper> direct_manipulation_helper_; |
| 157 |
146 DISALLOW_COPY_AND_ASSIGN(LegacyRenderWidgetHostHWND); | 158 DISALLOW_COPY_AND_ASSIGN(LegacyRenderWidgetHostHWND); |
147 }; | 159 }; |
148 | 160 |
149 } // namespace content | 161 } // namespace content |
150 | 162 |
151 #endif // CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ | 163 #endif // CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ |
152 | 164 |
OLD | NEW |