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

Side by Side Diff: Source/core/inspector/InspectorCSSAgent.h

Issue 1187073016: DevTools: generalize getPlatformFonts code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: do not dump cssFamilyFontName Created 5 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 | Annotate | Revision Log
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class CSSRule; 46 class CSSRule;
47 class CSSRuleList; 47 class CSSRuleList;
48 class CSSStyleRule; 48 class CSSStyleRule;
49 class CSSStyleSheet; 49 class CSSStyleSheet;
50 class Document; 50 class Document;
51 class Element; 51 class Element;
52 class InspectorFrontend; 52 class InspectorFrontend;
53 class InspectorResourceAgent; 53 class InspectorResourceAgent;
54 class MediaList; 54 class MediaList;
55 class Node; 55 class Node;
56 class LayoutText; 56 class LayoutObject;
57 57
58 class CORE_EXPORT InspectorCSSAgent final 58 class CORE_EXPORT InspectorCSSAgent final
59 : public InspectorBaseAgent<InspectorCSSAgent, InspectorFrontend::CSS> 59 : public InspectorBaseAgent<InspectorCSSAgent, InspectorFrontend::CSS>
60 , public InspectorDOMAgent::DOMListener 60 , public InspectorDOMAgent::DOMListener
61 , public InspectorBackendDispatcher::CSSCommandHandler 61 , public InspectorBackendDispatcher::CSSCommandHandler
62 , public InspectorStyleSheetBase::Listener { 62 , public InspectorStyleSheetBase::Listener {
63 WTF_MAKE_NONCOPYABLE(InspectorCSSAgent); 63 WTF_MAKE_NONCOPYABLE(InspectorCSSAgent);
64 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorCSSAgent); 64 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorCSSAgent);
65 public: 65 public:
66 enum MediaListSource { 66 enum MediaListSource {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 typedef HashMap<int, unsigned> NodeIdToForcedPseudoState; 164 typedef HashMap<int, unsigned> NodeIdToForcedPseudoState;
165 165
166 void wasEnabled(); 166 void wasEnabled();
167 void resetNonPersistentData(); 167 void resetNonPersistentData();
168 InspectorStyleSheetForInlineStyle* asInspectorStyleSheet(Element* element); 168 InspectorStyleSheetForInlineStyle* asInspectorStyleSheet(Element* element);
169 Element* elementForId(ErrorString*, int nodeId); 169 Element* elementForId(ErrorString*, int nodeId);
170 170
171 void updateActiveStyleSheets(Document*, StyleSheetsUpdateType); 171 void updateActiveStyleSheets(Document*, StyleSheetsUpdateType);
172 void setActiveStyleSheets(Document*, const WillBeHeapVector<RawPtrWillBeMemb er<CSSStyleSheet> >&, StyleSheetsUpdateType); 172 void setActiveStyleSheets(Document*, const WillBeHeapVector<RawPtrWillBeMemb er<CSSStyleSheet> >&, StyleSheetsUpdateType);
173 173
174 void collectPlatformFontsForLayoutObject(LayoutText*, HashCountedSet<String> *); 174 void collectPlatformFontsForLayoutObject(LayoutObject*, HashCountedSet<Strin g>*);
175 175
176 InspectorStyleSheet* bindStyleSheet(CSSStyleSheet*); 176 InspectorStyleSheet* bindStyleSheet(CSSStyleSheet*);
177 String unbindStyleSheet(InspectorStyleSheet*); 177 String unbindStyleSheet(InspectorStyleSheet*);
178 InspectorStyleSheet* viaInspectorStyleSheet(Document*, bool createIfAbsent); 178 InspectorStyleSheet* viaInspectorStyleSheet(Document*, bool createIfAbsent);
179 InspectorStyleSheet* assertInspectorStyleSheetForId(ErrorString*, const Stri ng&); 179 InspectorStyleSheet* assertInspectorStyleSheetForId(ErrorString*, const Stri ng&);
180 InspectorStyleSheetBase* assertStyleSheetForId(ErrorString*, const String&); 180 InspectorStyleSheetBase* assertStyleSheetForId(ErrorString*, const String&);
181 TypeBuilder::CSS::StyleSheetOrigin::Enum detectOrigin(CSSStyleSheet* pageSty leSheet, Document* ownerDocument); 181 TypeBuilder::CSS::StyleSheetOrigin::Enum detectOrigin(CSSStyleSheet* pageSty leSheet, Document* ownerDocument);
182 bool styleSheetEditInProgress() const { return m_styleSheetsPendingMutation || m_styleDeclarationPendingMutation || m_isSettingStyleSheetText; } 182 bool styleSheetEditInProgress() const { return m_styleSheetsPendingMutation || m_styleDeclarationPendingMutation || m_isSettingStyleSheetText; }
183 183
184 PassRefPtr<TypeBuilder::CSS::CSSRule> buildObjectForRule(CSSStyleRule*); 184 PassRefPtr<TypeBuilder::CSS::CSSRule> buildObjectForRule(CSSStyleRule*);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 bool m_isSettingStyleSheetText; 223 bool m_isSettingStyleSheetText;
224 224
225 friend class InspectorResourceContentLoaderCallback; 225 friend class InspectorResourceContentLoaderCallback;
226 friend class StyleSheetBinder; 226 friend class StyleSheetBinder;
227 }; 227 };
228 228
229 229
230 } // namespace blink 230 } // namespace blink
231 231
232 #endif // !defined(InspectorCSSAgent_h) 232 #endif // !defined(InspectorCSSAgent_h)
OLDNEW
« no previous file with comments | « LayoutTests/inspector-protocol/css/css-get-platform-fonts-expected.txt ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698