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

Side by Side Diff: content/public/common/top_controls_state.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 | « chrome/common/search_provider.h ('k') | no next file » | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CONTENT_PUBLIC_COMMON_TOP_CONTROLS_STATE_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_TOP_CONTROLS_STATE_H_
6 #define CONTENT_PUBLIC_COMMON_TOP_CONTROLS_STATE_H_ 6 #define CONTENT_PUBLIC_COMMON_TOP_CONTROLS_STATE_H_
7 7
8 namespace content { 8 namespace content {
9 9
10 // A Java counterpart will be generated for this enum. 10 // A Java counterpart will be generated for this enum.
11 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.content_public.common 11 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.content_public.common
12 enum TopControlsState { 12 enum TopControlsState {
13 TOP_CONTROLS_STATE_SHOWN = 1, 13 TOP_CONTROLS_STATE_SHOWN = 1,
14 TOP_CONTROLS_STATE_HIDDEN = 2, 14 TOP_CONTROLS_STATE_HIDDEN = 2,
15 TOP_CONTROLS_STATE_BOTH = 3, 15 TOP_CONTROLS_STATE_BOTH = 3,
16
17 TOP_CONTROLS_STATE_LAST = TOP_CONTROLS_STATE_BOTH,
16 }; 18 };
17 19
18 } // namespace content 20 } // namespace content
19 21
20 #endif // CONTENT_PUBLIC_COMMON_TOP_CONTROLS_STATE_H_ 22 #endif // CONTENT_PUBLIC_COMMON_TOP_CONTROLS_STATE_H_
21 23
OLDNEW
« no previous file with comments | « chrome/common/search_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698