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

Side by Side Diff: ui/wayland/wayland_window.cc

Issue 8378005: wayland: define base:NativeEvent for Wayland (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback. Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « ui/wayland/wayland_widget.h ('k') | views/controls/menu/menu_controller.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 (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
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
OLDNEW
« no previous file with comments | « ui/wayland/wayland_widget.h ('k') | views/controls/menu/menu_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698