| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_ | 5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_ |
| 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_ | 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // The maximum width the window. | 30 // The maximum width the window. |
| 31 static const int kWindowMaxWidth = 900; | 31 static const int kWindowMaxWidth = 900; |
| 32 | 32 |
| 33 // The minimum height of the window. | 33 // The minimum height of the window. |
| 34 static const int kWindowMinHeight = 145; | 34 static const int kWindowMinHeight = 145; |
| 35 | 35 |
| 36 // The maximum width in view units of a suggested extension's title link. | 36 // The maximum width in view units of a suggested extension's title link. |
| 37 static const int kTitleLinkMaxWidth = 130; | 37 static const int kTitleLinkMaxWidth = 130; |
| 38 | 38 |
| 39 // The space in pixels between the top-level groups and the dialog border. | 39 // The space in pixels between the top-level groups and the dialog border. |
| 40 static const int kContentAreaBorder = 10; | 40 static const int kContentAreaBorder = 20; |
| 41 | 41 |
| 42 // Vertical space above the separator. | 42 // Vertical space above the separator. |
| 43 static const int kHeaderSeparatorPaddingTop = 16; | 43 static const int kHeaderSeparatorPaddingTop = 16; |
| 44 | 44 |
| 45 // Vertical space below the separator. | 45 // Vertical space below the separator. |
| 46 static const int kHeaderSeparatorPaddingBottom = 7; | 46 static const int kHeaderSeparatorPaddingBottom = 7; |
| 47 | 47 |
| 48 // Width of the service icon. | 48 // Width of the service icon. |
| 49 static const int kServiceIconWidth = 16; | 49 static const int kServiceIconWidth = 16; |
| 50 | 50 |
| 51 // Height of the service icon. | 51 // Height of the service icon. |
| 52 static const int kServiceIconHeight = 16; | 52 static const int kServiceIconHeight = 16; |
| 53 | 53 |
| 54 // Space between icon and text. | 54 // Space between icon and text. |
| 55 static const int kIconTextPadding = 6; | 55 static const int kIconTextPadding = 10; |
| 56 | 56 |
| 57 // Space between star rating and select button. | 57 // Space between star rating and select button. |
| 58 static const int kStarButtonPadding = 20; | 58 static const int kStarButtonPadding = 20; |
| 59 | 59 |
| 60 // The height of the suggested and installed service row. | 60 // The height of the suggested and installed service row. |
| 61 static const int kServiceRowHeight = 32; | 61 static const int kServiceRowHeight = 32; |
| 62 | 62 |
| 63 // The maximum number of installed services + suggested servcies to show. Note | 63 // The maximum number of installed services + suggested servcies to show. Note |
| 64 // that all installed services are always shown so the actual number of | 64 // that all installed services are always shown so the actual number of |
| 65 // services shown maybe greater than this. | 65 // services shown maybe greater than this. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 static int GetNthStarImageIdFromCWSRating(double rating, int index); | 118 static int GetNthStarImageIdFromCWSRating(double rating, int index); |
| 119 | 119 |
| 120 // Returns the action-specific string to display for |action|. | 120 // Returns the action-specific string to display for |action|. |
| 121 static string16 GetDisplayStringForIntentAction(const string16& action16); | 121 static string16 GetDisplayStringForIntentAction(const string16& action16); |
| 122 | 122 |
| 123 protected: | 123 protected: |
| 124 virtual ~WebIntentPicker() {} | 124 virtual ~WebIntentPicker() {} |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_ | 127 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_ |
| OLD | NEW |