| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 SetWindowText(hwnd(), L"aura::RootWindow!"); | 48 SetWindowText(hwnd(), L"aura::RootWindow!"); |
| 49 CreateCompositor(GetAcceleratedWidget()); | 49 CreateCompositor(GetAcceleratedWidget()); |
| 50 } | 50 } |
| 51 | 51 |
| 52 WindowTreeHostWin::~WindowTreeHostWin() { | 52 WindowTreeHostWin::~WindowTreeHostWin() { |
| 53 DestroyCompositor(); | 53 DestroyCompositor(); |
| 54 DestroyDispatcher(); | 54 DestroyDispatcher(); |
| 55 DestroyWindow(hwnd()); | 55 DestroyWindow(hwnd()); |
| 56 } | 56 } |
| 57 | 57 |
| 58 ui::EventSource* WindowTreeHostWin::GetEventSource() { |
| 59 return this; |
| 60 } |
| 61 |
| 58 gfx::AcceleratedWidget WindowTreeHostWin::GetAcceleratedWidget() { | 62 gfx::AcceleratedWidget WindowTreeHostWin::GetAcceleratedWidget() { |
| 59 return hwnd(); | 63 return hwnd(); |
| 60 } | 64 } |
| 61 | 65 |
| 62 void WindowTreeHostWin::Show() { | 66 void WindowTreeHostWin::Show() { |
| 63 ShowWindow(hwnd(), SW_SHOWNORMAL); | 67 ShowWindow(hwnd(), SW_SHOWNORMAL); |
| 64 } | 68 } |
| 65 | 69 |
| 66 void WindowTreeHostWin::Hide() { | 70 void WindowTreeHostWin::Hide() { |
| 67 NOTIMPLEMENTED(); | 71 NOTIMPLEMENTED(); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 namespace test { | 247 namespace test { |
| 244 | 248 |
| 245 // static | 249 // static |
| 246 void SetUsePopupAsRootWindowForTest(bool use) { | 250 void SetUsePopupAsRootWindowForTest(bool use) { |
| 247 use_popup_as_root_window_for_test = use; | 251 use_popup_as_root_window_for_test = use; |
| 248 } | 252 } |
| 249 | 253 |
| 250 } // namespace test | 254 } // namespace test |
| 251 | 255 |
| 252 } // namespace aura | 256 } // namespace aura |
| OLD | NEW |