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

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

Issue 134043004: Update page & frame classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « Source/core/frame/Navigator.h ('k') | Source/core/frame/SuspendableTimer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 21 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « Source/core/frame/Navigator.h ('k') | Source/core/frame/SuspendableTimer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698