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 { |
(...skipping 12 matching lines...) Expand all Loading... |
23 void StubWindow::Show() { | 23 void StubWindow::Show() { |
24 } | 24 } |
25 | 25 |
26 void StubWindow::Hide() { | 26 void StubWindow::Hide() { |
27 } | 27 } |
28 | 28 |
29 void StubWindow::Close() { | 29 void StubWindow::Close() { |
30 delegate_->OnClosed(); | 30 delegate_->OnClosed(); |
31 } | 31 } |
32 | 32 |
| 33 void StubWindow::PrepareForShutdown() {} |
| 34 |
33 void StubWindow::SetBounds(const gfx::Rect& bounds) { | 35 void StubWindow::SetBounds(const gfx::Rect& bounds) { |
34 if (bounds_ == bounds) | 36 if (bounds_ == bounds) |
35 return; | 37 return; |
36 bounds_ = bounds; | 38 bounds_ = bounds; |
37 delegate_->OnBoundsChanged(bounds); | 39 delegate_->OnBoundsChanged(bounds); |
38 } | 40 } |
39 | 41 |
40 gfx::Rect StubWindow::GetBounds() { | 42 gfx::Rect StubWindow::GetBounds() { |
41 return bounds_; | 43 return bounds_; |
42 } | 44 } |
(...skipping 25 matching lines...) Expand all Loading... |
68 } | 70 } |
69 | 71 |
70 void StubWindow::ConfineCursorToBounds(const gfx::Rect& bounds) { | 72 void StubWindow::ConfineCursorToBounds(const gfx::Rect& bounds) { |
71 } | 73 } |
72 | 74 |
73 PlatformImeController* StubWindow::GetPlatformImeController() { | 75 PlatformImeController* StubWindow::GetPlatformImeController() { |
74 return nullptr; | 76 return nullptr; |
75 } | 77 } |
76 | 78 |
77 } // namespace ui | 79 } // namespace ui |
OLD | NEW |