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

Side by Side Diff: chrome/browser/ui/intents/web_intent_picker.h

Issue 11044020: Make Web Intents picker in Views conform to latest mocks (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Include changes from CL 11077006 Created 8 years, 2 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 unified diff | Download patch
OLDNEW
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 18 matching lines...) Expand all
29 // The maximum width the window. 29 // The maximum width the window.
30 static const int kWindowMaxWidth = 900; 30 static const int kWindowMaxWidth = 900;
31 31
32 // The minimum height of the window. 32 // The minimum height of the window.
33 static const int kWindowMinHeight = 145; 33 static const int kWindowMinHeight = 145;
34 34
35 // The maximum width in view units of a suggested extension's title link. 35 // The maximum width in view units of a suggested extension's title link.
36 static const int kTitleLinkMaxWidth = 130; 36 static const int kTitleLinkMaxWidth = 130;
37 37
38 // The space in pixels between the top-level groups and the dialog border. 38 // The space in pixels between the top-level groups and the dialog border.
39 static const int kContentAreaBorder = 10; 39 static const int kContentAreaBorder = 20;
40 40
41 // Vertical space above the separator. 41 // The spacing between a label and its icon on the left.
42 static const int kHeaderSeparatorPaddingTop = 16; 42 static const int kIconLabelHorizontalSpacing = 10;
43
44 // Vertical space below the separator.
45 static const int kHeaderSeparatorPaddingBottom = 7;
46 43
47 // Width of the service icon. 44 // Width of the service icon.
48 static const int kServiceIconWidth = 16; 45 static const int kServiceIconWidth = 16;
49 46
50 // Height of the service icon. 47 // Height of the service icon.
51 static const int kServiceIconHeight = 16; 48 static const int kServiceIconHeight = 16;
52 49
53 // Space between icon and text.
54 static const int kIconTextPadding = 6;
55
56 // Space between star rating and select button. 50 // Space between star rating and select button.
57 static const int kStarButtonPadding = 20; 51 static const int kStarButtonPadding = 20;
58 52
59 // The height of the suggested and installed service row. 53 // The height of the suggested and installed service row.
60 static const int kServiceRowHeight = 32; 54 static const int kServiceRowHeight = 32;
61 55
62 // The maximum number of installed services + suggested servcies to show. Note 56 // The maximum number of installed services + suggested servcies to show. Note
63 // that all installed services are always shown so the actual number of 57 // that all installed services are always shown so the actual number of
64 // services shown maybe greater than this. 58 // services shown maybe greater than this.
65 static const int kMaxServicesToShow = 4; 59 static const int kMaxServicesToShow = 4;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 static int GetNthStarImageIdFromCWSRating(double rating, int index); 102 static int GetNthStarImageIdFromCWSRating(double rating, int index);
109 103
110 // Returns the action-specific string to display for |action|. 104 // Returns the action-specific string to display for |action|.
111 static string16 GetDisplayStringForIntentAction(const string16& action16); 105 static string16 GetDisplayStringForIntentAction(const string16& action16);
112 106
113 protected: 107 protected:
114 virtual ~WebIntentPicker() {} 108 virtual ~WebIntentPicker() {}
115 }; 109 };
116 110
117 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_ 111 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698