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

Side by Side Diff: third_party/WebKit/Source/core/frame/Screen.h

Issue 2150443002: Supplement should have a Member to the corresponding Supplementable object (Part 1) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 4 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 14 matching lines...) Expand all
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 29
30 #ifndef Screen_h 30 #ifndef Screen_h
31 #define Screen_h 31 #define Screen_h
32 32
33 #include "bindings/core/v8/ScriptWrappable.h" 33 #include "bindings/core/v8/ScriptWrappable.h"
34 #include "core/frame/DOMWindowProperty.h" 34 #include "core/frame/DOMWindowProperty.h"
35 #include "core/workers/WorkerNavigator.h"
35 #include "platform/Supplementable.h" 36 #include "platform/Supplementable.h"
36 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
37 38
38 namespace blink { 39 namespace blink {
39 40
40 class LocalFrame; 41 class LocalFrame;
41 42
42 class Screen final : public GarbageCollected<Screen>, public ScriptWrappable, pu blic DOMWindowProperty, public Supplementable<Screen> { 43 class CORE_EXPORT Screen final : public GarbageCollected<Screen>, public ScriptW rappable, public DOMWindowProperty, public Supplementable<Screen> {
43 DEFINE_WRAPPERTYPEINFO(); 44 DEFINE_WRAPPERTYPEINFO();
44 USING_GARBAGE_COLLECTED_MIXIN(Screen); 45 USING_GARBAGE_COLLECTED_MIXIN(Screen);
45 public: 46 public:
46 static Screen* create(LocalFrame* frame) 47 static Screen* create(LocalFrame* frame)
47 { 48 {
48 return new Screen(frame); 49 return new Screen(frame);
49 } 50 }
50 51
51 int height() const; 52 int height() const;
52 int width() const; 53 int width() const;
53 unsigned colorDepth() const; 54 unsigned colorDepth() const;
54 unsigned pixelDepth() const; 55 unsigned pixelDepth() const;
55 int availLeft() const; 56 int availLeft() const;
56 int availTop() const; 57 int availTop() const;
57 int availHeight() const; 58 int availHeight() const;
58 int availWidth() const; 59 int availWidth() const;
59 60
60 DECLARE_VIRTUAL_TRACE(); 61 DECLARE_VIRTUAL_TRACE();
61 62
62 private: 63 private:
63 explicit Screen(LocalFrame*); 64 explicit Screen(LocalFrame*);
64 }; 65 };
65 66
66 } // namespace blink 67 } // namespace blink
67 68
68 #endif // Screen_h 69 #endif // Screen_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698