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

Unified Diff: ui/views/view.h

Issue 9452008: Allow platform apps to specify a maximum size for the shell container. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing file Created 8 years, 10 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
Index: ui/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index a203b49d982c6e5a83613191ef7cdd64e6affe97..c197033d086f42893dc68fecc99732447ba4df28 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -235,6 +235,10 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// GetPreferredSize.
virtual gfx::Size GetMinimumSize();
+ // Gets the maximum size of the view. Currently only used for sizing shell
+ // windows.
+ virtual gfx::Size GetMaximumSize();
+
// Return the height necessary to display this view with the provided width.
// View's implementation returns the value from getPreferredSize.cy.
// Override if your View's preferred height depends upon the width (such
« no previous file with comments | « chrome/test/data/extensions/manifest_tests/launch_container_invalid_size_constraints.json ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698