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

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

Issue 191033002: Polish the appearance of the Controlled by Extension bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: chrome/browser/resources/uber/uber.js
diff --git a/chrome/browser/resources/uber/uber.js b/chrome/browser/resources/uber/uber.js
index 44609c0d570ca19e7b1e2980e224a8f819e48087..0fdb4ae07ee97ae3c20f3a440d6b52ad42e80b7f 100644
--- a/chrome/browser/resources/uber/uber.js
+++ b/chrome/browser/resources/uber/uber.js
@@ -126,24 +126,27 @@ cr.define('uber', function() {
* @param {Event} e The posted object.
*/
function handleWindowMessage(e) {
- if (e.data.method === 'beginInterceptingEvents')
+ if (e.data.method === 'beginInterceptingEvents') {
backgroundNavigation();
- else if (e.data.method === 'stopInterceptingEvents')
+ } else if (e.data.method === 'stopInterceptingEvents') {
foregroundNavigation();
- else if (e.data.method === 'setPath')
+ } else if (e.data.method === 'setPath') {
setPath(e.origin, e.data.params.path);
- else if (e.data.method === 'setTitle')
+ } else if (e.data.method === 'setTitle') {
setTitle(e.origin, e.data.params.title);
- else if (e.data.method === 'showPage')
- showPage(e.data.params.pageId, HISTORY_STATE_OPTION.PUSH);
- else if (e.data.method === 'navigationControlsLoaded')
+ } else if (e.data.method === 'showPage') {
+ showPage(e.data.params.pageId,
+ HISTORY_STATE_OPTION.PUSH,
+ e.data.params.path);
+ } else if (e.data.method === 'navigationControlsLoaded') {
onNavigationControlsLoaded();
- else if (e.data.method === 'adjustToScroll')
+ } else if (e.data.method === 'adjustToScroll') {
adjustToScroll(e.data.params);
- else if (e.data.method === 'mouseWheel')
+ } else if (e.data.method === 'mouseWheel') {
forwardMouseWheel(e.data.params);
- else
+ } else {
console.error('Received unexpected message', e.data);
+ }
}
/**
« no previous file with comments | « chrome/browser/resources/options/options.html ('k') | chrome/browser/ui/webui/options/core_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698