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

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

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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) 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 WTF_MAKE_NONCOPYABLE(VisibleSelectionChangeObserver); 54 WTF_MAKE_NONCOPYABLE(VisibleSelectionChangeObserver);
55 public: 55 public:
56 VisibleSelectionChangeObserver(); 56 VisibleSelectionChangeObserver();
57 virtual ~VisibleSelectionChangeObserver(); 57 virtual ~VisibleSelectionChangeObserver();
58 virtual void didChangeVisibleSelection() = 0; 58 virtual void didChangeVisibleSelection() = 0;
59 DEFINE_INLINE_VIRTUAL_TRACE() { } 59 DEFINE_INLINE_VIRTUAL_TRACE() { }
60 }; 60 };
61 61
62 template <typename Strategy> 62 template <typename Strategy>
63 class CORE_TEMPLATE_CLASS_EXPORT VisibleSelectionTemplate { 63 class CORE_TEMPLATE_CLASS_EXPORT VisibleSelectionTemplate {
64 DISALLOW_ALLOCATION(); 64 DISALLOW_NEW();
65 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(VisibleSelectionTemplate); 65 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(VisibleSelectionTemplate);
66 public: 66 public:
67 VisibleSelectionTemplate(); 67 VisibleSelectionTemplate();
68 VisibleSelectionTemplate(const PositionTemplate<Strategy>&, TextAffinity, bo ol isDirectional = false); 68 VisibleSelectionTemplate(const PositionTemplate<Strategy>&, TextAffinity, bo ol isDirectional = false);
69 VisibleSelectionTemplate(const PositionTemplate<Strategy>& base, const Posit ionTemplate<Strategy>& extent, TextAffinity = SEL_DEFAULT_AFFINITY, bool isDirec tional = false); 69 VisibleSelectionTemplate(const PositionTemplate<Strategy>& base, const Posit ionTemplate<Strategy>& extent, TextAffinity = SEL_DEFAULT_AFFINITY, bool isDirec tional = false);
70 explicit VisibleSelectionTemplate(const EphemeralRangeTemplate<Strategy>&, T extAffinity = SEL_DEFAULT_AFFINITY, bool isDirectional = false); 70 explicit VisibleSelectionTemplate(const EphemeralRangeTemplate<Strategy>&, T extAffinity = SEL_DEFAULT_AFFINITY, bool isDirectional = false);
71 71
72 explicit VisibleSelectionTemplate(const VisiblePositionTemplate<Strategy>&, bool isDirectional = false); 72 explicit VisibleSelectionTemplate(const VisiblePositionTemplate<Strategy>&, bool isDirectional = false);
73 VisibleSelectionTemplate(const VisiblePositionTemplate<Strategy>&, const Vis iblePositionTemplate<Strategy>&, bool isDirectional = false); 73 VisibleSelectionTemplate(const VisiblePositionTemplate<Strategy>&, const Vis iblePositionTemplate<Strategy>&, bool isDirectional = false);
74 74
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 #ifndef NDEBUG 222 #ifndef NDEBUG
223 // Outside the WebCore namespace for ease of invocation from gdb. 223 // Outside the WebCore namespace for ease of invocation from gdb.
224 void showTree(const blink::VisibleSelection&); 224 void showTree(const blink::VisibleSelection&);
225 void showTree(const blink::VisibleSelection*); 225 void showTree(const blink::VisibleSelection*);
226 void showTree(const blink::VisibleSelectionInComposedTree&); 226 void showTree(const blink::VisibleSelectionInComposedTree&);
227 void showTree(const blink::VisibleSelectionInComposedTree*); 227 void showTree(const blink::VisibleSelectionInComposedTree*);
228 #endif 228 #endif
229 229
230 #endif // VisibleSelection_h 230 #endif // VisibleSelection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698