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/platform_window/stub/stub_window.h" | 5 #include "ui/platform_window/stub/stub_window.h" |
6 | 6 |
7 #include "ui/gfx/native_widget_types.h" | |
8 #include "ui/platform_window/platform_window_delegate.h" | 7 #include "ui/platform_window/platform_window_delegate.h" |
9 | 8 |
10 namespace ui { | 9 namespace ui { |
11 | 10 |
12 StubWindow::StubWindow( | 11 StubWindow::StubWindow(PlatformWindowDelegate* delegate) : delegate_(delegate) { |
13 PlatformWindowDelegate* delegate, gfx::AcceleratedWidget accelerated_widget) | 12 delegate_->OnAcceleratedWidgetAvailable(gfx::kNullAcceleratedWidget, 1.f); |
14 : delegate_(delegate) { | |
15 delegate_->OnAcceleratedWidgetAvailable(accelerated_widget, 1.f); | |
16 } | 13 } |
17 | 14 |
18 StubWindow::~StubWindow() { | 15 StubWindow::~StubWindow() { |
19 } | 16 } |
20 | 17 |
21 void StubWindow::Show() { | 18 void StubWindow::Show() { |
22 } | 19 } |
23 | 20 |
24 void StubWindow::Hide() { | 21 void StubWindow::Hide() { |
25 } | 22 } |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 } | 63 } |
67 | 64 |
68 void StubWindow::ConfineCursorToBounds(const gfx::Rect& bounds) { | 65 void StubWindow::ConfineCursorToBounds(const gfx::Rect& bounds) { |
69 } | 66 } |
70 | 67 |
71 PlatformImeController* StubWindow::GetPlatformImeController() { | 68 PlatformImeController* StubWindow::GetPlatformImeController() { |
72 return nullptr; | 69 return nullptr; |
73 } | 70 } |
74 | 71 |
75 } // namespace ui | 72 } // namespace ui |
OLD | NEW |