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

Unified Diff: chrome/browser/resources/uber/uber_frame.js

Issue 914033002: uber: remove mouse focus outlines on nav tabs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: asdf Created 5 years, 10 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
« no previous file with comments | « chrome/browser/resources/uber/uber_frame.html ('k') | ui/webui/resources/js/cr/ui/focus_outline_manager.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/uber/uber_frame.js
diff --git a/chrome/browser/resources/uber/uber_frame.js b/chrome/browser/resources/uber/uber_frame.js
index 6016c45bde0e6e117a379d83071751287a487e4e..bef246caafb688431e0871e4ec143016545a3d97 100644
--- a/chrome/browser/resources/uber/uber_frame.js
+++ b/chrome/browser/resources/uber/uber_frame.js
@@ -22,6 +22,8 @@ cr.define('uber_frame', function() {
navigationItems[i].addEventListener('click', onNavItemClicked);
}
+ cr.ui.FocusOutlineManager.forDocument(this);
+
window.addEventListener('message', handleWindowMessage);
uber.invokeMethodOnParent('navigationControlsLoaded');
@@ -131,8 +133,7 @@ cr.define('uber_frame', function() {
*/
function setContentChanging(enabled) {
assert(isRTL());
- document.documentElement.classList[enabled ? 'add' : 'remove'](
- 'changing-content');
+ document.documentElement.classList.toggle('changing-content', enabled);
}
/**
« no previous file with comments | « chrome/browser/resources/uber/uber_frame.html ('k') | ui/webui/resources/js/cr/ui/focus_outline_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698