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 instant overlay to adopt the browser's | |
97 // theme in |NTP| mode. | |
98 struct ThemeBackgroundInfo { | |
99 ThemeBackgroundInfo(); | |
dhollowa
2012/11/15 22:00:33
ctor/dtor are not needed.
kuan
2012/11/15 22:19:16
Done.
kuan
2012/11/16 01:59:51
actually, i need them. clang doesn't build withou
| |
100 ~ThemeBackgroundInfo(); | |
101 | |
102 // The background color in RGBA format. | |
dhollowa
2012/11/15 22:00:33
nit: Elaborate on the format of this string please
kuan
2012/11/15 22:19:16
Done.
| |
103 string16 color_rgba; | |
104 | |
105 // The image url. | |
106 string16 image_url; | |
107 | |
108 // The image horizontal alignment. | |
dhollowa
2012/11/15 22:00:33
ditto
kuan
2012/11/15 22:19:16
Done.
| |
109 string16 image_horizontal_alignment; | |
110 | |
111 // The image vertical alignment. | |
dhollowa
2012/11/15 22:00:33
ditto
kuan
2012/11/15 22:19:16
Done.
| |
112 string16 image_vertical_alignment; | |
113 | |
114 // The tiling of the image. | |
dhollowa
2012/11/15 22:00:33
ditto
kuan
2012/11/15 22:19:16
Done.
| |
115 string16 image_tiling; | |
116 }; | |
117 | |
96 #endif // CHROME_COMMON_INSTANT_TYPES_H_ | 118 #endif // CHROME_COMMON_INSTANT_TYPES_H_ |
OLD | NEW |