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

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

Issue 1065813003: Apply automatic range checks to enum types across IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | chrome/common/render_messages.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 20 matching lines...) Expand all
31 std::string metadata; 31 std::string metadata;
32 }; 32 };
33 33
34 // The alignment of the theme background image. 34 // The alignment of the theme background image.
35 enum ThemeBackgroundImageAlignment { 35 enum ThemeBackgroundImageAlignment {
36 THEME_BKGRND_IMAGE_ALIGN_CENTER, 36 THEME_BKGRND_IMAGE_ALIGN_CENTER,
37 THEME_BKGRND_IMAGE_ALIGN_LEFT, 37 THEME_BKGRND_IMAGE_ALIGN_LEFT,
38 THEME_BKGRND_IMAGE_ALIGN_TOP, 38 THEME_BKGRND_IMAGE_ALIGN_TOP,
39 THEME_BKGRND_IMAGE_ALIGN_RIGHT, 39 THEME_BKGRND_IMAGE_ALIGN_RIGHT,
40 THEME_BKGRND_IMAGE_ALIGN_BOTTOM, 40 THEME_BKGRND_IMAGE_ALIGN_BOTTOM,
41
42 THEME_BKGRND_IMAGE_ALIGN_LAST = THEME_BKGRND_IMAGE_ALIGN_BOTTOM,
41 }; 43 };
42 44
43 // The tiling of the theme background image. 45 // The tiling of the theme background image.
44 enum ThemeBackgroundImageTiling { 46 enum ThemeBackgroundImageTiling {
45 THEME_BKGRND_IMAGE_NO_REPEAT, 47 THEME_BKGRND_IMAGE_NO_REPEAT,
46 THEME_BKGRND_IMAGE_REPEAT_X, 48 THEME_BKGRND_IMAGE_REPEAT_X,
47 THEME_BKGRND_IMAGE_REPEAT_Y, 49 THEME_BKGRND_IMAGE_REPEAT_Y,
48 THEME_BKGRND_IMAGE_REPEAT, 50 THEME_BKGRND_IMAGE_REPEAT,
51
52 THEME_BKGRND_IMAGE_LAST = THEME_BKGRND_IMAGE_REPEAT,
49 }; 53 };
50 54
51 // The RGBA color components for the text and links of the theme. 55 // The RGBA color components for the text and links of the theme.
52 struct RGBAColor { 56 struct RGBAColor {
53 RGBAColor(); 57 RGBAColor();
54 ~RGBAColor(); 58 ~RGBAColor();
55 59
56 bool operator==(const RGBAColor& rhs) const; 60 bool operator==(const RGBAColor& rhs) const;
57 61
58 // The color in RGBA format where the R, G, B and A values 62 // The color in RGBA format where the R, G, B and A values
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 165
162 // The optional assisted query stats, aka AQS, used for logging purposes. 166 // The optional assisted query stats, aka AQS, used for logging purposes.
163 // This string contains impressions of all autocomplete matches shown 167 // This string contains impressions of all autocomplete matches shown
164 // at the query submission time. For privacy reasons, we require the 168 // at the query submission time. For privacy reasons, we require the
165 // search provider to support HTTPS protocol in order to receive the AQS 169 // search provider to support HTTPS protocol in order to receive the AQS
166 // param. 170 // param.
167 // For more details, see http://goto.google.com/binary-clients-logging. 171 // For more details, see http://goto.google.com/binary-clients-logging.
168 base::string16 assisted_query_stats; 172 base::string16 assisted_query_stats;
169 }; 173 };
170 #endif // CHROME_COMMON_INSTANT_TYPES_H_ 174 #endif // CHROME_COMMON_INSTANT_TYPES_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698