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

Side by Side Diff: components/exo/wayland/server.cc

Issue 1492803004: exo: Add SetGeometry function to ShellSurface class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@exosphere-xdg-shell
Patch Set: implement xdg_surface_set_window_geometry Created 5 years 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 | « components/exo/shell_surface_unittest.cc ('k') | no next file » | 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 "components/exo/wayland/server.h" 5 #include "components/exo/wayland/server.h"
6 6
7 #include <wayland-server-core.h> 7 #include <wayland-server-core.h>
8 #include <wayland-server-protocol-core.h> 8 #include <wayland-server-protocol-core.h>
9 #include <xdg-shell-unstable-v5-server-protocol.h> 9 #include <xdg-shell-unstable-v5-server-protocol.h>
10 10
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 uint32_t serial) { 751 uint32_t serial) {
752 NOTIMPLEMENTED(); 752 NOTIMPLEMENTED();
753 } 753 }
754 754
755 void xdg_surface_set_window_geometry(wl_client* client, 755 void xdg_surface_set_window_geometry(wl_client* client,
756 wl_resource* resource, 756 wl_resource* resource,
757 int32_t x, 757 int32_t x,
758 int32_t y, 758 int32_t y,
759 int32_t width, 759 int32_t width,
760 int32_t height) { 760 int32_t height) {
761 NOTIMPLEMENTED(); 761 GetUserDataAs<ShellSurface>(resource)
762 ->SetGeometry(gfx::Rect(x, y, width, height));
762 } 763 }
763 764
764 void xdg_surface_set_maximized(wl_client* client, wl_resource* resource) { 765 void xdg_surface_set_maximized(wl_client* client, wl_resource* resource) {
765 NOTIMPLEMENTED(); 766 NOTIMPLEMENTED();
766 } 767 }
767 768
768 void xdg_surface_unset_maximized(wl_client* client, wl_resource* resource) { 769 void xdg_surface_unset_maximized(wl_client* client, wl_resource* resource) {
769 NOTIMPLEMENTED(); 770 NOTIMPLEMENTED();
770 } 771 }
771 772
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 DCHECK(event_loop); 929 DCHECK(event_loop);
929 wl_event_loop_dispatch(event_loop, timeout.InMilliseconds()); 930 wl_event_loop_dispatch(event_loop, timeout.InMilliseconds());
930 } 931 }
931 932
932 void Server::Flush() { 933 void Server::Flush() {
933 wl_display_flush_clients(wl_display_.get()); 934 wl_display_flush_clients(wl_display_.get());
934 } 935 }
935 936
936 } // namespace wayland 937 } // namespace wayland
937 } // namespace exo 938 } // namespace exo
OLDNEW
« no previous file with comments | « components/exo/shell_surface_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698