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

Unified Diff: content/common/view_messages.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, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index ed50c60e39436da38c4fd15923d6ccc29fef5ea9..ffcc83afefb4d648478d04b65603fcd4aca5f10d 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -79,8 +79,10 @@ IPC_ENUM_TRAITS(WindowContainerType)
IPC_ENUM_TRAITS(content::FaviconURL::IconType)
IPC_ENUM_TRAITS(content::FileChooserParams::Mode)
IPC_ENUM_TRAITS(content::MenuItem::Type)
-IPC_ENUM_TRAITS(content::NavigationGesture)
-IPC_ENUM_TRAITS(content::PageZoom)
+IPC_ENUM_TRAITS_MAX_VALUE(content::NavigationGesture,
+ content::NAVIGATIONGESTURE_LAST)
+IPC_ENUM_TRAITS_MAX_VALUE(content::PageZoom,
Avi (use Gerrit) 2014/09/25 15:39:34 Please don't do this blindly! PageZoom has a min v
ARUNKK 2014/09/26 06:08:07 Done.
+ content::PAGE_ZOOM_LAST)
IPC_ENUM_TRAITS(gfx::FontRenderParams::Hinting)
IPC_ENUM_TRAITS(gfx::FontRenderParams::SubpixelRendering)
IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy,

Powered by Google App Engine
This is Rietveld 408576698