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

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

Issue 1187073014: Templatize PositionWithAffinity class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-06-17T16:31:27 Created 5 years, 6 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
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 18 matching lines...) Expand all
29 #include "core/CoreExport.h" 29 #include "core/CoreExport.h"
30 #include "core/editing/VisiblePosition.h" 30 #include "core/editing/VisiblePosition.h"
31 #include "platform/geometry/IntRect.h" 31 #include "platform/geometry/IntRect.h"
32 #include "platform/geometry/LayoutRect.h" 32 #include "platform/geometry/LayoutRect.h"
33 #include "wtf/Noncopyable.h" 33 #include "wtf/Noncopyable.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class LocalFrame; 37 class LocalFrame;
38 class GraphicsContext; 38 class GraphicsContext;
39 class PositionWithAffinity;
40 class LayoutBlock; 39 class LayoutBlock;
41 class LayoutView; 40 class LayoutView;
42 41
43 class CORE_EXPORT CaretBase { 42 class CORE_EXPORT CaretBase {
44 WTF_MAKE_NONCOPYABLE(CaretBase); 43 WTF_MAKE_NONCOPYABLE(CaretBase);
45 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(CaretBase); 44 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(CaretBase);
46 protected: 45 protected:
47 enum CaretVisibility { Visible, Hidden }; 46 enum CaretVisibility { Visible, Hidden };
48 explicit CaretBase(CaretVisibility = Hidden); 47 explicit CaretBase(CaretVisibility = Hidden);
49 48
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 private: 97 private:
99 DragCaretController(); 98 DragCaretController();
100 99
101 VisiblePosition m_position; 100 VisiblePosition m_position;
102 }; 101 };
103 102
104 } // namespace blink 103 } // namespace blink
105 104
106 105
107 #endif // Caret_h 106 #endif // Caret_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/PositionWithAffinity.h » ('j') | Source/core/editing/PositionWithAffinity.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698