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

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

Issue 1574213006: DevTools: beautified styles sidebar toolbar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed. Created 4 years, 11 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
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 23 matching lines...) Expand all
34 */ 34 */
35 WebInspector.ImageView = function(mimeType, contentProvider) 35 WebInspector.ImageView = function(mimeType, contentProvider)
36 { 36 {
37 WebInspector.VBoxWithToolbarItems.call(this); 37 WebInspector.VBoxWithToolbarItems.call(this);
38 this.registerRequiredCSS("source_frame/imageView.css"); 38 this.registerRequiredCSS("source_frame/imageView.css");
39 this.element.classList.add("image-view"); 39 this.element.classList.add("image-view");
40 this._url = contentProvider.contentURL(); 40 this._url = contentProvider.contentURL();
41 this._parsedURL = new WebInspector.ParsedURL(this._url); 41 this._parsedURL = new WebInspector.ParsedURL(this._url);
42 this._mimeType = mimeType; 42 this._mimeType = mimeType;
43 this._contentProvider = contentProvider; 43 this._contentProvider = contentProvider;
44 this._sizeLabel = new WebInspector.ToolbarLabel(); 44 this._sizeLabel = new WebInspector.ToolbarText();
45 this._dimensionsLabel = new WebInspector.ToolbarLabel(); 45 this._dimensionsLabel = new WebInspector.ToolbarText();
46 this._mimeTypeLabel = new WebInspector.ToolbarLabel(mimeType); 46 this._mimeTypeLabel = new WebInspector.ToolbarText(mimeType);
47 } 47 }
48 48
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 toolbarItems: function() 54 toolbarItems: 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];
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 InspectorFrontendHost.copyText(this._url); 121 InspectorFrontendHost.copyText(this._url);
122 }, 122 },
123 123
124 _openInNewTab: function() 124 _openInNewTab: function()
125 { 125 {
126 InspectorFrontendHost.openInNewTab(this._url); 126 InspectorFrontendHost.openInNewTab(this._url);
127 }, 127 },
128 128
129 __proto__: WebInspector.VBoxWithToolbarItems.prototype 129 __proto__: WebInspector.VBoxWithToolbarItems.prototype
130 } 130 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698