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

Unified Diff: components/exo/shell_surface.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/exo/shell_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shell_surface.h
diff --git a/components/exo/shell_surface.h b/components/exo/shell_surface.h
index 1c2bad322a0dd2525fde81414e18d586ea45f3e6..541dd11df654e19b1eb3429587051a80ea6e7478 100644
--- a/components/exo/shell_surface.h
+++ b/components/exo/shell_surface.h
@@ -58,6 +58,10 @@ class ShellSurface : public SurfaceDelegate,
// Start an interactive move of surface.
void Move();
+ // Set geometry for surface. The geometry represents the "visible bounds"
+ // for the surface from the user's perspective.
+ void SetGeometry(const gfx::Rect& geometry);
+
// Returns a trace value representing the state of the surface.
scoped_refptr<base::trace_event::TracedValue> AsTracedValue() const;
@@ -84,6 +88,7 @@ class ShellSurface : public SurfaceDelegate,
Surface* surface_;
base::string16 title_;
std::string application_id_;
+ gfx::Rect geometry_;
DISALLOW_COPY_AND_ASSIGN(ShellSurface);
};
« no previous file with comments | « no previous file | components/exo/shell_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698