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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/perf_ui/TimelineOverviewPane.js

Issue 2779853002: [DevTools] Allow hide timeout in popover be longer than show timeout (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/Popover.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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 this._cursorArea.addEventListener('mouseleave', this._hideCursor.bind(this), true); 48 this._cursorArea.addEventListener('mouseleave', this._hideCursor.bind(this), true);
49 49
50 this._overviewGrid.setResizeEnabled(false); 50 this._overviewGrid.setResizeEnabled(false);
51 this._overviewGrid.addEventListener(PerfUI.OverviewGrid.Events.WindowChanged , this._onWindowChanged, this); 51 this._overviewGrid.addEventListener(PerfUI.OverviewGrid.Events.WindowChanged , this._onWindowChanged, this);
52 this._overviewGrid.setClickHandler(this._onClick.bind(this)); 52 this._overviewGrid.setClickHandler(this._onClick.bind(this));
53 this._overviewControls = []; 53 this._overviewControls = [];
54 this._markers = new Map(); 54 this._markers = new Map();
55 55
56 this._popoverHelper = new UI.PopoverHelper(this._cursorArea, this._getPopove rRequest.bind(this)); 56 this._popoverHelper = new UI.PopoverHelper(this._cursorArea, this._getPopove rRequest.bind(this));
57 this._popoverHelper.setHasPadding(true); 57 this._popoverHelper.setHasPadding(true);
58 this._popoverHelper.setTimeout(0); 58 this._popoverHelper.setTimeout(0, 300);
59 59
60 this._updateThrottler = new Common.Throttler(100); 60 this._updateThrottler = new Common.Throttler(100);
61 61
62 this._cursorEnabled = false; 62 this._cursorEnabled = false;
63 this._cursorPosition = 0; 63 this._cursorPosition = 0;
64 this._lastWidth = 0; 64 this._lastWidth = 0;
65 } 65 }
66 66
67 /** 67 /**
68 * @param {!Event} event 68 * @param {!Event} event
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 */ 527 */
528 onClick(event) { 528 onClick(event) {
529 return false; 529 return false;
530 } 530 }
531 531
532 resetCanvas() { 532 resetCanvas() {
533 this._canvas.width = this.element.clientWidth * window.devicePixelRatio; 533 this._canvas.width = this.element.clientWidth * window.devicePixelRatio;
534 this._canvas.height = this.element.clientHeight * window.devicePixelRatio; 534 this._canvas.height = this.element.clientHeight * window.devicePixelRatio;
535 } 535 }
536 }; 536 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/Popover.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698