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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp

Issue 2012753003: DevTools: consolidate protocol generators for front-end, backend and type builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google 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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 604
605 // static 605 // static
606 CSSMediaRule* InspectorCSSAgent::asCSSMediaRule(CSSRule* rule) 606 CSSMediaRule* InspectorCSSAgent::asCSSMediaRule(CSSRule* rule)
607 { 607 {
608 if (!rule || rule->type() != CSSRule::MEDIA_RULE) 608 if (!rule || rule->type() != CSSRule::MEDIA_RULE)
609 return nullptr; 609 return nullptr;
610 return toCSSMediaRule(rule); 610 return toCSSMediaRule(rule);
611 } 611 }
612 612
613 InspectorCSSAgent::InspectorCSSAgent(InspectorDOMAgent* domAgent, InspectedFrame s* inspectedFrames, InspectorResourceAgent* resourceAgent, InspectorResourceCont entLoader* resourceContentLoader, InspectorResourceContainer* resourceContainer) 613 InspectorCSSAgent::InspectorCSSAgent(InspectorDOMAgent* domAgent, InspectedFrame s* inspectedFrames, InspectorResourceAgent* resourceAgent, InspectorResourceCont entLoader* resourceContentLoader, InspectorResourceContainer* resourceContainer)
614 : InspectorBaseAgent<InspectorCSSAgent, protocol::CSS::Frontend>("CSS") 614 : m_domAgent(domAgent)
615 , m_domAgent(domAgent)
616 , m_inspectedFrames(inspectedFrames) 615 , m_inspectedFrames(inspectedFrames)
617 , m_resourceAgent(resourceAgent) 616 , m_resourceAgent(resourceAgent)
618 , m_resourceContentLoader(resourceContentLoader) 617 , m_resourceContentLoader(resourceContentLoader)
619 , m_resourceContainer(resourceContainer) 618 , m_resourceContainer(resourceContainer)
620 , m_creatingViaInspectorStyleSheet(false) 619 , m_creatingViaInspectorStyleSheet(false)
621 , m_isSettingStyleSheetText(false) 620 , m_isSettingStyleSheetText(false)
622 , m_resourceContentLoaderClientId(resourceContentLoader->createClientId()) 621 , m_resourceContentLoaderClientId(resourceContentLoader->createClientId())
623 { 622 {
624 } 623 }
625 624
(...skipping 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after
2074 visitor->trace(m_cssStyleSheetToInspectorStyleSheet); 2073 visitor->trace(m_cssStyleSheetToInspectorStyleSheet);
2075 visitor->trace(m_documentToCSSStyleSheets); 2074 visitor->trace(m_documentToCSSStyleSheets);
2076 visitor->trace(m_invalidatedDocuments); 2075 visitor->trace(m_invalidatedDocuments);
2077 visitor->trace(m_nodeToInspectorStyleSheet); 2076 visitor->trace(m_nodeToInspectorStyleSheet);
2078 visitor->trace(m_documentToViaInspectorStyleSheet); 2077 visitor->trace(m_documentToViaInspectorStyleSheet);
2079 visitor->trace(m_inspectorUserAgentStyleSheet); 2078 visitor->trace(m_inspectorUserAgentStyleSheet);
2080 InspectorBaseAgent::trace(visitor); 2079 InspectorBaseAgent::trace(visitor);
2081 } 2080 }
2082 2081
2083 } // namespace blink 2082 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698