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

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

Issue 1314843003: Replace forward class declarations of VisibleSelection to include directive (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-26T14:09:03 Created 5 years, 4 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 | « no previous file | Source/core/editing/EditingStyle.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 * 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 15 matching lines...) Expand all
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 30
31 #ifndef DOMSelection_h 31 #ifndef DOMSelection_h
32 #define DOMSelection_h 32 #define DOMSelection_h
33 33
34 #include "bindings/core/v8/ScriptWrappable.h" 34 #include "bindings/core/v8/ScriptWrappable.h"
35 #include "core/editing/Position.h" 35 #include "core/editing/Position.h"
36 #include "core/editing/VisibleSelection.h"
36 #include "core/frame/DOMWindowProperty.h" 37 #include "core/frame/DOMWindowProperty.h"
37 #include "platform/heap/Handle.h" 38 #include "platform/heap/Handle.h"
38 #include "wtf/Forward.h" 39 #include "wtf/Forward.h"
39 #include "wtf/PassRefPtr.h" 40 #include "wtf/PassRefPtr.h"
40 #include "wtf/RefCounted.h" 41 #include "wtf/RefCounted.h"
41 42
42 namespace blink { 43 namespace blink {
43 44
44 class ExceptionState; 45 class ExceptionState;
45 class Node; 46 class Node;
46 class Range; 47 class Range;
47 class TreeScope; 48 class TreeScope;
48 class VisibleSelection;
49 49
50 class DOMSelection final : public RefCountedWillBeGarbageCollected<DOMSelection> , public ScriptWrappable, public DOMWindowProperty { 50 class DOMSelection final : public RefCountedWillBeGarbageCollected<DOMSelection> , public ScriptWrappable, public DOMWindowProperty {
51 DEFINE_WRAPPERTYPEINFO(); 51 DEFINE_WRAPPERTYPEINFO();
52 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMSelection); 52 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMSelection);
53 public: 53 public:
54 static PassRefPtrWillBeRawPtr<DOMSelection> create(const TreeScope* treeScop e) 54 static PassRefPtrWillBeRawPtr<DOMSelection> create(const TreeScope* treeScop e)
55 { 55 {
56 return adoptRefWillBeNoop(new DOMSelection(treeScope)); 56 return adoptRefWillBeNoop(new DOMSelection(treeScope));
57 } 57 }
58 58
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 bool isValidForPosition(Node*) const; 110 bool isValidForPosition(Node*) const;
111 111
112 void addConsoleError(const String& message); 112 void addConsoleError(const String& message);
113 113
114 RawPtrWillBeMember<const TreeScope> m_treeScope; 114 RawPtrWillBeMember<const TreeScope> m_treeScope;
115 }; 115 };
116 116
117 } // namespace blink 117 } // namespace blink
118 118
119 #endif // DOMSelection_h 119 #endif // DOMSelection_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/EditingStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698