| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/wayland/wayland_window.h" | 5 #include "ui/wayland/wayland_window.h" |
| 6 | 6 |
| 7 #include <wayland-egl.h> | 7 #include <wayland-egl.h> |
| 8 | 8 |
| 9 #include "ui/wayland/events/wayland_event.h" | 9 #include "base/wayland/wayland_event.h" |
| 10 #include "ui/wayland/wayland_display.h" | 10 #include "ui/wayland/wayland_display.h" |
| 11 #include "ui/wayland/wayland_widget.h" | 11 #include "ui/wayland/wayland_widget.h" |
| 12 | 12 |
| 13 using base::wayland::WaylandEvent; |
| 14 |
| 13 namespace ui { | 15 namespace ui { |
| 14 | 16 |
| 15 WaylandWindow::WaylandWindow(WaylandWidget* widget, WaylandDisplay* display) | 17 WaylandWindow::WaylandWindow(WaylandWidget* widget, WaylandDisplay* display) |
| 16 : widget_(widget), | 18 : widget_(widget), |
| 17 display_(display), | 19 display_(display), |
| 18 parent_window_(NULL), | 20 parent_window_(NULL), |
| 19 relative_position_(), | 21 relative_position_(), |
| 20 surface_(display->CreateSurface()), | 22 surface_(display->CreateSurface()), |
| 21 fullscreen_(false) { | 23 fullscreen_(false) { |
| 22 wl_surface_set_user_data(surface_, this); | 24 wl_surface_set_user_data(surface_, this); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 event.geometry_change.time = time; | 77 event.geometry_change.time = time; |
| 76 event.geometry_change.x = x; | 78 event.geometry_change.x = x; |
| 77 event.geometry_change.y = y; | 79 event.geometry_change.y = y; |
| 78 event.geometry_change.width = width; | 80 event.geometry_change.width = width; |
| 79 event.geometry_change.height = height; | 81 event.geometry_change.height = height; |
| 80 | 82 |
| 81 widget_->OnGeometryChange(event); | 83 widget_->OnGeometryChange(event); |
| 82 } | 84 } |
| 83 | 85 |
| 84 } // namespace ui | 86 } // namespace ui |
| OLD | NEW |