| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_GFX_WIN_DIRECT_MANIPULATION_H_ | 5 #ifndef UI_GFX_WIN_DIRECT_MANIPULATION_H_ |
| 6 #define UI_GFX_WIN_DIRECT_MANIPULATION_H_ | 6 #define UI_GFX_WIN_DIRECT_MANIPULATION_H_ |
| 7 | 7 |
| 8 #include <directmanipulation.h> | 8 #include <directmanipulation.h> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/win/scoped_comptr.h" | 12 #include "base/win/scoped_comptr.h" |
| 12 #include "ui/gfx/geometry/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
| 13 #include "ui/gfx/gfx_export.h" | 14 #include "ui/gfx/gfx_export.h" |
| 14 | 15 |
| 15 namespace gfx { | 16 namespace gfx { |
| 16 namespace win { | 17 namespace win { |
| 17 | 18 |
| 18 // Windows 10 provides a new API called Direct Manipulation which generates | 19 // Windows 10 provides a new API called Direct Manipulation which generates |
| 19 // smooth scroll events via WM_MOUSEWHEEL messages with predictable deltas | 20 // smooth scroll events via WM_MOUSEWHEEL messages with predictable deltas |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 base::win::ScopedComPtr<IDirectManipulationFrameInfoProvider> frame_info_; | 76 base::win::ScopedComPtr<IDirectManipulationFrameInfoProvider> frame_info_; |
| 76 base::win::ScopedComPtr<IDirectManipulationViewport2> view_port_outer_; | 77 base::win::ScopedComPtr<IDirectManipulationViewport2> view_port_outer_; |
| 77 | 78 |
| 78 DISALLOW_COPY_AND_ASSIGN(DirectManipulationHelper); | 79 DISALLOW_COPY_AND_ASSIGN(DirectManipulationHelper); |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } // namespace win | 82 } // namespace win |
| 82 } // namespace gfx | 83 } // namespace gfx |
| 83 | 84 |
| 84 #endif // UI_GFX_WIN_DIRECT_MANIPULATION_H_ | 85 #endif // UI_GFX_WIN_DIRECT_MANIPULATION_H_ |
| OLD | NEW |