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

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

Issue 1150603002: Oilpan: fix build after r195600. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 | « no previous file | Source/core/editing/VisibleSelection.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 23 matching lines...) Expand all
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class LayoutPoint; 37 class LayoutPoint;
38 38
39 const EAffinity SEL_DEFAULT_AFFINITY = DOWNSTREAM; 39 const EAffinity SEL_DEFAULT_AFFINITY = DOWNSTREAM;
40 enum SelectionDirection { DirectionForward, DirectionBackward, DirectionRight, D irectionLeft }; 40 enum SelectionDirection { DirectionForward, DirectionBackward, DirectionRight, D irectionLeft };
41 41
42 class CORE_EXPORT VisibleSelection { 42 class CORE_EXPORT VisibleSelection {
43 DISALLOW_ALLOCATION(); 43 DISALLOW_ALLOCATION();
44 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(VisibleSelection);
44 public: 45 public:
45 VisibleSelection(); 46 VisibleSelection();
46 47
47 VisibleSelection(const Position&, EAffinity, bool isDirectional = false); 48 VisibleSelection(const Position&, EAffinity, bool isDirectional = false);
48 VisibleSelection(const Position&, const Position&, EAffinity = SEL_DEFAULT_A FFINITY, bool isDirectional = false); 49 VisibleSelection(const Position&, const Position&, EAffinity = SEL_DEFAULT_A FFINITY, bool isDirectional = false);
49 50
50 explicit VisibleSelection(const Range*, EAffinity = SEL_DEFAULT_AFFINITY, bo ol isDirectional = false); 51 explicit VisibleSelection(const Range*, EAffinity = SEL_DEFAULT_AFFINITY, bo ol isDirectional = false);
51 52
52 explicit VisibleSelection(const VisiblePosition&, bool isDirectional = false ); 53 explicit VisibleSelection(const VisiblePosition&, bool isDirectional = false );
53 VisibleSelection(const VisiblePosition&, const VisiblePosition&, bool isDire ctional = false); 54 VisibleSelection(const VisiblePosition&, const VisiblePosition&, bool isDire ctional = false);
54 55
55 VisibleSelection(const VisibleSelection&); 56 VisibleSelection(const VisibleSelection&);
56 VisibleSelection& operator=(const VisibleSelection&); 57 VisibleSelection& operator=(const VisibleSelection&);
57 58
58 ~VisibleSelection();
59
60 static VisibleSelection selectionFromContentsOfNode(Node*); 59 static VisibleSelection selectionFromContentsOfNode(Node*);
61 60
62 SelectionType selectionType() const { return m_selectionType; } 61 SelectionType selectionType() const { return m_selectionType; }
63 62
64 void setAffinity(EAffinity affinity) { m_affinity = affinity; } 63 void setAffinity(EAffinity affinity) { m_affinity = affinity; }
65 EAffinity affinity() const { return m_affinity; } 64 EAffinity affinity() const { return m_affinity; }
66 65
67 void setBase(const Position&); 66 void setBase(const Position&);
68 void setBase(const VisiblePosition&); 67 void setBase(const VisiblePosition&);
69 void setExtent(const Position&); 68 void setExtent(const Position&);
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 199
201 } // namespace blink 200 } // namespace blink
202 201
203 #ifndef NDEBUG 202 #ifndef NDEBUG
204 // Outside the WebCore namespace for ease of invocation from gdb. 203 // Outside the WebCore namespace for ease of invocation from gdb.
205 void showTree(const blink::VisibleSelection&); 204 void showTree(const blink::VisibleSelection&);
206 void showTree(const blink::VisibleSelection*); 205 void showTree(const blink::VisibleSelection*);
207 #endif 206 #endif
208 207
209 #endif // VisibleSelection_h 208 #endif // VisibleSelection_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698