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

Side by Side Diff: content/public/common/stop_find_action.h

Issue 604753002: Apply automatic range checks to enum types across IPC in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 2 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
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 CONTENT_PUBLIC_COMMON_STOP_FIND_ACTION_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_STOP_FIND_ACTION_H_
6 #define CONTENT_PUBLIC_COMMON_STOP_FIND_ACTION_H_ 6 #define CONTENT_PUBLIC_COMMON_STOP_FIND_ACTION_H_
7 7
8 namespace content { 8 namespace content {
9 9
10 // The user has completed a find-in-page; this type defines what actions the 10 // The user has completed a find-in-page; this type defines what actions the
11 // renderer should take next. 11 // renderer should take next.
12 enum StopFindAction { 12 enum StopFindAction {
13 STOP_FIND_ACTION_CLEAR_SELECTION, 13 STOP_FIND_ACTION_CLEAR_SELECTION,
14 STOP_FIND_ACTION_KEEP_SELECTION, 14 STOP_FIND_ACTION_KEEP_SELECTION,
15 STOP_FIND_ACTION_ACTIVATE_SELECTION 15 STOP_FIND_ACTION_ACTIVATE_SELECTION,
16 STOP_FIND_ACTION_LAST = STOP_FIND_ACTION_ACTIVATE_SELECTION
16 }; 17 };
17 18
18 } // namespace content 19 } // namespace content
19 20
20 #endif // CONTENT_PUBLIC_COMMON_STOP_FIND_ACTION_H_ 21 #endif // CONTENT_PUBLIC_COMMON_STOP_FIND_ACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698