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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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/dom/shadow/ShadowRoot.h ('k') | Source/core/events/AnimationPlayerEvent.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 class ExceptionState; 43 class ExceptionState;
44 class LocalFrame; 44 class LocalFrame;
45 class Node; 45 class Node;
46 class Position; 46 class Position;
47 class Range; 47 class Range;
48 class TreeScope; 48 class TreeScope;
49 class VisibleSelection; 49 class VisibleSelection;
50 50
51 class DOMSelection FINAL : public RefCountedWillBeGarbageCollectedFinalized<DOMS election>, public ScriptWrappable, public DOMWindowProperty { 51 class DOMSelection FINAL : public RefCountedWillBeGarbageCollectedFinalized<DOMS election>, public ScriptWrappable, public DOMWindowProperty {
52 DEFINE_WRAPPERTYPEINFO();
52 public: 53 public:
53 static PassRefPtrWillBeRawPtr<DOMSelection> create(const TreeScope* treeScop e) 54 static PassRefPtrWillBeRawPtr<DOMSelection> create(const TreeScope* treeScop e)
54 { 55 {
55 return adoptRefWillBeNoop(new DOMSelection(treeScope)); 56 return adoptRefWillBeNoop(new DOMSelection(treeScope));
56 } 57 }
57 58
58 void clearTreeScope(); 59 void clearTreeScope();
59 60
60 // Safari Selection Object API 61 // Safari Selection Object API
61 // These methods return the valid equivalents of internal editing positions. 62 // These methods return the valid equivalents of internal editing positions.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 bool isValidForPosition(Node*) const; 110 bool isValidForPosition(Node*) const;
110 111
111 void addConsoleError(const String& message); 112 void addConsoleError(const String& message);
112 113
113 RawPtrWillBeMember<const TreeScope> m_treeScope; 114 RawPtrWillBeMember<const TreeScope> m_treeScope;
114 }; 115 };
115 116
116 } // namespace blink 117 } // namespace blink
117 118
118 #endif // DOMSelection_h 119 #endif // DOMSelection_h
OLDNEW
« no previous file with comments | « Source/core/dom/shadow/ShadowRoot.h ('k') | Source/core/events/AnimationPlayerEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698