OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |