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

Unified Diff: ui/aura/window.h

Issue 10905290: Keep a web dialog window centered over the content area (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add constrained window flag Created 8 years, 3 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 | « content/browser/web_contents/web_contents_view_aura.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.h
diff --git a/ui/aura/window.h b/ui/aura/window.h
index 09039d32bd196f51a9ebc1a7bd3869e66a240835..92e5f480c0a24410fe4d8c9ddf79d0dace913733 100644
--- a/ui/aura/window.h
+++ b/ui/aura/window.h
@@ -359,6 +359,12 @@ class AURA_EXPORT Window : public ui::LayerDelegate,
void PrintWindowHierarchy(int depth) const;
#endif
+ // Returns true if the window is a constrained window.
+ void set_is_constrained_window(bool is_constrained_window) {
sky 2012/09/14 22:50:44 Window shouldn't contain chrome specific propertie
+ is_constrained_window_ = is_constrained_window;
+ }
+ bool is_constrained_window() const { return is_constrained_window_; }
+
private:
friend class LayoutManager;
@@ -500,6 +506,9 @@ class AURA_EXPORT Window : public ui::LayerDelegate,
std::map<const void*, Value> prop_map_;
+ // True if this is a constrained window.
+ bool is_constrained_window_;
+
DISALLOW_COPY_AND_ASSIGN(Window);
};
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698