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

Side by Side Diff: sky/engine/core/editing/FrameSelection.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
« no previous file with comments | « sky/engine/core/editing/Editor.cpp ('k') | sky/engine/core/editing/FrameSelection.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) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 FloatRect bounds(bool clipToVisibleContent = true) const; 203 FloatRect bounds(bool clipToVisibleContent = true) const;
204 204
205 void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIf Needed, RevealExtentOption = DoNotRevealExtent); 205 void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIf Needed, RevealExtentOption = DoNotRevealExtent);
206 void setSelectionFromNone(); 206 void setSelectionFromNone();
207 207
208 void setShouldShowBlockCursor(bool); 208 void setShouldShowBlockCursor(bool);
209 209
210 // VisibleSelection::ChangeObserver interface. 210 // VisibleSelection::ChangeObserver interface.
211 virtual void didChangeVisibleSelection() override; 211 virtual void didChangeVisibleSelection() override;
212 212
213 virtual void trace(Visitor*) override;
214
215 private: 213 private:
216 explicit FrameSelection(LocalFrame*); 214 explicit FrameSelection(LocalFrame*);
217 215
218 enum EPositionType { START, END, BASE, EXTENT }; 216 enum EPositionType { START, END, BASE, EXTENT };
219 217
220 void respondToNodeModification(Node&, bool baseRemoved, bool extentRemoved, bool startRemoved, bool endRemoved); 218 void respondToNodeModification(Node&, bool baseRemoved, bool extentRemoved, bool startRemoved, bool endRemoved);
221 TextDirection directionOfEnclosingBlock(); 219 TextDirection directionOfEnclosingBlock();
222 TextDirection directionOfSelection(); 220 TextDirection directionOfSelection();
223 221
224 VisiblePosition positionForPlatform(bool isGetStart) const; 222 VisiblePosition positionForPlatform(bool isGetStart) const;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 } 298 }
301 } // namespace blink 299 } // namespace blink
302 300
303 #ifndef NDEBUG 301 #ifndef NDEBUG
304 // Outside the WebCore namespace for ease of invocation from gdb. 302 // Outside the WebCore namespace for ease of invocation from gdb.
305 void showTree(const blink::FrameSelection&); 303 void showTree(const blink::FrameSelection&);
306 void showTree(const blink::FrameSelection*); 304 void showTree(const blink::FrameSelection*);
307 #endif 305 #endif
308 306
309 #endif // FrameSelection_h 307 #endif // FrameSelection_h
OLDNEW
« no previous file with comments | « sky/engine/core/editing/Editor.cpp ('k') | sky/engine/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698