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

Unified Diff: components/exo/shell_surface.h

Issue 1819273002: exo: Improved implementation of child surfaces and popups. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix deps Created 4 years, 9 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
« no previous file with comments | « components/exo/pointer_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 38f049a09be9df2ed9ca9692fcc7f08df69e7562..8d32e9fdd71a6f635afd9b17547101f18e51e9b1 100644
--- a/components/exo/shell_surface.h
+++ b/components/exo/shell_surface.h
@@ -39,7 +39,8 @@ class ShellSurface : public SurfaceDelegate,
public:
ShellSurface(Surface* surface,
ShellSurface* parent,
- const gfx::Rect& initial_bounds);
+ const gfx::Rect& initial_bounds,
+ bool activatable);
explicit ShellSurface(Surface* surface);
~ShellSurface() override;
@@ -119,6 +120,7 @@ class ShellSurface : public SurfaceDelegate,
// Overridden from views::WidgetDelegate:
base::string16 GetWindowTitle() const override;
+ void WindowClosing() override;
views::Widget* GetWidget() override;
const views::Widget* GetWidget() const override;
views::View* GetContentsView() override;
@@ -150,10 +152,14 @@ class ShellSurface : public SurfaceDelegate,
// Asks the client to configure its surface.
void Configure();
- scoped_ptr<views::Widget> widget_;
+ // Returns the "visible bounds" for the surface from the user's perspective.
+ gfx::Rect GetVisibleBounds() const;
+
+ views::Widget* widget_;
Surface* surface_;
aura::Window* parent_;
const gfx::Rect initial_bounds_;
+ const bool activatable_;
base::string16 title_;
std::string application_id_;
gfx::Rect geometry_;
« no previous file with comments | « components/exo/pointer_unittest.cc ('k') | components/exo/shell_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698