| 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 "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/platform_window/platform_window_delegate.h" | 8 #include "ui/platform_window/platform_window_delegate.h" |
| 9 | 9 |
| 10 namespace ui { | 10 namespace ui { |
| 11 | 11 |
| 12 StubWindow::StubWindow(PlatformWindowDelegate* delegate, | 12 StubWindow::StubWindow(PlatformWindowDelegate* delegate, |
| 13 bool use_default_accelerated_widget) | 13 bool use_default_accelerated_widget) |
| 14 : delegate_(delegate) { | 14 : delegate_(delegate) { |
| 15 DCHECK(delegate); | 15 DCHECK(delegate); |
| 16 if (use_default_accelerated_widget) | 16 if (use_default_accelerated_widget) |
| 17 delegate_->OnAcceleratedWidgetAvailable(gfx::kNullAcceleratedWidget, 1.f); | 17 delegate_->OnAcceleratedWidgetAvailable(gpu::kNullSurfaceHandle, 1.f); |
| 18 } | 18 } |
| 19 | 19 |
| 20 StubWindow::~StubWindow() { | 20 StubWindow::~StubWindow() { |
| 21 } | 21 } |
| 22 | 22 |
| 23 void StubWindow::Show() { | 23 void StubWindow::Show() { |
| 24 } | 24 } |
| 25 | 25 |
| 26 void StubWindow::Hide() { | 26 void StubWindow::Hide() { |
| 27 } | 27 } |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 | 69 |
| 70 void StubWindow::ConfineCursorToBounds(const gfx::Rect& bounds) { | 70 void StubWindow::ConfineCursorToBounds(const gfx::Rect& bounds) { |
| 71 } | 71 } |
| 72 | 72 |
| 73 PlatformImeController* StubWindow::GetPlatformImeController() { | 73 PlatformImeController* StubWindow::GetPlatformImeController() { |
| 74 return nullptr; | 74 return nullptr; |
| 75 } | 75 } |
| 76 | 76 |
| 77 } // namespace ui | 77 } // namespace ui |
| OLD | NEW |