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 |