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

Unified Diff: components/exo/shell_surface.h

Issue 1419373013: exo: Add support for subcompositor interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@exosphere-xdg-shell
Patch Set: address review feedback Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/exo/display_unittest.cc ('k') | 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 e997d019f03f59ba98227ce23e3fd2e9771ef17a..ef2d4ce1af6053629584924cdb595fb39e76bfbd 100644
--- a/components/exo/shell_surface.h
+++ b/components/exo/shell_surface.h
@@ -11,6 +11,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "components/exo/surface_delegate.h"
+#include "components/exo/surface_observer.h"
#include "ui/views/widget/widget_delegate.h"
namespace base {
@@ -25,7 +26,9 @@ class Surface;
// This class provides functions for treating a surfaces like toplevel,
// fullscreen or popup widgets, move, resize or maximize them, associate
// metadata like title and class, etc.
-class ShellSurface : public SurfaceDelegate, public views::WidgetDelegate {
+class ShellSurface : public SurfaceDelegate,
+ public SurfaceObserver,
+ public views::WidgetDelegate {
public:
explicit ShellSurface(Surface* surface);
~ShellSurface() override;
@@ -46,8 +49,11 @@ class ShellSurface : public SurfaceDelegate, public views::WidgetDelegate {
scoped_refptr<base::trace_event::TracedValue> AsTracedValue() const;
// Overridden from SurfaceDelegate:
- void OnSurfaceDestroying() override;
void OnSurfaceCommit() override;
+ bool IsSurfaceSynchronized() const override;
+
+ // Overridden from SurfaceObserver:
+ void OnSurfaceDestroying(Surface* surface) override;
// Overridden from views::WidgetDelegate:
base::string16 GetWindowTitle() const override;
« no previous file with comments | « components/exo/display_unittest.cc ('k') | components/exo/shell_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698