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

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

Issue 2723003002: Editing: Fix caret blinking after a typing. (Closed)
Patch Set: Created 3 years, 9 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 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 void setSelectionFromNone(); 266 void setSelectionFromNone();
267 267
268 void updateAppearance(); 268 void updateAppearance();
269 bool shouldShowBlockCursor() const; 269 bool shouldShowBlockCursor() const;
270 void setShouldShowBlockCursor(bool); 270 void setShouldShowBlockCursor(bool);
271 271
272 void cacheRangeOfDocument(Range*); 272 void cacheRangeOfDocument(Range*);
273 Range* documentCachedRange() const; 273 Range* documentCachedRange() const;
274 void clearDocumentCachedRange(); 274 void clearDocumentCachedRange();
275 275
276 FrameCaret& frameCaretForTesting() const { return *m_frameCaret; }
277
276 DECLARE_TRACE(); 278 DECLARE_TRACE();
277 279
278 private: 280 private:
279 friend class CaretDisplayItemClientTest; 281 friend class CaretDisplayItemClientTest;
280 friend class FrameSelectionTest; 282 friend class FrameSelectionTest;
281 friend class PaintControllerPaintTestForSlimmingPaintV1AndV2; 283 friend class PaintControllerPaintTestForSlimmingPaintV1AndV2;
282 friend class SelectionControllerTest; 284 friend class SelectionControllerTest;
283 FRIEND_TEST_ALL_PREFIXES(PaintControllerPaintTestForSlimmingPaintV1AndV2, 285 FRIEND_TEST_ALL_PREFIXES(PaintControllerPaintTestForSlimmingPaintV1AndV2,
284 FullDocumentPaintingWithCaret); 286 FullDocumentPaintingWithCaret);
285 287
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 332
331 } // namespace blink 333 } // namespace blink
332 334
333 #ifndef NDEBUG 335 #ifndef NDEBUG
334 // Outside the WebCore namespace for ease of invocation from gdb. 336 // Outside the WebCore namespace for ease of invocation from gdb.
335 void showTree(const blink::FrameSelection&); 337 void showTree(const blink::FrameSelection&);
336 void showTree(const blink::FrameSelection*); 338 void showTree(const blink::FrameSelection*);
337 #endif 339 #endif
338 340
339 #endif // FrameSelection_h 341 #endif // FrameSelection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698