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

Side by Side Diff: ui/ozone/platform/wayland/wayland_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/ozone/platform/wayland/wayland_window.h ('k') | ui/ozone/platform/x11/ozone_platform_x11.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/ozone/platform/wayland/wayland_window.h" 5 #include "ui/ozone/platform/wayland/wayland_window.h"
6 6
7 #include <xdg-shell-unstable-v5-client-protocol.h> 7 #include <xdg-shell-unstable-v5-client-protocol.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void WaylandWindow::Show() {} 74 void WaylandWindow::Show() {}
75 75
76 void WaylandWindow::Hide() { 76 void WaylandWindow::Hide() {
77 NOTIMPLEMENTED(); 77 NOTIMPLEMENTED();
78 } 78 }
79 79
80 void WaylandWindow::Close() { 80 void WaylandWindow::Close() {
81 NOTIMPLEMENTED(); 81 NOTIMPLEMENTED();
82 } 82 }
83 83
84 void WaylandWindow::PrepareForShutdown() {}
85
84 void WaylandWindow::SetBounds(const gfx::Rect& bounds) { 86 void WaylandWindow::SetBounds(const gfx::Rect& bounds) {
85 if (bounds == bounds_) 87 if (bounds == bounds_)
86 return; 88 return;
87 bounds_ = bounds; 89 bounds_ = bounds;
88 delegate_->OnBoundsChanged(bounds); 90 delegate_->OnBoundsChanged(bounds);
89 } 91 }
90 92
91 gfx::Rect WaylandWindow::GetBounds() { 93 gfx::Rect WaylandWindow::GetBounds() {
92 return bounds_; 94 return bounds_;
93 } 95 }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 window->pending_bounds_ = gfx::Rect(0, 0, width, height); 179 window->pending_bounds_ = gfx::Rect(0, 0, width, height);
178 window->pending_configure_serial_ = serial; 180 window->pending_configure_serial_ = serial;
179 } 181 }
180 182
181 // static 183 // static
182 void WaylandWindow::Close(void* data, xdg_surface* obj) { 184 void WaylandWindow::Close(void* data, xdg_surface* obj) {
183 NOTIMPLEMENTED(); 185 NOTIMPLEMENTED();
184 } 186 }
185 187
186 } // namespace ui 188 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/wayland/wayland_window.h ('k') | ui/ozone/platform/x11/ozone_platform_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698