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

Side by Side Diff: third_party/WebKit/Source/core/editing/DOMSelection.h

Issue 2593983002: Replace DOMWindowProperty in core/ with ContextClient (Closed)
Patch Set: temp Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google Inc. All rights reserved.
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 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 13 matching lines...) Expand all
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 #ifndef DOMSelection_h 30 #ifndef DOMSelection_h
31 #define DOMSelection_h 31 #define DOMSelection_h
32 32
33 #include "bindings/core/v8/ScriptWrappable.h" 33 #include "bindings/core/v8/ScriptWrappable.h"
34 #include "core/dom/ContextLifecycleObserver.h"
34 #include "core/editing/Position.h" 35 #include "core/editing/Position.h"
35 #include "core/editing/VisibleSelection.h" 36 #include "core/editing/VisibleSelection.h"
36 #include "core/frame/DOMWindowProperty.h"
37 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
38 #include "wtf/Forward.h" 38 #include "wtf/Forward.h"
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class ExceptionState; 42 class ExceptionState;
43 class Node; 43 class Node;
44 class Range; 44 class Range;
45 class TreeScope; 45 class TreeScope;
46 46
47 class CORE_EXPORT DOMSelection final : public GarbageCollected<DOMSelection>, 47 class CORE_EXPORT DOMSelection final : public GarbageCollected<DOMSelection>,
48 public ScriptWrappable, 48 public ScriptWrappable,
49 public DOMWindowProperty { 49 public ContextClient {
50 DEFINE_WRAPPERTYPEINFO(); 50 DEFINE_WRAPPERTYPEINFO();
51 USING_GARBAGE_COLLECTED_MIXIN(DOMSelection); 51 USING_GARBAGE_COLLECTED_MIXIN(DOMSelection);
52 52
53 public: 53 public:
54 static DOMSelection* create(const TreeScope* treeScope) { 54 static DOMSelection* create(const TreeScope* treeScope) {
55 return new DOMSelection(treeScope); 55 return new DOMSelection(treeScope);
56 } 56 }
57 57
58 void clearTreeScope(); 58 void clearTreeScope();
59 59
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 bool isValidForPosition(Node*) const; 117 bool isValidForPosition(Node*) const;
118 118
119 void addConsoleError(const String& message); 119 void addConsoleError(const String& message);
120 120
121 Member<const TreeScope> m_treeScope; 121 Member<const TreeScope> m_treeScope;
122 }; 122 };
123 123
124 } // namespace blink 124 } // namespace blink
125 125
126 #endif // DOMSelection_h 126 #endif // DOMSelection_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleMedia.cpp ('k') | third_party/WebKit/Source/core/editing/DOMSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698