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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js

Issue 2701403002: [DevTools] Move Popover to shadow DOM. (Closed)
Patch Set: rebased Created 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
5 * Copyright (C) 2009 Joseph Pecoraro 5 * Copyright (C) 2009 Joseph Pecoraro
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 document.defaultView.addEventListener('focus', UI._windowFocused.bind(UI, docu ment), false); 1183 document.defaultView.addEventListener('focus', UI._windowFocused.bind(UI, docu ment), false);
1184 document.defaultView.addEventListener('blur', UI._windowBlurred.bind(UI, docum ent), false); 1184 document.defaultView.addEventListener('blur', UI._windowBlurred.bind(UI, docum ent), false);
1185 document.addEventListener('focus', UI._focusChanged.bind(UI), true); 1185 document.addEventListener('focus', UI._focusChanged.bind(UI), true);
1186 1186
1187 if (!UI.themeSupport) 1187 if (!UI.themeSupport)
1188 UI.themeSupport = new UI.ThemeSupport(themeSetting); 1188 UI.themeSupport = new UI.ThemeSupport(themeSetting);
1189 UI.themeSupport.applyTheme(document); 1189 UI.themeSupport.applyTheme(document);
1190 1190
1191 var body = /** @type {!Element} */ (document.body); 1191 var body = /** @type {!Element} */ (document.body);
1192 UI.appendStyle(body, 'ui/inspectorStyle.css'); 1192 UI.appendStyle(body, 'ui/inspectorStyle.css');
1193 UI.appendStyle(body, 'ui/popover.css');
1194 UI.GlassPane.setContainer(/** @type {!Element} */ (document.body)); 1193 UI.GlassPane.setContainer(/** @type {!Element} */ (document.body));
1195 }; 1194 };
1196 1195
1197 /** 1196 /**
1198 * @param {string} name 1197 * @param {string} name
1199 * @return {string} 1198 * @return {string}
1200 */ 1199 */
1201 UI.beautifyFunctionName = function(name) { 1200 UI.beautifyFunctionName = function(name) {
1202 return name || Common.UIString('(anonymous)'); 1201 return name || Common.UIString('(anonymous)');
1203 }; 1202 };
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
2065 */ 2064 */
2066 constructor(message, okCallback, cancelCallback) { 2065 constructor(message, okCallback, cancelCallback) {
2067 super(true); 2066 super(true);
2068 this.registerRequiredCSS('ui/confirmDialog.css'); 2067 this.registerRequiredCSS('ui/confirmDialog.css');
2069 this.contentElement.createChild('div', 'message').createChild('span').textCo ntent = message; 2068 this.contentElement.createChild('div', 'message').createChild('span').textCo ntent = message;
2070 var buttonsBar = this.contentElement.createChild('div', 'button'); 2069 var buttonsBar = this.contentElement.createChild('div', 'button');
2071 buttonsBar.appendChild(UI.createTextButton(Common.UIString('Ok'), okCallback )); 2070 buttonsBar.appendChild(UI.createTextButton(Common.UIString('Ok'), okCallback ));
2072 buttonsBar.appendChild(UI.createTextButton(Common.UIString('Cancel'), cancel Callback)); 2071 buttonsBar.appendChild(UI.createTextButton(Common.UIString('Cancel'), cancel Callback));
2073 } 2072 }
2074 }; 2073 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698