Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: ui/platform_window/stub/stub_window.cc

Issue 2741533002: Fix AshWindowTreeHost shutdown for Ozone X11. (Closed)
Patch Set: Add to other PlatformWindow implementations. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/platform_window/stub/stub_window.h ('k') | ui/platform_window/win/win_window.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/platform_window/stub/stub_window.h ('k') | ui/platform_window/win/win_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698