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

Side by Side Diff: sky/engine/core/editing/DOMSelection.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void addRange(Range*); 89 void addRange(Range*);
90 void deleteFromDocument(); 90 void deleteFromDocument();
91 bool containsNode(const Node*, bool partlyContained) const; 91 bool containsNode(const Node*, bool partlyContained) const;
92 void selectAllChildren(Node*, ExceptionState&); 92 void selectAllChildren(Node*, ExceptionState&);
93 93
94 String toString(); 94 String toString();
95 95
96 // Microsoft Selection Object API 96 // Microsoft Selection Object API
97 void empty(); 97 void empty();
98 98
99 void trace(Visitor* visitor) { visitor->trace(m_treeScope); }
100
101 private: 99 private:
102 explicit DOMSelection(const TreeScope*); 100 explicit DOMSelection(const TreeScope*);
103 101
104 // Convenience method for accessors, does not check m_frame present. 102 // Convenience method for accessors, does not check m_frame present.
105 const VisibleSelection& visibleSelection() const; 103 const VisibleSelection& visibleSelection() const;
106 104
107 Node* shadowAdjustedNode(const Position&) const; 105 Node* shadowAdjustedNode(const Position&) const;
108 int shadowAdjustedOffset(const Position&) const; 106 int shadowAdjustedOffset(const Position&) const;
109 107
110 bool isValidForPosition(Node*) const; 108 bool isValidForPosition(Node*) const;
111 109
112 void addConsoleError(const String& message); 110 void addConsoleError(const String& message);
113 111
114 RawPtr<const TreeScope> m_treeScope; 112 RawPtr<const TreeScope> m_treeScope;
115 }; 113 };
116 114
117 } // namespace blink 115 } // namespace blink
118 116
119 #endif // DOMSelection_h 117 #endif // DOMSelection_h
OLDNEW
« no previous file with comments | « sky/engine/core/editing/CompositeEditCommand.cpp ('k') | sky/engine/core/editing/DeleteFromTextNodeCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698