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_COMMON_INSTANT_TYPES_H_ | 5 #ifndef CHROME_COMMON_INSTANT_TYPES_H_ |
6 #define CHROME_COMMON_INSTANT_TYPES_H_ | 6 #define CHROME_COMMON_INSTANT_TYPES_H_ |
7 | 7 |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
10 | 10 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 | 86 |
87 // Query suggestions and search results relevant when the user is typing in | 87 // Query suggestions and search results relevant when the user is typing in |
88 // the omnibox. | 88 // the omnibox. |
89 INSTANT_SHOWN_QUERY_SUGGESTIONS, | 89 INSTANT_SHOWN_QUERY_SUGGESTIONS, |
90 | 90 |
91 // ZeroSuggest suggestions relevant when the user has focused in the omnibox, | 91 // ZeroSuggest suggestions relevant when the user has focused in the omnibox, |
92 // but not yet typed anything. | 92 // but not yet typed anything. |
93 INSTANT_SHOWN_ZERO_SUGGESTIONS, | 93 INSTANT_SHOWN_ZERO_SUGGESTIONS, |
94 }; | 94 }; |
95 | 95 |
96 // Specifies information required for NTP instant overlay to adopt the browser's | |
sreeram
2012/11/19 18:12:02
Nit: instant -> Instant
kuan
2012/11/19 22:06:07
Done.
| |
97 // theme. | |
98 struct ThemeBackgroundInfo { | |
99 ThemeBackgroundInfo(); | |
100 ~ThemeBackgroundInfo(); | |
101 | |
102 // The background color in RGBA format "rgba(R,G,B,A)" where R, G and B are | |
palmer
2012/11/19 18:26:51
The use of string16s and the formatting requiremen
kuan
2012/11/19 22:06:07
i tried w/ uint8, but it's not supported in the ip
| |
103 // between 0 and 255 inclusive, and A is a double between 0 and 1 inclusive. | |
104 // This is the CSS "background-color" format. | |
105 // Value is always valid. | |
106 string16 color_rgba; | |
107 | |
108 // The theme background image url of format | |
109 // "-webkit-image-set(url(chrome://theme/IDR_THEME_BACKGROUND?<theme_id>) 1x)" | |
110 // where <theme_id> is the id that identifies the theme. | |
111 // This is the CSS "background-image" format. | |
112 // Value is only valid if there's a custom theme background image. | |
113 string16 image_url; | |
114 | |
115 // The theme background image horizontal alignment: one of "left", "right", | |
116 // "center". | |
117 // This is the horizontal component of the CSS "background-position" format. | |
118 // Value is only valid if |image_url| is valid. | |
119 string16 image_horizontal_alignment; | |
120 | |
121 // The theme background image vertical alignment: one of "top", "bottom", | |
122 // "center". | |
123 // This is the vertical component of the CSS "background-position" format. | |
124 // Value is only valid if |image_url| is valid. | |
125 string16 image_vertical_alignment; | |
126 | |
127 // The tiling of the theme background image: one of "no-repeat", "repeat-x", | |
128 // "repeat-y", "repeat". | |
129 // This is the CSS "background-repeat" format. | |
130 // Value is only valid if |image_url| is valid. | |
131 string16 image_tiling; | |
132 | |
133 // The theme background image height. | |
134 // Value is only valid if |image_url| is valid. | |
135 int image_height; | |
136 }; | |
137 | |
96 #endif // CHROME_COMMON_INSTANT_TYPES_H_ | 138 #endif // CHROME_COMMON_INSTANT_TYPES_H_ |
OLD | NEW |