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

Side by Side Diff: Source/core/css/MediaValuesCached.h

Issue 224733011: A sizes attribute parser (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed "final" syntax Created 6 years, 8 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MediaValuesCached_h
6 #define MediaValuesCached_h
7
8 #include "core/css/MediaValues.h"
9
10 namespace WebCore {
11
12 class MediaValuesCached FINAL : public MediaValues {
13 public:
14 static PassRefPtr<MediaValues> create(Document&);
15 static PassRefPtr<MediaValues> create(LocalFrame*, RenderStyle*);
16 static PassRefPtr<MediaValues> create(MediaValuesInitializer&);
17 virtual PassRefPtr<MediaValues> copy() const OVERRIDE;
18 virtual bool isSafeToSendToAnotherThread() const OVERRIDE;
19 virtual bool computeLength(double value, unsigned short type, int& result) c onst OVERRIDE;
20
21 virtual int viewportWidth() const OVERRIDE;
22 virtual int viewportHeight() const OVERRIDE;
23 virtual int deviceWidth() const OVERRIDE;
24 virtual int deviceHeight() const OVERRIDE;
25 virtual float devicePixelRatio() const OVERRIDE;
26 virtual int colorBitsPerComponent() const OVERRIDE;
27 virtual int monochromeBitsPerComponent() const OVERRIDE;
28 virtual PointerDeviceType pointer() const OVERRIDE;
29 virtual bool threeDEnabled() const OVERRIDE;
30 virtual bool scanMediaType() const OVERRIDE;
31 virtual bool screenMediaType() const OVERRIDE;
32 virtual bool printMediaType() const OVERRIDE;
33 virtual bool strictMode() const OVERRIDE;
34 virtual Document* document() const OVERRIDE;
35 virtual bool hasValues() const OVERRIDE;
36
37 protected:
38 MediaValuesCached(LocalFrame*, RenderStyle*);
39 MediaValuesCached(MediaValuesInitializer&);
40
41 // Members variables beyond this point must be thread safe, since they're co pied to the parser thread
42 int m_viewportWidth;
43 int m_viewportHeight;
44 int m_deviceWidth;
45 int m_deviceHeight;
46 float m_devicePixelRatio;
47 int m_colorBitsPerComponent;
48 int m_monochromeBitsPerComponent;
49 PointerDeviceType m_pointer;
50 int m_defaultFontSize;
51 int m_computedFontSize;
52 bool m_hasXHeight;
53 double m_xHeight;
54 double m_zeroWidth;
55 bool m_threeDEnabled;
56 bool m_scanMediaType;
57 bool m_screenMediaType;
58 bool m_printMediaType;
59 bool m_strictMode;
60 };
61
62 } // namespace
63
64 #endif // MediaValuesCached_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698