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

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

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/editing/VisibleSelection.cpp ('k') | Source/core/editing/VisibleUnits.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 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004 Apple Computer, 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 15 matching lines...) Expand all
26 #ifndef VisibleUnits_h 26 #ifndef VisibleUnits_h
27 #define VisibleUnits_h 27 #define VisibleUnits_h
28 28
29 #include "core/editing/EditingBoundary.h" 29 #include "core/editing/EditingBoundary.h"
30 #include "platform/text/TextDirection.h" 30 #include "platform/text/TextDirection.h"
31 31
32 namespace blink { 32 namespace blink {
33 33
34 class LayoutRect; 34 class LayoutRect;
35 class PositionWithAffinity; 35 class PositionWithAffinity;
36 class RenderObject; 36 class LayoutObject;
37 class Node; 37 class Node;
38 class VisiblePosition; 38 class VisiblePosition;
39 39
40 enum EWordSide { RightWordIfOnBoundary = false, LeftWordIfOnBoundary = true }; 40 enum EWordSide { RightWordIfOnBoundary = false, LeftWordIfOnBoundary = true };
41 41
42 // words 42 // words
43 VisiblePosition startOfWord(const VisiblePosition &, EWordSide = RightWordIfOnBo undary); 43 VisiblePosition startOfWord(const VisiblePosition &, EWordSide = RightWordIfOnBo undary);
44 VisiblePosition endOfWord(const VisiblePosition &, EWordSide = RightWordIfOnBoun dary); 44 VisiblePosition endOfWord(const VisiblePosition &, EWordSide = RightWordIfOnBoun dary);
45 VisiblePosition previousWordPosition(const VisiblePosition &); 45 VisiblePosition previousWordPosition(const VisiblePosition &);
46 VisiblePosition nextWordPosition(const VisiblePosition &); 46 VisiblePosition nextWordPosition(const VisiblePosition &);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 VisiblePosition endOfDocument(const VisiblePosition &); 91 VisiblePosition endOfDocument(const VisiblePosition &);
92 bool isStartOfDocument(const VisiblePosition &); 92 bool isStartOfDocument(const VisiblePosition &);
93 bool isEndOfDocument(const VisiblePosition &); 93 bool isEndOfDocument(const VisiblePosition &);
94 94
95 // editable content 95 // editable content
96 VisiblePosition startOfEditableContent(const VisiblePosition&); 96 VisiblePosition startOfEditableContent(const VisiblePosition&);
97 VisiblePosition endOfEditableContent(const VisiblePosition&); 97 VisiblePosition endOfEditableContent(const VisiblePosition&);
98 bool isEndOfEditableOrNonEditableContent(const VisiblePosition&); 98 bool isEndOfEditableOrNonEditableContent(const VisiblePosition&);
99 99
100 // Rect is local to the returned renderer 100 // Rect is local to the returned renderer
101 LayoutRect localCaretRectOfPosition(const PositionWithAffinity&, RenderObject*&) ; 101 LayoutRect localCaretRectOfPosition(const PositionWithAffinity&, LayoutObject*&) ;
102 102
103 } // namespace blink 103 } // namespace blink
104 104
105 #endif // VisibleUnits_h 105 #endif // VisibleUnits_h
OLDNEW
« no previous file with comments | « Source/core/editing/VisibleSelection.cpp ('k') | Source/core/editing/VisibleUnits.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698