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

Side by Side Diff: third_party/WebKit/Source/core/css/MediaValues.h

Issue 1738133002: Add support for media attribute on link (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review nits Created 4 years, 9 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MediaValues_h 5 #ifndef MediaValues_h
6 #define MediaValues_h 6 #define MediaValues_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/css/CSSPrimitiveValue.h" 9 #include "core/css/CSSPrimitiveValue.h"
10 #include "public/platform/PointerProperties.h" 10 #include "public/platform/PointerProperties.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual int availablePointerTypes() const = 0; 51 virtual int availablePointerTypes() const = 0;
52 virtual HoverType primaryHoverType() const = 0; 52 virtual HoverType primaryHoverType() const = 0;
53 virtual int availableHoverTypes() const = 0; 53 virtual int availableHoverTypes() const = 0;
54 virtual bool threeDEnabled() const = 0; 54 virtual bool threeDEnabled() const = 0;
55 virtual const String mediaType() const = 0; 55 virtual const String mediaType() const = 0;
56 virtual WebDisplayMode displayMode() const = 0; 56 virtual WebDisplayMode displayMode() const = 0;
57 virtual bool strictMode() const = 0; 57 virtual bool strictMode() const = 0;
58 virtual Document* document() const = 0; 58 virtual Document* document() const = 0;
59 virtual bool hasValues() const = 0; 59 virtual bool hasValues() const = 0;
60 60
61 virtual void overrideViewportDimensions(double width, double height) = 0;
62
61 protected: 63 protected:
62 static double calculateViewportWidth(LocalFrame*); 64 static double calculateViewportWidth(LocalFrame*);
63 static double calculateViewportHeight(LocalFrame*); 65 static double calculateViewportHeight(LocalFrame*);
64 static int calculateDeviceWidth(LocalFrame*); 66 static int calculateDeviceWidth(LocalFrame*);
65 static int calculateDeviceHeight(LocalFrame*); 67 static int calculateDeviceHeight(LocalFrame*);
66 static bool calculateStrictMode(LocalFrame*); 68 static bool calculateStrictMode(LocalFrame*);
67 static float calculateDevicePixelRatio(LocalFrame*); 69 static float calculateDevicePixelRatio(LocalFrame*);
68 static int calculateColorBitsPerComponent(LocalFrame*); 70 static int calculateColorBitsPerComponent(LocalFrame*);
69 static int calculateMonochromeBitsPerComponent(LocalFrame*); 71 static int calculateMonochromeBitsPerComponent(LocalFrame*);
70 static int calculateDefaultFontSize(LocalFrame*); 72 static int calculateDefaultFontSize(LocalFrame*);
71 static const String calculateMediaType(LocalFrame*); 73 static const String calculateMediaType(LocalFrame*);
72 static WebDisplayMode calculateDisplayMode(LocalFrame*); 74 static WebDisplayMode calculateDisplayMode(LocalFrame*);
73 static bool calculateThreeDEnabled(LocalFrame*); 75 static bool calculateThreeDEnabled(LocalFrame*);
74 static PointerType calculatePrimaryPointerType(LocalFrame*); 76 static PointerType calculatePrimaryPointerType(LocalFrame*);
75 static int calculateAvailablePointerTypes(LocalFrame*); 77 static int calculateAvailablePointerTypes(LocalFrame*);
76 static HoverType calculatePrimaryHoverType(LocalFrame*); 78 static HoverType calculatePrimaryHoverType(LocalFrame*);
77 static int calculateAvailableHoverTypes(LocalFrame*); 79 static int calculateAvailableHoverTypes(LocalFrame*);
78 static LocalFrame* frameFrom(Document&); 80 static LocalFrame* frameFrom(Document&);
79 81
80 }; 82 };
81 83
82 } // namespace blink 84 } // namespace blink
83 85
84 #endif // MediaValues_h 86 #endif // MediaValues_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698