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

Unified Diff: chrome/browser/ui/intents/web_intent_picker.h

Issue 10411010: [Gtk, WebIntents] Support autosizing of inline content. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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: chrome/browser/ui/intents/web_intent_picker.h
diff --git a/chrome/browser/ui/intents/web_intent_picker.h b/chrome/browser/ui/intents/web_intent_picker.h
index 994bbfdb862d5c218722b41075d40f465c949aec..b69fa79172a068badd071118754baca67201bb25 100644
--- a/chrome/browser/ui/intents/web_intent_picker.h
+++ b/chrome/browser/ui/intents/web_intent_picker.h
@@ -43,6 +43,9 @@ class WebIntentPicker {
// Called when an extension installation started via the picker has failed.
virtual void OnExtensionInstallFailure(const std::string& id) {}
+ // Called when the inline disposition experiences an auto-resize.
+ virtual void OnInlineDispositionAutoResize(const gfx::Size& size) {}
+
// Called when the controller has finished all pending asynchronous
// activities.
virtual void OnPendingAsyncCompleted() {}
@@ -55,6 +58,12 @@ class WebIntentPicker {
static gfx::Size GetDefaultInlineDispositionSize(
content::WebContents* web_contents);
+ // Get the minimum size of the inline disposition content container.
+ static gfx::Size GetMinInlineDispositionSize();
+
+ // Get the maximum size of the inline disposition content container.
+ static gfx::Size GetMaxInlineDispositionSize();
+
// Get the star image IDs to use for the nth star (out of 5), given a
// |rating| in the range [0, 5].
static int GetNthStarImageIdFromCWSRating(double rating, int index);

Powered by Google App Engine
This is Rietveld 408576698