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

Side by Side Diff: Source/devtools/front_end/resources/DatabaseTableView.js

Issue 720223002: DevTools: only allow status bar items in status bars. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined Created 6 years, 1 month 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 29 matching lines...) Expand all
40 this.refreshButton = new WebInspector.StatusBarButton(WebInspector.UIString( "Refresh"), "refresh-storage-status-bar-item"); 40 this.refreshButton = new WebInspector.StatusBarButton(WebInspector.UIString( "Refresh"), "refresh-storage-status-bar-item");
41 this.refreshButton.addEventListener("click", this._refreshButtonClicked, thi s); 41 this.refreshButton.addEventListener("click", this._refreshButtonClicked, thi s);
42 } 42 }
43 43
44 WebInspector.DatabaseTableView.prototype = { 44 WebInspector.DatabaseTableView.prototype = {
45 wasShown: function() 45 wasShown: function()
46 { 46 {
47 this.update(); 47 this.update();
48 }, 48 },
49 49
50 get statusBarItems() 50 /**
51 * @return {!Array.<!WebInspector.StatusBarItem>}
52 */
53 statusBarItems: function()
51 { 54 {
52 return [this.refreshButton.element]; 55 return [this.refreshButton];
53 }, 56 },
54 57
55 /** 58 /**
56 * @param {string} tableName 59 * @param {string} tableName
57 * @return {string} 60 * @return {string}
58 */ 61 */
59 _escapeTableName: function(tableName) 62 _escapeTableName: function(tableName)
60 { 63 {
61 return tableName.replace(/\"/g, "\"\""); 64 return tableName.replace(/\"/g, "\"\"");
62 }, 65 },
(...skipping 29 matching lines...) Expand all
92 this.element.appendChild(errorMsgElement); 95 this.element.appendChild(errorMsgElement);
93 }, 96 },
94 97
95 _refreshButtonClicked: function(event) 98 _refreshButtonClicked: function(event)
96 { 99 {
97 this.update(); 100 this.update();
98 }, 101 },
99 102
100 __proto__: WebInspector.VBox.prototype 103 __proto__: WebInspector.VBox.prototype
101 } 104 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/resources/DatabaseQueryView.js ('k') | Source/devtools/front_end/resources/FileSystemView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698