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

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

Issue 206313004: DevTools: Rename WebInspector.DOMAgent into WebInspector.DOMModel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 6 years, 9 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
« no previous file with comments | « Source/devtools/front_end/ScreencastView.js ('k') | Source/devtools/front_end/Target.js » ('j') | 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 this._sectionsContainer = document.createElement("div"); 61 this._sectionsContainer = document.createElement("div");
62 this.bodyElement.appendChild(this._sectionsContainer); 62 this.bodyElement.appendChild(this._sectionsContainer);
63 63
64 this._spectrumHelper = new WebInspector.SpectrumPopupHelper(); 64 this._spectrumHelper = new WebInspector.SpectrumPopupHelper();
65 this._linkifier = new WebInspector.Linkifier(new WebInspector.Linkifier.Defa ultCSSFormatter()); 65 this._linkifier = new WebInspector.Linkifier(new WebInspector.Linkifier.Defa ultCSSFormatter());
66 66
67 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Sty leSheetAdded, this._styleSheetOrMediaQueryResultChanged, this); 67 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Sty leSheetAdded, this._styleSheetOrMediaQueryResultChanged, this);
68 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Sty leSheetRemoved, this._styleSheetOrMediaQueryResultChanged, this); 68 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Sty leSheetRemoved, this._styleSheetOrMediaQueryResultChanged, this);
69 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Sty leSheetChanged, this._styleSheetOrMediaQueryResultChanged, this); 69 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Sty leSheetChanged, this._styleSheetOrMediaQueryResultChanged, this);
70 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Med iaQueryResultChanged, this._styleSheetOrMediaQueryResultChanged, this); 70 WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.Med iaQueryResultChanged, this._styleSheetOrMediaQueryResultChanged, this);
71 WebInspector.domAgent.addEventListener(WebInspector.DOMAgent.Events.AttrModi fied, this._attributeChanged, this); 71 WebInspector.domModel.addEventListener(WebInspector.DOMModel.Events.AttrModi fied, this._attributeChanged, this);
72 WebInspector.domAgent.addEventListener(WebInspector.DOMAgent.Events.AttrRemo ved, this._attributeChanged, this); 72 WebInspector.domModel.addEventListener(WebInspector.DOMModel.Events.AttrRemo ved, this._attributeChanged, this);
73 WebInspector.settings.showUserAgentStyles.addChangeListener(this._showUserAg entStylesSettingChanged.bind(this)); 73 WebInspector.settings.showUserAgentStyles.addChangeListener(this._showUserAg entStylesSettingChanged.bind(this));
74 WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeMod el.EventTypes.FrameResized, this._frameResized, this); 74 WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeMod el.EventTypes.FrameResized, this._frameResized, this);
75 this.element.classList.add("styles-pane"); 75 this.element.classList.add("styles-pane");
76 this.element.classList.toggle("show-user-styles", WebInspector.settings.show UserAgentStyles.get()); 76 this.element.classList.toggle("show-user-styles", WebInspector.settings.show UserAgentStyles.get());
77 this.element.addEventListener("mousemove", this._mouseMovedOverElement.bind( this), false); 77 this.element.addEventListener("mousemove", this._mouseMovedOverElement.bind( this), false);
78 document.body.addEventListener("keydown", this._keyDown.bind(this), false); 78 document.body.addEventListener("keydown", this._keyDown.bind(this), false);
79 document.body.addEventListener("keyup", this._keyUp.bind(this), false); 79 document.body.addEventListener("keyup", this._keyUp.bind(this), false);
80 } 80 }
81 81
82 // Keep in sync with RenderStyleConstants.h PseudoId enum. Array below contains pseudo id names for corresponding enum indexes. 82 // Keep in sync with RenderStyleConstants.h PseudoId enum. Array below contains pseudo id names for corresponding enum indexes.
(...skipping 2951 matching lines...) Expand 10 before | Expand all | Expand 10 after
3034 return; 3034 return;
3035 } 3035 }
3036 3036
3037 var results = this._cssCompletions.startsWith(prefix); 3037 var results = this._cssCompletions.startsWith(prefix);
3038 var selectedIndex = this._cssCompletions.mostUsedOf(results); 3038 var selectedIndex = this._cssCompletions.mostUsedOf(results);
3039 completionsReadyCallback(results, selectedIndex); 3039 completionsReadyCallback(results, selectedIndex);
3040 }, 3040 },
3041 3041
3042 __proto__: WebInspector.TextPrompt.prototype 3042 __proto__: WebInspector.TextPrompt.prototype
3043 } 3043 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ScreencastView.js ('k') | Source/devtools/front_end/Target.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698