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

Side by Side Diff: Source/devtools/front_end/elements/StylesSidebarPane.js

Issue 476803002: DevTools: [SSP] synchronize pseudoIds in styles sidebar pane with blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 this.element.addEventListener("mousemove", this._mouseMovedOverElement.bind( this), false); 70 this.element.addEventListener("mousemove", this._mouseMovedOverElement.bind( this), false);
71 document.body.addEventListener("keydown", this._keyDown.bind(this), false); 71 document.body.addEventListener("keydown", this._keyDown.bind(this), false);
72 document.body.addEventListener("keyup", this._keyUp.bind(this), false); 72 document.body.addEventListener("keyup", this._keyUp.bind(this), false);
73 } 73 }
74 74
75 // Keep in sync with RenderStyleConstants.h PseudoId enum. Array below contains pseudo id names for corresponding enum indexes. 75 // Keep in sync with RenderStyleConstants.h PseudoId enum. Array below contains pseudo id names for corresponding enum indexes.
76 // First item is empty due to its artificial NOPSEUDO nature in the enum. 76 // First item is empty due to its artificial NOPSEUDO nature in the enum.
77 // FIXME: find a way of generating this mapping or getting it from combination o f RenderStyleConstants and CSSSelector.cpp at 77 // FIXME: find a way of generating this mapping or getting it from combination o f RenderStyleConstants and CSSSelector.cpp at
78 // runtime. 78 // runtime.
79 WebInspector.StylesSidebarPane.PseudoIdNames = [ 79 WebInspector.StylesSidebarPane.PseudoIdNames = [
80 "", "first-line", "first-letter", "before", "after", "selection", "", "-webk it-scrollbar", "-webkit-file-upload-button", 80 "", "first-line", "first-letter", "before", "after", "backdrop", "selection" , "", "-webkit-scrollbar",
81 "-webkit-input-placeholder", "-webkit-slider-thumb", "-webkit-search-cancel- button", "-webkit-search-decoration", 81 "-webkit-scrollbar-thumb", "-webkit-scrollbar-button", "-webkit-scrollbar-tr ack", "-webkit-scrollbar-track-piece",
82 "-webkit-search-results-decoration", "-webkit-search-results-button", "-webk it-media-controls-panel", 82 "-webkit-scrollbar-corner", "-webkit-resizer"
83 "-webkit-media-controls-play-button", "-webkit-media-controls-mute-button", "-webkit-media-controls-timeline",
84 "-webkit-media-controls-timeline-container", "-webkit-media-controls-volume- slider",
85 "-webkit-media-controls-volume-slider-container", "-webkit-media-controls-cu rrent-time-display",
86 "-webkit-media-controls-time-remaining-display", "-webkit-media-controls-ful lscreen-button",
87 "-webkit-media-controls-toggle-closed-captions-button", "-webkit-media-contr ols-status-display", "-webkit-scrollbar-thumb",
88 "-webkit-scrollbar-button", "-webkit-scrollbar-track", "-webkit-scrollbar-tr ack-piece", "-webkit-scrollbar-corner",
89 "-webkit-resizer", "-webkit-inner-spin-button", "-webkit-outer-spin-button"
90 ]; 83 ];
91 84
92 WebInspector.StylesSidebarPane._colorRegex = /((?:rgb|hsl)a?\([^)]+\)|#[0-9a-fA- F]{6}|#[0-9a-fA-F]{3}|\b\w+\b(?!-))/g; 85 WebInspector.StylesSidebarPane._colorRegex = /((?:rgb|hsl)a?\([^)]+\)|#[0-9a-fA- F]{6}|#[0-9a-fA-F]{3}|\b\w+\b(?!-))/g;
93 86
94 /** 87 /**
95 * @param {!WebInspector.CSSProperty} property 88 * @param {!WebInspector.CSSProperty} property
96 * @return {!Element} 89 * @return {!Element}
97 */ 90 */
98 WebInspector.StylesSidebarPane.createExclamationMark = function(property) 91 WebInspector.StylesSidebarPane.createExclamationMark = function(property)
99 { 92 {
(...skipping 3258 matching lines...) Expand 10 before | Expand all | Expand 10 after
3358 if (userEnteredText && (userEnteredText === userEnteredText.toUpperCase( ))) { 3351 if (userEnteredText && (userEnteredText === userEnteredText.toUpperCase( ))) {
3359 for (var i = 0; i < results.length; ++i) 3352 for (var i = 0; i < results.length; ++i)
3360 results[i] = results[i].toUpperCase(); 3353 results[i] = results[i].toUpperCase();
3361 } 3354 }
3362 var selectedIndex = this._cssCompletions.mostUsedOf(results); 3355 var selectedIndex = this._cssCompletions.mostUsedOf(results);
3363 completionsReadyCallback(results, selectedIndex); 3356 completionsReadyCallback(results, selectedIndex);
3364 }, 3357 },
3365 3358
3366 __proto__: WebInspector.TextPrompt.prototype 3359 __proto__: WebInspector.TextPrompt.prototype
3367 } 3360 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698