| 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" |
| 7 #include "ui/platform_window/platform_window_delegate.h" | 8 #include "ui/platform_window/platform_window_delegate.h" |
| 8 | 9 |
| 9 namespace ui { | 10 namespace ui { |
| 10 | 11 |
| 11 StubWindow::StubWindow(PlatformWindowDelegate* delegate) : delegate_(delegate) { | 12 StubWindow::StubWindow(PlatformWindowDelegate* delegate) : delegate_(delegate) { |
| 12 if (delegate_) | 13 if (delegate_) |
| 13 delegate_->OnAcceleratedWidgetAvailable(gfx::kNullAcceleratedWidget, 1.f); | 14 delegate_->OnAcceleratedWidgetAvailable(gfx::kNullAcceleratedWidget, 1.f); |
| 14 } | 15 } |
| 15 | 16 |
| 16 StubWindow::~StubWindow() { | 17 StubWindow::~StubWindow() { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 } | 67 } |
| 67 | 68 |
| 68 void StubWindow::ConfineCursorToBounds(const gfx::Rect& bounds) { | 69 void StubWindow::ConfineCursorToBounds(const gfx::Rect& bounds) { |
| 69 } | 70 } |
| 70 | 71 |
| 71 PlatformImeController* StubWindow::GetPlatformImeController() { | 72 PlatformImeController* StubWindow::GetPlatformImeController() { |
| 72 return nullptr; | 73 return nullptr; |
| 73 } | 74 } |
| 74 | 75 |
| 75 } // namespace ui | 76 } // namespace ui |
| OLD | NEW |