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

Side by Side Diff: content/common/navigation_gesture.h

Issue 601153002: [src/content] Apply automatic range checks to enum types across IPC . (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
« no previous file with comments | « no previous file | content/common/view_messages.h » ('j') | content/common/view_messages.h » ('J')
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 CONTENT_COMMON_NAVIGATION_GESTURE_H_ 5 #ifndef CONTENT_COMMON_NAVIGATION_GESTURE_H_
6 #define CONTENT_COMMON_NAVIGATION_GESTURE_H_ 6 #define CONTENT_COMMON_NAVIGATION_GESTURE_H_
7 7
8 namespace content { 8 namespace content {
9 9
10 enum NavigationGesture { 10 enum NavigationGesture {
11 // User initiated navigation/load. 11 // User initiated navigation/load.
12 NavigationGestureUser, 12 NavigationGestureUser,
13 // Non-user initiated navigation/load. For example, onload- or 13 // Non-user initiated navigation/load. For example, onload- or
14 // setTimeout-triggered document.location changes and form.submits. See 14 // setTimeout-triggered document.location changes and form.submits. See
15 // http://b/1046841 for some cases that should be treated this way but aren't. 15 // http://b/1046841 for some cases that should be treated this way but aren't.
16 NavigationGestureAuto, 16 NavigationGestureAuto,
17 // Initial state. 17 // Initial state.
18 NavigationGestureUnknown, 18 NavigationGestureUnknown,
19
20 NAVIGATIONGESTURE_LAST = NavigationGestureUnknown
Avi (use Gerrit) 2014/09/25 15:39:34 Match the style. Adding one MACRO_STYLE item to a
ARUNKK 2014/09/26 06:08:06 Done.
21
19 }; 22 };
20 23
21 } // namespace content 24 } // namespace content
22 25
23 #endif // CONTENT_COMMON_NAVIGATION_GESTURE_H_ 26 #endif // CONTENT_COMMON_NAVIGATION_GESTURE_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/view_messages.h » ('j') | content/common/view_messages.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698