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

Unified Diff: components/exo/shell_surface.h

Issue 1490223002: exo: Use aura::Windows instead of views::Views as exo::Surfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and update unit tests 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 150d32b6734f65c3633fe6cd1b4054d7719f1154..7a2c189af26bc3fa9a48c824b911f1ee57b04b05 100644
--- a/components/exo/shell_surface.h
+++ b/components/exo/shell_surface.h
@@ -28,7 +28,8 @@ class Surface;
// metadata like title and class, etc.
class ShellSurface : public SurfaceDelegate,
public SurfaceObserver,
- public views::WidgetDelegate {
+ public views::WidgetDelegate,
+ public views::View {
public:
explicit ShellSurface(Surface* surface);
~ShellSurface() override;
@@ -66,6 +67,9 @@ class ShellSurface : public SurfaceDelegate,
views::NonClientFrameView* CreateNonClientFrameView(
views::Widget* widget) override;
+ // Overridden from views::View:
+ gfx::Size GetPreferredSize() const override;
+
private:
scoped_ptr<views::Widget> widget_;
Surface* surface_;
« 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