OLD | NEW |
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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 | 273 |
274 void CollectPlatformFontsForLayoutObject( | 274 void CollectPlatformFontsForLayoutObject( |
275 LayoutObject*, | 275 LayoutObject*, |
276 HashCountedSet<std::pair<int, String>>*); | 276 HashCountedSet<std::pair<int, String>>*); |
277 | 277 |
278 InspectorStyleSheet* BindStyleSheet(CSSStyleSheet*); | 278 InspectorStyleSheet* BindStyleSheet(CSSStyleSheet*); |
279 String UnbindStyleSheet(InspectorStyleSheet*); | 279 String UnbindStyleSheet(InspectorStyleSheet*); |
280 InspectorStyleSheet* InspectorStyleSheetForRule(CSSStyleRule*); | 280 InspectorStyleSheet* InspectorStyleSheetForRule(CSSStyleRule*); |
281 | 281 |
282 InspectorStyleSheet* ViaInspectorStyleSheet(Document*); | 282 InspectorStyleSheet* ViaInspectorStyleSheet(Document*); |
| 283 |
| 284 protocol::Response AssertEnabled(); |
283 protocol::Response AssertInspectorStyleSheetForId(const String&, | 285 protocol::Response AssertInspectorStyleSheetForId(const String&, |
284 InspectorStyleSheet*&); | 286 InspectorStyleSheet*&); |
285 protocol::Response AssertStyleSheetForId(const String&, | 287 protocol::Response AssertStyleSheetForId(const String&, |
286 InspectorStyleSheetBase*&); | 288 InspectorStyleSheetBase*&); |
287 String DetectOrigin(CSSStyleSheet* page_style_sheet, | 289 String DetectOrigin(CSSStyleSheet* page_style_sheet, |
288 Document* owner_document); | 290 Document* owner_document); |
289 | 291 |
290 std::unique_ptr<protocol::CSS::CSSRule> BuildObjectForRule(CSSStyleRule*); | 292 std::unique_ptr<protocol::CSS::CSSRule> BuildObjectForRule(CSSStyleRule*); |
291 std::unique_ptr<protocol::CSS::RuleUsage> BuildCoverageInfo(CSSStyleRule*, | 293 std::unique_ptr<protocol::CSS::RuleUsage> BuildCoverageInfo(CSSStyleRule*, |
292 bool); | 294 bool); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 HeapHashSet<Member<Document>> invalidated_documents_; | 347 HeapHashSet<Member<Document>> invalidated_documents_; |
346 | 348 |
347 NodeToInspectorStyleSheet node_to_inspector_style_sheet_; | 349 NodeToInspectorStyleSheet node_to_inspector_style_sheet_; |
348 NodeIdToForcedPseudoState node_id_to_forced_pseudo_state_; | 350 NodeIdToForcedPseudoState node_id_to_forced_pseudo_state_; |
349 | 351 |
350 Member<StyleRuleUsageTracker> tracker_; | 352 Member<StyleRuleUsageTracker> tracker_; |
351 | 353 |
352 Member<CSSStyleSheet> inspector_user_agent_style_sheet_; | 354 Member<CSSStyleSheet> inspector_user_agent_style_sheet_; |
353 | 355 |
354 int resource_content_loader_client_id_; | 356 int resource_content_loader_client_id_; |
| 357 bool was_enabled_ = false; |
355 | 358 |
356 friend class InspectorResourceContentLoaderCallback; | 359 friend class InspectorResourceContentLoaderCallback; |
357 friend class StyleSheetBinder; | 360 friend class StyleSheetBinder; |
358 }; | 361 }; |
359 | 362 |
360 } // namespace blink | 363 } // namespace blink |
361 | 364 |
362 #endif // !defined(InspectorCSSAgent_h) | 365 #endif // !defined(InspectorCSSAgent_h) |
OLD | NEW |