| 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 25 matching lines...) Expand all Loading... |
| 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 |
| OLD | NEW |