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

Unified Diff: chrome/browser/ui/webui/options/content_settings_handler.cc

Issue 8549011: Content settings UI for mouse lock (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Strings from Brian used Created 9 years, 1 month 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: chrome/browser/ui/webui/options/content_settings_handler.cc
diff --git a/chrome/browser/ui/webui/options/content_settings_handler.cc b/chrome/browser/ui/webui/options/content_settings_handler.cc
index aad3d0ea37d032267bdf86db9745496fbd66a414..4fe3e9b80bfef28ac4593f93b549ec5adef8f82a 100644
--- a/chrome/browser/ui/webui/options/content_settings_handler.cc
+++ b/chrome/browser/ui/webui/options/content_settings_handler.cc
@@ -266,6 +266,12 @@ void ContentSettingsHandler::GetLocalizedValues(
// Fullscreen filter.
{ "fullscreen_tab_label", IDS_FULLSCREEN_TAB_LABEL },
{ "fullscreen_header", IDS_FULLSCREEN_HEADER },
+ // Mouse Lock filter.
+ { "mouselock_tab_label", IDS_MOUSE_LOCK_TAB_LABEL },
+ { "mouselock_header", IDS_MOUSE_LOCK_HEADER },
+ { "mouselock_allow", IDS_MOUSE_LOCK_ALLOW_RADIO },
+ { "mouselock_ask", IDS_MOUSE_LOCK_ASK_RADIO },
+ { "mouselock_block", IDS_MOUSE_LOCK_BLOCK_RADIO },
};
RegisterStrings(localized_strings, resources, arraysize(resources));
@@ -416,9 +422,6 @@ void ContentSettingsHandler::UpdateAllExceptionsViewsFromModel() {
// for this content type and we skip it here.
if (type == CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE)
continue;
- // TODO(scheib): Mouse lock content settings UI. http://crbug.com/97768
- if (type == CONTENT_SETTINGS_TYPE_MOUSELOCK)
- continue;
UpdateExceptionsViewFromModel(static_cast<ContentSettingsType>(type));
}
}

Powered by Google App Engine
This is Rietveld 408576698