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

Side by Side Diff: Source/core/frame/DOMWindow.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/DOMTimer.h ('k') | Source/core/frame/DOMWindowLifecycleNotifier.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) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 typedef Vector<RefPtr<MessagePort>, 1> MessagePortArray; 83 typedef Vector<RefPtr<MessagePort>, 1> MessagePortArray;
84 84
85 enum PageshowEventPersistence { 85 enum PageshowEventPersistence {
86 PageshowEventNotPersisted = 0, 86 PageshowEventNotPersisted = 0,
87 PageshowEventPersisted = 1 87 PageshowEventPersisted = 1
88 }; 88 };
89 89
90 enum SetLocationLocking { LockHistoryBasedOnGestureState, LockHistoryAndBack ForwardList }; 90 enum SetLocationLocking { LockHistoryBasedOnGestureState, LockHistoryAndBack ForwardList };
91 91
92 class DOMWindow : public RefCounted<DOMWindow>, public ScriptWrappable, publ ic EventTargetWithInlineData, public FrameDestructionObserver, public Supplement able<DOMWindow>, public LifecycleContext<DOMWindow> { 92 class DOMWindow FINAL : public RefCounted<DOMWindow>, public ScriptWrappable , public EventTargetWithInlineData, public FrameDestructionObserver, public Supp lementable<DOMWindow>, public LifecycleContext<DOMWindow> {
93 REFCOUNTED_EVENT_TARGET(DOMWindow); 93 REFCOUNTED_EVENT_TARGET(DOMWindow);
94 public: 94 public:
95 static PassRefPtr<Document> createDocument(const String& mimeType, const DocumentInit&, bool forceXHTML); 95 static PassRefPtr<Document> createDocument(const String& mimeType, const DocumentInit&, bool forceXHTML);
96 static PassRefPtr<DOMWindow> create(Frame* frame) { return adoptRef(new DOMWindow(frame)); } 96 static PassRefPtr<DOMWindow> create(Frame* frame) { return adoptRef(new DOMWindow(frame)); }
97 virtual ~DOMWindow(); 97 virtual ~DOMWindow();
98 98
99 PassRefPtr<Document> installNewDocument(const String& mimeType, const Do cumentInit&, bool forceXHTML = false); 99 PassRefPtr<Document> installNewDocument(const String& mimeType, const Do cumentInit&, bool forceXHTML = false);
100 100
101 virtual const AtomicString& interfaceName() const OVERRIDE; 101 virtual const AtomicString& interfaceName() const OVERRIDE;
102 virtual ExecutionContext* executionContext() const OVERRIDE; 102 virtual ExecutionContext* executionContext() const OVERRIDE;
103 103
104 virtual DOMWindow* toDOMWindow(); 104 virtual DOMWindow* toDOMWindow() OVERRIDE;
105 105
106 void registerProperty(DOMWindowProperty*); 106 void registerProperty(DOMWindowProperty*);
107 void unregisterProperty(DOMWindowProperty*); 107 void unregisterProperty(DOMWindowProperty*);
108 108
109 void reset(); 109 void reset();
110 110
111 PassRefPtr<MediaQueryList> matchMedia(const String&); 111 PassRefPtr<MediaQueryList> matchMedia(const String&);
112 112
113 unsigned pendingUnloadEventListeners() const; 113 unsigned pendingUnloadEventListeners() const;
114 114
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 } 381 }
382 382
383 inline String DOMWindow::defaultStatus() const 383 inline String DOMWindow::defaultStatus() const
384 { 384 {
385 return m_defaultStatus; 385 return m_defaultStatus;
386 } 386 }
387 387
388 } // namespace WebCore 388 } // namespace WebCore
389 389
390 #endif // DOMWindow_h 390 #endif // DOMWindow_h
OLDNEW
« no previous file with comments | « Source/core/frame/DOMTimer.h ('k') | Source/core/frame/DOMWindowLifecycleNotifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698