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

Side by Side Diff: chrome/common/instant_types.h

Issue 11413018: alternate ntp: implement searchbox api for instant overlay to adopt themes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed to only send ht change when there's theme image Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_notification_types.h ('k') | chrome/common/instant_types.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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_
OLDNEW
« no previous file with comments | « chrome/common/chrome_notification_types.h ('k') | chrome/common/instant_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698