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

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

Issue 2916283002: Revert of DevTools: require enabling CSS domain before running CSS.* commands. (Closed)
Patch Set: Created 3 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
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();
285 protocol::Response AssertInspectorStyleSheetForId(const String&, 283 protocol::Response AssertInspectorStyleSheetForId(const String&,
286 InspectorStyleSheet*&); 284 InspectorStyleSheet*&);
287 protocol::Response AssertStyleSheetForId(const String&, 285 protocol::Response AssertStyleSheetForId(const String&,
288 InspectorStyleSheetBase*&); 286 InspectorStyleSheetBase*&);
289 String DetectOrigin(CSSStyleSheet* page_style_sheet, 287 String DetectOrigin(CSSStyleSheet* page_style_sheet,
290 Document* owner_document); 288 Document* owner_document);
291 289
292 std::unique_ptr<protocol::CSS::CSSRule> BuildObjectForRule(CSSStyleRule*); 290 std::unique_ptr<protocol::CSS::CSSRule> BuildObjectForRule(CSSStyleRule*);
293 std::unique_ptr<protocol::CSS::RuleUsage> BuildCoverageInfo(CSSStyleRule*, 291 std::unique_ptr<protocol::CSS::RuleUsage> BuildCoverageInfo(CSSStyleRule*,
294 bool); 292 bool);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 HeapHashSet<Member<Document>> invalidated_documents_; 345 HeapHashSet<Member<Document>> invalidated_documents_;
348 346
349 NodeToInspectorStyleSheet node_to_inspector_style_sheet_; 347 NodeToInspectorStyleSheet node_to_inspector_style_sheet_;
350 NodeIdToForcedPseudoState node_id_to_forced_pseudo_state_; 348 NodeIdToForcedPseudoState node_id_to_forced_pseudo_state_;
351 349
352 Member<StyleRuleUsageTracker> tracker_; 350 Member<StyleRuleUsageTracker> tracker_;
353 351
354 Member<CSSStyleSheet> inspector_user_agent_style_sheet_; 352 Member<CSSStyleSheet> inspector_user_agent_style_sheet_;
355 353
356 int resource_content_loader_client_id_; 354 int resource_content_loader_client_id_;
357 bool was_enabled_ = false;
358 355
359 friend class InspectorResourceContentLoaderCallback; 356 friend class InspectorResourceContentLoaderCallback;
360 friend class StyleSheetBinder; 357 friend class StyleSheetBinder;
361 }; 358 };
362 359
363 } // namespace blink 360 } // namespace blink
364 361
365 #endif // !defined(InspectorCSSAgent_h) 362 #endif // !defined(InspectorCSSAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698