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

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

Issue 662793002: [DevTools] Replace usages of document with custom functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 20 matching lines...) Expand all
31 /** 31 /**
32 * @constructor 32 * @constructor
33 * @extends {WebInspector.View} 33 * @extends {WebInspector.View}
34 * @param {!WebInspector.PopoverHelper=} popoverHelper 34 * @param {!WebInspector.PopoverHelper=} popoverHelper
35 */ 35 */
36 WebInspector.Popover = function(popoverHelper) 36 WebInspector.Popover = function(popoverHelper)
37 { 37 {
38 WebInspector.View.call(this); 38 WebInspector.View.call(this);
39 this.markAsRoot(); 39 this.markAsRoot();
40 this.element.className = WebInspector.Popover._classNamePrefix; // Override 40 this.element.className = WebInspector.Popover._classNamePrefix; // Override
41 this._containerElement = document.createElementWithClass("div", "fill popove r-container"); 41 this._containerElement = createElementWithClass("div", "fill popover-contain er");
42 42
43 this._popupArrowElement = this.element.createChild("div", "arrow"); 43 this._popupArrowElement = this.element.createChild("div", "arrow");
44 this._contentDiv = this.element.createChild("div", "content"); 44 this._contentDiv = this.element.createChild("div", "content");
45 45
46 this._popoverHelper = popoverHelper; 46 this._popoverHelper = popoverHelper;
47 this._hideBound = this.hide.bind(this); 47 this._hideBound = this.hide.bind(this);
48 } 48 }
49 49
50 WebInspector.Popover._classNamePrefix = "popover component-root custom-popup-ver tical-scroll custom-popup-horizontal-scroll"; 50 WebInspector.Popover._classNamePrefix = "popover component-root custom-popup-ver tical-scroll custom-popup-horizontal-scroll";
51 51
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 this._resetHoverTimer(); 397 this._resetHoverTimer();
398 } 398 }
399 } 399 }
400 } 400 }
401 401
402 /** @enum {string} */ 402 /** @enum {string} */
403 WebInspector.Popover.Orientation = { 403 WebInspector.Popover.Orientation = {
404 Top: "top", 404 Top: "top",
405 Bottom: "bottom" 405 Bottom: "bottom"
406 } 406 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ui/PieChart.js ('k') | Source/devtools/front_end/ui/ProgressIndicator.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698