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

Side by Side Diff: Source/core/page/Screen.h

Issue 14408004: Fix incorrect evaluation of resolution media queries (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 25 matching lines...) Expand all
36 #include <wtf/RefCounted.h> 36 #include <wtf/RefCounted.h>
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 class Frame; 40 class Frame;
41 41
42 class Screen : public ScriptWrappable, public RefCounted<Screen>, public DOM WindowProperty { 42 class Screen : public ScriptWrappable, public RefCounted<Screen>, public DOM WindowProperty {
43 public: 43 public:
44 static PassRefPtr<Screen> create(Frame *frame) { return adoptRef(new Scr een(frame)); } 44 static PassRefPtr<Screen> create(Frame *frame) { return adoptRef(new Scr een(frame)); }
45 45
46 unsigned horizontalDPI() const;
47 unsigned verticalDPI() const;
48 unsigned height() const; 46 unsigned height() const;
49 unsigned width() const; 47 unsigned width() const;
50 unsigned colorDepth() const; 48 unsigned colorDepth() const;
51 unsigned pixelDepth() const; 49 unsigned pixelDepth() const;
52 int availLeft() const; 50 int availLeft() const;
53 int availTop() const; 51 int availTop() const;
54 unsigned availHeight() const; 52 unsigned availHeight() const;
55 unsigned availWidth() const; 53 unsigned availWidth() const;
56 54
57 private: 55 private:
58 explicit Screen(Frame*); 56 explicit Screen(Frame*);
59 }; 57 };
60 58
61 } // namespace WebCore 59 } // namespace WebCore
62 60
63 #endif // Screen_h 61 #endif // Screen_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698