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

Unified Diff: third_party/WebKit/Source/core/css/MediaQuery.h

Issue 1729013002: blink: Rename enums and functions to not collide with chromium style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-3: . Created 4 years, 10 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 | « third_party/WebKit/Source/core/css/FontFace.cpp ('k') | third_party/WebKit/Source/core/css/MediaQuery.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/MediaQuery.h
diff --git a/third_party/WebKit/Source/core/css/MediaQuery.h b/third_party/WebKit/Source/core/css/MediaQuery.h
index d5f9b11ee0db535915ac9cf6cb7af77647e66ef2..2820d2d8df50e717dcaaf24d6752259a367f8206 100644
--- a/third_party/WebKit/Source/core/css/MediaQuery.h
+++ b/third_party/WebKit/Source/core/css/MediaQuery.h
@@ -45,16 +45,16 @@ using ExpressionHeapVector = WillBeHeapVector<OwnPtrWillBeMember<MediaQueryExp>>
class CORE_EXPORT MediaQuery : public NoBaseWillBeGarbageCollectedFinalized<MediaQuery> {
USING_FAST_MALLOC_WILL_BE_REMOVED(MediaQuery);
public:
- enum Restrictor {
+ enum RestrictorType {
Only, Not, None
};
- static PassOwnPtrWillBeRawPtr<MediaQuery> create(Restrictor, String mediaType, ExpressionHeapVector);
+ static PassOwnPtrWillBeRawPtr<MediaQuery> create(RestrictorType, String mediaType, ExpressionHeapVector);
static PassOwnPtrWillBeRawPtr<MediaQuery> createNotAll();
~MediaQuery();
- Restrictor restrictor() const { return m_restrictor; }
+ RestrictorType restrictor() const { return m_restrictor; }
const ExpressionHeapVector& expressions() const { return m_expressions; }
const String& mediaType() const { return m_mediaType; }
bool operator==(const MediaQuery& other) const;
@@ -65,12 +65,12 @@ public:
DECLARE_TRACE();
private:
- MediaQuery(Restrictor, String mediaType, ExpressionHeapVector);
+ MediaQuery(RestrictorType, String mediaType, ExpressionHeapVector);
MediaQuery(const MediaQuery&);
MediaQuery& operator=(const MediaQuery&) = delete;
- Restrictor m_restrictor;
+ RestrictorType m_restrictor;
String m_mediaType;
ExpressionHeapVector m_expressions;
String m_serializationCache;
« no previous file with comments | « third_party/WebKit/Source/core/css/FontFace.cpp ('k') | third_party/WebKit/Source/core/css/MediaQuery.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698