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

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

Issue 334283004: Rename DOMWindow to LocalDOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/DOMWindow.cpp ('k') | Source/core/frame/DOMWindowLifecycleNotifier.cpp » ('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) 2013 Google Inc. All Rights Reserved. 2 * Copyright (C) 2013 Google 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 16 matching lines...) Expand all
27 #define DOMWindowLifecycleNotifier_h 27 #define DOMWindowLifecycleNotifier_h
28 28
29 #include "core/frame/DOMWindowLifecycleObserver.h" 29 #include "core/frame/DOMWindowLifecycleObserver.h"
30 #include "platform/LifecycleNotifier.h" 30 #include "platform/LifecycleNotifier.h"
31 #include "wtf/PassOwnPtr.h" 31 #include "wtf/PassOwnPtr.h"
32 #include "wtf/TemporaryChange.h" 32 #include "wtf/TemporaryChange.h"
33 #include "wtf/text/WTFString.h" 33 #include "wtf/text/WTFString.h"
34 34
35 namespace WebCore { 35 namespace WebCore {
36 36
37 class DOMWindow; 37 class LocalDOMWindow;
38 38
39 class DOMWindowLifecycleNotifier FINAL : public LifecycleNotifier<DOMWindow> { 39 class DOMWindowLifecycleNotifier FINAL : public LifecycleNotifier<LocalDOMWindow > {
40 public: 40 public:
41 static PassOwnPtr<DOMWindowLifecycleNotifier> create(DOMWindow*); 41 static PassOwnPtr<DOMWindowLifecycleNotifier> create(LocalDOMWindow*);
42 42
43 void notifyAddEventListener(DOMWindow*, const AtomicString& eventType); 43 void notifyAddEventListener(LocalDOMWindow*, const AtomicString& eventType);
44 void notifyRemoveEventListener(DOMWindow*, const AtomicString& eventType); 44 void notifyRemoveEventListener(LocalDOMWindow*, const AtomicString& eventTyp e);
45 void notifyRemoveAllEventListeners(DOMWindow*); 45 void notifyRemoveAllEventListeners(LocalDOMWindow*);
46 46
47 virtual void addObserver(Observer*) OVERRIDE; 47 virtual void addObserver(Observer*) OVERRIDE;
48 virtual void removeObserver(Observer*) OVERRIDE; 48 virtual void removeObserver(Observer*) OVERRIDE;
49 49
50 private: 50 private:
51 explicit DOMWindowLifecycleNotifier(DOMWindow*); 51 explicit DOMWindowLifecycleNotifier(LocalDOMWindow*);
52 52
53 typedef HashSet<DOMWindowLifecycleObserver*> DOMWindowObserverSet; 53 typedef HashSet<DOMWindowLifecycleObserver*> DOMWindowObserverSet;
54 DOMWindowObserverSet m_windowObservers; 54 DOMWindowObserverSet m_windowObservers;
55 }; 55 };
56 56
57 } // namespace WebCore 57 } // namespace WebCore
58 58
59 #endif // DOMWindowLifecycleNotifier_h 59 #endif // DOMWindowLifecycleNotifier_h
OLDNEW
« no previous file with comments | « Source/core/frame/DOMWindow.cpp ('k') | Source/core/frame/DOMWindowLifecycleNotifier.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698