| OLD | NEW |
| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 protected: | 61 protected: |
| 62 static double calculateViewportWidth(LocalFrame*); | 62 double calculateViewportWidth(LocalFrame*) const; |
| 63 static double calculateViewportHeight(LocalFrame*); | 63 double calculateViewportHeight(LocalFrame*) const; |
| 64 static int calculateDeviceWidth(LocalFrame*); | 64 int calculateDeviceWidth(LocalFrame*) const; |
| 65 static int calculateDeviceHeight(LocalFrame*); | 65 int calculateDeviceHeight(LocalFrame*) const; |
| 66 static bool calculateStrictMode(LocalFrame*); | 66 bool calculateStrictMode(LocalFrame*) const; |
| 67 static float calculateDevicePixelRatio(LocalFrame*); | 67 float calculateDevicePixelRatio(LocalFrame*) const; |
| 68 static int calculateColorBitsPerComponent(LocalFrame*); | 68 int calculateColorBitsPerComponent(LocalFrame*) const; |
| 69 static int calculateMonochromeBitsPerComponent(LocalFrame*); | 69 int calculateMonochromeBitsPerComponent(LocalFrame*) const; |
| 70 static int calculateDefaultFontSize(LocalFrame*); | 70 int calculateDefaultFontSize(LocalFrame*) const; |
| 71 static const String calculateMediaType(LocalFrame*); | 71 const String calculateMediaType(LocalFrame*) const; |
| 72 static WebDisplayMode calculateDisplayMode(LocalFrame*); | 72 WebDisplayMode calculateDisplayMode(LocalFrame*) const; |
| 73 static bool calculateThreeDEnabled(LocalFrame*); | 73 bool calculateThreeDEnabled(LocalFrame*) const; |
| 74 static PointerType calculatePrimaryPointerType(LocalFrame*); | 74 PointerType calculatePrimaryPointerType(LocalFrame*) const; |
| 75 static int calculateAvailablePointerTypes(LocalFrame*); | 75 int calculateAvailablePointerTypes(LocalFrame*) const; |
| 76 static HoverType calculatePrimaryHoverType(LocalFrame*); | 76 HoverType calculatePrimaryHoverType(LocalFrame*) const; |
| 77 static int calculateAvailableHoverTypes(LocalFrame*); | 77 int calculateAvailableHoverTypes(LocalFrame*) const; |
| 78 static LocalFrame* frameFrom(Document&); | 78 static LocalFrame* frameFrom(Document&); |
| 79 | 79 |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace blink | 82 } // namespace blink |
| 83 | 83 |
| 84 #endif // MediaValues_h | 84 #endif // MediaValues_h |
| OLD | NEW |