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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 26 matching lines...) Expand all
37 class CullRect; 37 class CullRect;
38 class LocalFrame; 38 class LocalFrame;
39 class GraphicsContext; 39 class GraphicsContext;
40 class LayoutBlock; 40 class LayoutBlock;
41 class LayoutView; 41 class LayoutView;
42 42
43 enum class CaretVisibility { Visible, Hidden }; 43 enum class CaretVisibility { Visible, Hidden };
44 44
45 class CORE_EXPORT CaretBase { 45 class CORE_EXPORT CaretBase {
46 WTF_MAKE_NONCOPYABLE(CaretBase); 46 WTF_MAKE_NONCOPYABLE(CaretBase);
47 USING_FAST_MALLOC_WILL_BE_REMOVED(CaretBase);
48 public: 47 public:
49 explicit CaretBase(CaretVisibility = CaretVisibility::Hidden); 48 explicit CaretBase(CaretVisibility = CaretVisibility::Hidden);
50 49
51 void invalidateCaretRect(Node*, bool caretRectChanged = false); 50 void invalidateCaretRect(Node*, bool caretRectChanged = false);
52 void clearCaretRect(); 51 void clearCaretRect();
53 // Creating VisiblePosition causes synchronous layout so we should use the 52 // Creating VisiblePosition causes synchronous layout so we should use the
54 // PositionWithAffinity version if possible. 53 // PositionWithAffinity version if possible.
55 // A position in HTMLTextFromControlElement is a typical example. 54 // A position in HTMLTextFromControlElement is a typical example.
56 bool updateCaretRect(const PositionWithAffinity& caretPosition); 55 bool updateCaretRect(const PositionWithAffinity& caretPosition);
57 bool updateCaretRect(const VisiblePosition& caretPosition); 56 bool updateCaretRect(const VisiblePosition& caretPosition);
(...skipping 12 matching lines...) Expand all
70 static void invalidateLocalCaretRect(Node*, const LayoutRect&); 69 static void invalidateLocalCaretRect(Node*, const LayoutRect&);
71 70
72 private: 71 private:
73 LayoutRect m_caretLocalRect; // caret rect in coords local to the layoutObje ct responsible for painting the caret 72 LayoutRect m_caretLocalRect; // caret rect in coords local to the layoutObje ct responsible for painting the caret
74 CaretVisibility m_caretVisibility; 73 CaretVisibility m_caretVisibility;
75 }; 74 };
76 75
77 } // namespace blink 76 } // namespace blink
78 77
79 #endif // CaretBase_h 78 #endif // CaretBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698