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

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

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.cc
diff --git a/chrome/browser/ui/intents/web_intent_picker.cc b/chrome/browser/ui/intents/web_intent_picker.cc
index 44440dd72fb7ed2b6ca68d0172fed64448feb930..1ae6fc8f2ca2a7c638d926e073b06f53465d7a84 100644
--- a/chrome/browser/ui/intents/web_intent_picker.cc
+++ b/chrome/browser/ui/intents/web_intent_picker.cc
@@ -19,6 +19,10 @@ const int kMinInlineDispositionWidth = 300;
// The minimum height of the inline disposition tab contents.
const int kMinInlineDispositionHeight = 300;
+// Maximum inline disposition container sizes.
+const int kMaxInlineDispositionWidth = 900;
+const int kMaxInlineDispositionHeight = 900;
+
} // namespace
// static
@@ -33,6 +37,16 @@ gfx::Size WebIntentPicker::GetDefaultInlineDispositionSize(
}
// static
+gfx::Size WebIntentPicker::GetMinInlineDispositionSize() {
+ return gfx::Size(kMinInlineDispositionWidth, kMinInlineDispositionHeight);
+}
+
+// static
+gfx::Size WebIntentPicker::GetMaxInlineDispositionSize() {
+ return gfx::Size(kMaxInlineDispositionWidth, kMaxInlineDispositionHeight);
+}
+
+// static
int WebIntentPicker::GetNthStarImageIdFromCWSRating(double rating, int index) {
// The fractional part of the rating is converted to stars as:
// [0, 0.33) -> round down

Powered by Google App Engine
This is Rietveld 408576698