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

Unified Diff: components/mus/ws/window_tree.h

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/mus/ws/window_tree.h
diff --git a/components/mus/ws/window_tree.h b/components/mus/ws/window_tree.h
index 993eece2b37715bf0a56c0b05ac376d3ac3badd4..2085ca77f897e4a2dae2810bb06e042f873b83f2 100644
--- a/components/mus/ws/window_tree.h
+++ b/components/mus/ws/window_tree.h
@@ -350,7 +350,7 @@ class WindowTree : public mojom::WindowTree,
uint32_t observer_id) override;
void SetWindowBounds(uint32_t change_id,
Id window_id,
- mojo::RectPtr bounds) override;
+ const gfx::Rect& bounds) override;
void SetWindowVisibility(uint32_t change_id,
Id window_id,
bool visible) override;
@@ -382,9 +382,9 @@ class WindowTree : public mojom::WindowTree,
mojom::EventResult result) override;
void SetClientArea(
Id transport_window_id,
- mojo::InsetsPtr insets,
- mojo::Array<mojo::RectPtr> transport_additional_client_areas) override;
- void SetHitTestMask(Id transport_window_id, mojo::RectPtr mask) override;
+ const gfx::Insets& insets,
+ mojo::Array<gfx::Rect> transport_additional_client_areas) override;
+ void SetHitTestMask(Id transport_window_id, const gfx::Rect& mask) override;
void GetWindowManagerClient(
mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal)
override;
@@ -403,7 +403,7 @@ class WindowTree : public mojom::WindowTree,
Id window_id,
int32_t x_offset,
int32_t y_offset,
- mojo::InsetsPtr hit_area) override;
+ const gfx::Insets& hit_area) override;
void WmResponse(uint32_t change_id, bool response) override;
void WmRequestClose(Id transport_window_id) override;
void WmSetFrameDecorationValues(

Powered by Google App Engine
This is Rietveld 408576698