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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/source_frame/ImageView.js

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 WebInspector.ImageView.prototype = { 49 WebInspector.ImageView.prototype = {
50 /** 50 /**
51 * @override 51 * @override
52 * @return {!Array<!WebInspector.ToolbarItem>} 52 * @return {!Array<!WebInspector.ToolbarItem>}
53 */ 53 */
54 syncToolbarItems: function() 54 syncToolbarItems: function()
55 { 55 {
56 return [this._sizeLabel, new WebInspector.ToolbarSeparator(), this._dime nsionsLabel, new WebInspector.ToolbarSeparator(), this._mimeTypeLabel]; 56 return [this._sizeLabel, new WebInspector.ToolbarSeparator(), this._dime nsionsLabel, new WebInspector.ToolbarSeparator(), this._mimeTypeLabel];
57 }, 57 },
58 58
59 /**
60 * @override
61 */
59 wasShown: function() 62 wasShown: function()
60 { 63 {
61 this._createContentIfNeeded(); 64 this._createContentIfNeeded();
62 }, 65 },
63 66
64 _createContentIfNeeded: function() 67 _createContentIfNeeded: function()
65 { 68 {
66 if (this._container) 69 if (this._container)
67 return; 70 return;
68 71
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 link.click(); 137 link.click();
135 }, 138 },
136 139
137 _openInNewTab: function() 140 _openInNewTab: function()
138 { 141 {
139 InspectorFrontendHost.openInNewTab(this._url); 142 InspectorFrontendHost.openInNewTab(this._url);
140 }, 143 },
141 144
142 __proto__: WebInspector.SimpleView.prototype 145 __proto__: WebInspector.SimpleView.prototype
143 }; 146 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698