OLD | NEW |
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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 #include "bindings/v8/ScriptWrappable.h" | 33 #include "bindings/v8/ScriptWrappable.h" |
34 #include "core/frame/DOMWindowProperty.h" | 34 #include "core/frame/DOMWindowProperty.h" |
35 #include "wtf/PassRefPtr.h" | 35 #include "wtf/PassRefPtr.h" |
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 FINAL : public ScriptWrappable, public RefCounted<Screen>, publ
ic DOMWindowProperty { |
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 height() const; | 46 unsigned height() const; |
47 unsigned width() const; | 47 unsigned width() const; |
48 unsigned colorDepth() const; | 48 unsigned colorDepth() const; |
49 unsigned pixelDepth() const; | 49 unsigned pixelDepth() const; |
50 int availLeft() const; | 50 int availLeft() const; |
51 int availTop() const; | 51 int availTop() const; |
52 unsigned availHeight() const; | 52 unsigned availHeight() const; |
53 unsigned availWidth() const; | 53 unsigned availWidth() const; |
54 | 54 |
55 private: | 55 private: |
56 explicit Screen(Frame*); | 56 explicit Screen(Frame*); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace WebCore | 59 } // namespace WebCore |
60 | 60 |
61 #endif // Screen_h | 61 #endif // Screen_h |
OLD | NEW |