OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |