| 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 #include "ui/aura/window_tree_host_win.h" | 5 #include "ui/aura/window_tree_host_win.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 142 |
| 143 void WindowTreeHostWin::OnCursorVisibilityChangedNative(bool show) { | 143 void WindowTreeHostWin::OnCursorVisibilityChangedNative(bool show) { |
| 144 NOTIMPLEMENTED(); | 144 NOTIMPLEMENTED(); |
| 145 } | 145 } |
| 146 | 146 |
| 147 void WindowTreeHostWin::PostNativeEvent(const base::NativeEvent& native_event) { | 147 void WindowTreeHostWin::PostNativeEvent(const base::NativeEvent& native_event) { |
| 148 ::PostMessage( | 148 ::PostMessage( |
| 149 hwnd(), native_event.message, native_event.wParam, native_event.lParam); | 149 hwnd(), native_event.message, native_event.wParam, native_event.lParam); |
| 150 } | 150 } |
| 151 | 151 |
| 152 void WindowTreeHostWin::OnDeviceScaleFactorChanged( | |
| 153 float device_scale_factor) { | |
| 154 NOTIMPLEMENTED(); | |
| 155 } | |
| 156 | |
| 157 ui::EventProcessor* WindowTreeHostWin::GetEventProcessor() { | 152 ui::EventProcessor* WindowTreeHostWin::GetEventProcessor() { |
| 158 return dispatcher(); | 153 return dispatcher(); |
| 159 } | 154 } |
| 160 | 155 |
| 161 void WindowTreeHostWin::OnClose() { | 156 void WindowTreeHostWin::OnClose() { |
| 162 // TODO: this obviously shouldn't be here. | 157 // TODO: this obviously shouldn't be here. |
| 163 base::MessageLoopForUI::current()->Quit(); | 158 base::MessageLoopForUI::current()->Quit(); |
| 164 } | 159 } |
| 165 | 160 |
| 166 LRESULT WindowTreeHostWin::OnKeyEvent(UINT message, | 161 LRESULT WindowTreeHostWin::OnKeyEvent(UINT message, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 namespace test { | 224 namespace test { |
| 230 | 225 |
| 231 // static | 226 // static |
| 232 void SetUsePopupAsRootWindowForTest(bool use) { | 227 void SetUsePopupAsRootWindowForTest(bool use) { |
| 233 use_popup_as_root_window_for_test = use; | 228 use_popup_as_root_window_for_test = use; |
| 234 } | 229 } |
| 235 | 230 |
| 236 } // namespace test | 231 } // namespace test |
| 237 | 232 |
| 238 } // namespace aura | 233 } // namespace aura |
| OLD | NEW |