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

Unified Diff: Source/core/page/PageGroup.h

Issue 25505007: Remove bogus use of the term "user style" in Blink and Blink API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/InjectedStyleSheet.h ('k') | Source/core/page/PageGroup.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/PageGroup.h
diff --git a/Source/core/page/PageGroup.h b/Source/core/page/PageGroup.h
index c10f83a4b4b7bb1b94c4b8ece0711bc8ba31fcb9..3d38f1914ab0e0a43323cfccfa7566e630c203d0 100644
--- a/Source/core/page/PageGroup.h
+++ b/Source/core/page/PageGroup.h
@@ -26,7 +26,7 @@
#ifndef PageGroup_h
#define PageGroup_h
-#include "core/page/UserStyleSheet.h"
+#include "core/page/InjectedStyleSheet.h"
#include "core/platform/Supplementable.h"
#include "wtf/HashSet.h"
#include "wtf/Noncopyable.h"
@@ -53,15 +53,10 @@ namespace WebCore {
void addPage(Page*);
void removePage(Page*);
- void addUserStyleSheet(const String& source, const KURL&,
- const Vector<String>& whitelist, const Vector<String>& blacklist,
- UserContentInjectedFrames,
- UserStyleLevel level = UserStyleUserLevel,
- UserStyleInjectionTime injectionTime = InjectInExistingDocuments);
+ void injectStyleSheet(const String& source, const Vector<String>& whitelist, StyleInjectionTarget);
+ void removeInjectedStyleSheets();
- void removeAllUserContent();
-
- const UserStyleSheetVector& userStyleSheets() const { return m_userStyleSheets; }
+ const InjectedStyleSheetVector& injectedStyleSheets() const { return m_injectedStyleSheets; }
private:
PageGroup();
@@ -69,7 +64,7 @@ namespace WebCore {
void invalidatedInjectedStyleSheetCacheInAllFrames();
HashSet<Page*> m_pages;
- UserStyleSheetVector m_userStyleSheets;
+ InjectedStyleSheetVector m_injectedStyleSheets;
};
} // namespace WebCore
« no previous file with comments | « Source/core/page/InjectedStyleSheet.h ('k') | Source/core/page/PageGroup.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698