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

Side by Side Diff: Source/devtools/front_end/ui/Dialog.js

Issue 1097163004: DevTools: zoom frames upon double click, iterate over frames using arrows. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 if (!event.handled && this._closeKeys.indexOf(event.keyCode) >= 0) { 133 if (!event.handled && this._closeKeys.indexOf(event.keyCode) >= 0) {
134 this._hide(); 134 this._hide();
135 event.consume(true); 135 event.consume(true);
136 } 136 }
137 } 137 }
138 }; 138 };
139 139
140 /** 140 /**
141 * @constructor 141 * @constructor
142 * @extends {WebInspector.Object} 142 * @extends {WebInspector.Object}
143 * @param {!Element} element
143 */ 144 */
144 WebInspector.DialogDelegate = function() 145 WebInspector.DialogDelegate = function(element)
dgozman 2015/04/22 10:16:54 Make it className instead of element, since they a
pfeldman 2015/04/22 12:13:12 I'll just create this div here and let clients add
145 { 146 {
146 /** @type {!Element} */ 147 this.element = element;
147 this.element;
148 } 148 }
149 149
150 WebInspector.DialogDelegate.prototype = { 150 WebInspector.DialogDelegate.prototype = {
151 /** 151 /**
152 * @param {!Element} element 152 * @param {!Element} element
153 */ 153 */
154 show: function(element) 154 show: function(element)
155 { 155 {
156 element.appendChild(this.element); 156 element.appendChild(this.element);
157 this.element.classList.add("dialog-contents"); 157 this.element.classList.add("dialog-contents");
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 { 206 {
207 return WebInspector.Dialog._modalHostView; 207 return WebInspector.Dialog._modalHostView;
208 }; 208 };
209 209
210 WebInspector.Dialog.modalHostRepositioned = function() 210 WebInspector.Dialog.modalHostRepositioned = function()
211 { 211 {
212 if (WebInspector.Dialog._instance) 212 if (WebInspector.Dialog._instance)
213 WebInspector.Dialog._instance._position(); 213 WebInspector.Dialog._instance._position();
214 }; 214 };
215 215
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698