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

Side by Side Diff: chrome/browser/ui/webui/options2/content_settings_handler.cc

Issue 10808092: Add settings UI for managing defaults (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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 #include "chrome/browser/ui/webui/options2/content_settings_handler.h" 5 #include "chrome/browser/ui/webui/options2/content_settings_handler.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 { "location_ask", IDS_GEOLOCATION_ASK_RADIO }, 408 { "location_ask", IDS_GEOLOCATION_ASK_RADIO },
409 { "location_block", IDS_GEOLOCATION_BLOCK_RADIO }, 409 { "location_block", IDS_GEOLOCATION_BLOCK_RADIO },
410 { "set_by", IDS_GEOLOCATION_SET_BY_HOVER }, 410 { "set_by", IDS_GEOLOCATION_SET_BY_HOVER },
411 // Notifications filter. 411 // Notifications filter.
412 { "notifications_tab_label", IDS_NOTIFICATIONS_TAB_LABEL }, 412 { "notifications_tab_label", IDS_NOTIFICATIONS_TAB_LABEL },
413 { "notifications_header", IDS_NOTIFICATIONS_HEADER }, 413 { "notifications_header", IDS_NOTIFICATIONS_HEADER },
414 { "notifications_allow", IDS_NOTIFICATIONS_ALLOW_RADIO }, 414 { "notifications_allow", IDS_NOTIFICATIONS_ALLOW_RADIO },
415 { "notifications_ask", IDS_NOTIFICATIONS_ASK_RADIO }, 415 { "notifications_ask", IDS_NOTIFICATIONS_ASK_RADIO },
416 { "notifications_block", IDS_NOTIFICATIONS_BLOCK_RADIO }, 416 { "notifications_block", IDS_NOTIFICATIONS_BLOCK_RADIO },
417 // Intents filter. 417 // Intents filter.
418 { "webIntentsTabLabel", IDS_WEB_INTENTS_TAB_LABEL }, 418 { "web_intents_tab_label", IDS_WEB_INTENTS_TAB_LABEL },
419 { "allowWebIntents", IDS_ALLOW_WEB_INTENTS }, 419 { "web_intents_enabled", IDS_WEB_INTENTS_ENABLED },
csilv 2012/08/09 18:18:04 per previous comment, camelCase
420 // Fullscreen filter. 420 // Fullscreen filter.
421 { "fullscreen_tab_label", IDS_FULLSCREEN_TAB_LABEL }, 421 { "fullscreen_tab_label", IDS_FULLSCREEN_TAB_LABEL },
422 { "fullscreen_header", IDS_FULLSCREEN_HEADER }, 422 { "fullscreen_header", IDS_FULLSCREEN_HEADER },
423 // Mouse Lock filter. 423 // Mouse Lock filter.
424 { "mouselock_tab_label", IDS_MOUSE_LOCK_TAB_LABEL }, 424 { "mouselock_tab_label", IDS_MOUSE_LOCK_TAB_LABEL },
425 { "mouselock_header", IDS_MOUSE_LOCK_HEADER }, 425 { "mouselock_header", IDS_MOUSE_LOCK_HEADER },
426 { "mouselock_allow", IDS_MOUSE_LOCK_ALLOW_RADIO }, 426 { "mouselock_allow", IDS_MOUSE_LOCK_ALLOW_RADIO },
427 { "mouselock_ask", IDS_MOUSE_LOCK_ASK_RADIO }, 427 { "mouselock_ask", IDS_MOUSE_LOCK_ASK_RADIO },
428 { "mouselock_block", IDS_MOUSE_LOCK_BLOCK_RADIO }, 428 { "mouselock_block", IDS_MOUSE_LOCK_BLOCK_RADIO },
429 // Pepper Flash camera and microphone filter. 429 // Pepper Flash camera and microphone filter.
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 case CONTENT_SETTINGS_TYPE_NOTIFICATIONS: 1149 case CONTENT_SETTINGS_TYPE_NOTIFICATIONS:
1150 content::RecordAction( 1150 content::RecordAction(
1151 UserMetricsAction("Options_DefaultNotificationsSettingChanged")); 1151 UserMetricsAction("Options_DefaultNotificationsSettingChanged"));
1152 break; 1152 break;
1153 case CONTENT_SETTINGS_TYPE_GEOLOCATION: 1153 case CONTENT_SETTINGS_TYPE_GEOLOCATION:
1154 content::RecordAction( 1154 content::RecordAction(
1155 UserMetricsAction("Options_DefaultGeolocationSettingChanged")); 1155 UserMetricsAction("Options_DefaultGeolocationSettingChanged"));
1156 break; 1156 break;
1157 case CONTENT_SETTINGS_TYPE_INTENTS: 1157 case CONTENT_SETTINGS_TYPE_INTENTS:
1158 content::RecordAction( 1158 content::RecordAction(
1159 UserMetricsAction("Options_DefaultHandlersSettingChanged")); 1159 UserMetricsAction("Options_WebIntentsOptionsChanged"));
1160 break; 1160 break;
1161 case CONTENT_SETTINGS_TYPE_MOUSELOCK: 1161 case CONTENT_SETTINGS_TYPE_MOUSELOCK:
1162 content::RecordAction( 1162 content::RecordAction(
1163 UserMetricsAction("Options_DefaultMouseLockSettingChanged")); 1163 UserMetricsAction("Options_DefaultMouseLockSettingChanged"));
1164 break; 1164 break;
1165 case EX_CONTENT_SETTINGS_TYPE_PEPPER_FLASH_CAMERAMIC: 1165 case EX_CONTENT_SETTINGS_TYPE_PEPPER_FLASH_CAMERAMIC:
1166 content::RecordAction( 1166 content::RecordAction(
1167 UserMetricsAction("Options_DefaultFlashCameraMicSettingChanged")); 1167 UserMetricsAction("Options_DefaultFlashCameraMicSettingChanged"));
1168 break; 1168 break;
1169 case CONTENT_SETTINGS_TYPE_MEDIASTREAM: 1169 case CONTENT_SETTINGS_TYPE_MEDIASTREAM:
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1332 for (size_t i = 0; i < arraysize(kExContentSettingsTypeGroupNames); ++i) { 1332 for (size_t i = 0; i < arraysize(kExContentSettingsTypeGroupNames); ++i) {
1333 if (type == kExContentSettingsTypeGroupNames[i].type) 1333 if (type == kExContentSettingsTypeGroupNames[i].type)
1334 return kExContentSettingsTypeGroupNames[i].name; 1334 return kExContentSettingsTypeGroupNames[i].name;
1335 } 1335 }
1336 1336
1337 NOTREACHED(); 1337 NOTREACHED();
1338 return std::string(); 1338 return std::string();
1339 } 1339 }
1340 1340
1341 } // namespace options2 1341 } // namespace options2
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698