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

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

Issue 1113813002: [DevTools] Rename View to Widget. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 7 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
« no previous file with comments | « Source/devtools/front_end/ui/ColorSwatch.js ('k') | Source/devtools/front_end/ui/DropTarget.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 focus: function() { }, 179 focus: function() { },
180 180
181 onEnter: function(event) { }, 181 onEnter: function(event) { },
182 182
183 willHide: function() { }, 183 willHide: function() { },
184 184
185 __proto__: WebInspector.Object.prototype 185 __proto__: WebInspector.Object.prototype
186 } 186 }
187 187
188 /** @type {?WebInspector.View} */ 188 /** @type {?WebInspector.Widget} */
189 WebInspector.Dialog._modalHostView = null; 189 WebInspector.Dialog._modalHostView = null;
190 190
191 /** 191 /**
192 * @param {!WebInspector.View} view 192 * @param {!WebInspector.Widget} view
193 */ 193 */
194 WebInspector.Dialog.setModalHostView = function(view) 194 WebInspector.Dialog.setModalHostView = function(view)
195 { 195 {
196 WebInspector.Dialog._modalHostView = view; 196 WebInspector.Dialog._modalHostView = view;
197 }; 197 };
198 198
199 /** 199 /**
200 * FIXME: make utility method in Dialog, so clients use it instead of this gette r. 200 * FIXME: make utility method in Dialog, so clients use it instead of this gette r.
201 * Method should be like Dialog.showModalElement(position params, reposition cal lback). 201 * Method should be like Dialog.showModalElement(position params, reposition cal lback).
202 * @return {?WebInspector.View} 202 * @return {?WebInspector.Widget}
203 */ 203 */
204 WebInspector.Dialog.modalHostView = function() 204 WebInspector.Dialog.modalHostView = function()
205 { 205 {
206 return WebInspector.Dialog._modalHostView; 206 return WebInspector.Dialog._modalHostView;
207 }; 207 };
208 208
209 WebInspector.Dialog.modalHostRepositioned = function() 209 WebInspector.Dialog.modalHostRepositioned = function()
210 { 210 {
211 if (WebInspector.Dialog._instance) 211 if (WebInspector.Dialog._instance)
212 WebInspector.Dialog._instance._position(); 212 WebInspector.Dialog._instance._position();
213 }; 213 };
214 214
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ui/ColorSwatch.js ('k') | Source/devtools/front_end/ui/DropTarget.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698