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 |
| 97 // theme. |
| 98 struct ThemeBackgroundInfo { |
| 99 // The background color in RGBA format "rgba(R,G,B,A)" where R, G and B are |
| 100 // between 0 and 255 inclusive, and A is a double between 0 and 1 inclusive. |
| 101 // This is the CSS "background-color" format. |
| 102 // Value is always valid. |
| 103 string16 color_rgba; |
| 104 |
| 105 // The image url of format |
| 106 // "-webkit-image-set(url(chrome://theme/IDR_THEME_BACKGROUND?<theme_id>) 1x)" |
| 107 // where <theme_id> is the id that identifies the theme. |
| 108 // This is the CSS "background-image" format. |
| 109 // Value is only valid if there's a custom theme background image. |
| 110 string16 image_url; |
| 111 |
| 112 // The image horizontal alignment: one of "left", "right", "center". |
| 113 // This is the horizontal component of the CSS "background-position" format. |
| 114 // Value is only valid if |image_url| is valid. |
| 115 string16 image_horizontal_alignment; |
| 116 |
| 117 // The image vertical alignment: one of "top", "bottom", "center". |
| 118 // This is the vertical component of the CSS "background-position" format. |
| 119 // Value is only valid if |image_url| is valid. |
| 120 string16 image_vertical_alignment; |
| 121 |
| 122 // The tiling of the image: one of "no-repeat", "repeat-x", "repeat-y", |
| 123 // "repeat". |
| 124 // This is the CSS "background-repeat" format. |
| 125 // Value is only valid if |image_url| is valid. |
| 126 string16 image_tiling; |
| 127 }; |
| 128 |
96 #endif // CHROME_COMMON_INSTANT_TYPES_H_ | 129 #endif // CHROME_COMMON_INSTANT_TYPES_H_ |
OLD | NEW |