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

Unified Diff: extensions/browser/api/guest_view/web_view/web_view_internal_api.cc

Issue 1055673002: [Extensions API] Remove inline enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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: extensions/browser/api/guest_view/web_view/web_view_internal_api.cc
diff --git a/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc b/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc
index cb685506fd1ea18bfbf9d8a36213da798e42b862..74c89c6346f931030692756356d28be189b178e3 100644
--- a/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc
+++ b/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc
@@ -445,13 +445,13 @@ bool WebViewInternalStopFindingFunction::RunAsyncSafe(WebViewGuest* guest) {
// Set the StopFindAction.
content::StopFindAction action;
switch (params->action) {
- case web_view_internal::StopFinding::Params::ACTION_CLEAR:
+ case web_view_internal::STOP_FINDING_ACTION_CLEAR:
action = content::STOP_FIND_ACTION_CLEAR_SELECTION;
break;
- case web_view_internal::StopFinding::Params::ACTION_KEEP:
+ case web_view_internal::STOP_FINDING_ACTION_KEEP:
action = content::STOP_FIND_ACTION_KEEP_SELECTION;
break;
- case web_view_internal::StopFinding::Params::ACTION_ACTIVATE:
+ case web_view_internal::STOP_FINDING_ACTION_ACTIVATE:
action = content::STOP_FIND_ACTION_ACTIVATE_SELECTION;
break;
default:
@@ -529,13 +529,13 @@ bool WebViewInternalSetPermissionFunction::RunAsyncSafe(WebViewGuest* guest) {
WebViewPermissionHelper::PermissionResponseAction action =
WebViewPermissionHelper::DEFAULT;
switch (params->action) {
- case Params::ACTION_ALLOW:
+ case core_api::web_view_internal::SET_PERMISSION_ACTION_ALLOW:
action = WebViewPermissionHelper::ALLOW;
break;
- case Params::ACTION_DENY:
+ case core_api::web_view_internal::SET_PERMISSION_ACTION_DENY:
action = WebViewPermissionHelper::DENY;
break;
- case Params::ACTION_DEFAULT:
+ case core_api::web_view_internal::SET_PERMISSION_ACTION_DEFAULT:
break;
default:
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698