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 #include "ui/gfx/win/direct_manipulation.h" | 5 #include "ui/gfx/win/direct_manipulation.h" |
6 | 6 |
7 #include "base/basictypes.h" | |
8 #include "base/win/windows_version.h" | 7 #include "base/win/windows_version.h" |
9 | 8 |
10 namespace gfx { | 9 namespace gfx { |
11 namespace win { | 10 namespace win { |
12 | 11 |
13 // static | 12 // static |
14 scoped_ptr<DirectManipulationHelper> | 13 scoped_ptr<DirectManipulationHelper> |
15 DirectManipulationHelper::CreateInstance() { | 14 DirectManipulationHelper::CreateInstance() { |
16 scoped_ptr<DirectManipulationHelper> instance; | 15 scoped_ptr<DirectManipulationHelper> instance; |
17 | 16 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 HRESULT hr = view_port_outer_->SetContact(DIRECTMANIPULATION_MOUSEFOCUS); | 105 HRESULT hr = view_port_outer_->SetContact(DIRECTMANIPULATION_MOUSEFOCUS); |
107 if (SUCCEEDED(hr)) { | 106 if (SUCCEEDED(hr)) { |
108 BOOL handled = FALSE; | 107 BOOL handled = FALSE; |
109 manager_->ProcessInput(&msg, &handled); | 108 manager_->ProcessInput(&msg, &handled); |
110 view_port_outer_->ReleaseContact(DIRECTMANIPULATION_MOUSEFOCUS); | 109 view_port_outer_->ReleaseContact(DIRECTMANIPULATION_MOUSEFOCUS); |
111 } | 110 } |
112 } | 111 } |
113 | 112 |
114 } // namespace win. | 113 } // namespace win. |
115 } // namespace gfx. | 114 } // namespace gfx. |
OLD | NEW |