| OLD | NEW |
| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class Text; | 49 class Text; |
| 50 class VisiblePosition; | 50 class VisiblePosition; |
| 51 | 51 |
| 52 enum EUserTriggered { NotUserTriggered = 0, UserTriggered = 1 }; | 52 enum EUserTriggered { NotUserTriggered = 0, UserTriggered = 1 }; |
| 53 | 53 |
| 54 enum RevealExtentOption { | 54 enum RevealExtentOption { |
| 55 RevealExtent, | 55 RevealExtent, |
| 56 DoNotRevealExtent | 56 DoNotRevealExtent |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 class FrameSelection final : public DummyBase<FrameSelection>, public VisibleSel
ection::ChangeObserver, private CaretBase { | 59 class FrameSelection final : public VisibleSelection::ChangeObserver, private Ca
retBase { |
| 60 WTF_MAKE_NONCOPYABLE(FrameSelection); | 60 WTF_MAKE_NONCOPYABLE(FrameSelection); |
| 61 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 61 WTF_MAKE_FAST_ALLOCATED; |
| 62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(FrameSelection); | |
| 63 public: | 62 public: |
| 64 static PassOwnPtr<FrameSelection> create(LocalFrame* frame = 0) | 63 static PassOwnPtr<FrameSelection> create(LocalFrame* frame = 0) |
| 65 { | 64 { |
| 66 return adoptPtr(new FrameSelection(frame)); | 65 return adoptPtr(new FrameSelection(frame)); |
| 67 } | 66 } |
| 68 virtual ~FrameSelection(); | 67 virtual ~FrameSelection(); |
| 69 | 68 |
| 70 enum EAlteration { AlterationMove, AlterationExtend }; | 69 enum EAlteration { AlterationMove, AlterationExtend }; |
| 71 enum CursorAlignOnScroll { AlignCursorOnScrollIfNeeded, | 70 enum CursorAlignOnScroll { AlignCursorOnScrollIfNeeded, |
| 72 AlignCursorOnScrollAlways }; | 71 AlignCursorOnScrollAlways }; |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 } | 301 } |
| 303 } // namespace blink | 302 } // namespace blink |
| 304 | 303 |
| 305 #ifndef NDEBUG | 304 #ifndef NDEBUG |
| 306 // Outside the WebCore namespace for ease of invocation from gdb. | 305 // Outside the WebCore namespace for ease of invocation from gdb. |
| 307 void showTree(const blink::FrameSelection&); | 306 void showTree(const blink::FrameSelection&); |
| 308 void showTree(const blink::FrameSelection*); | 307 void showTree(const blink::FrameSelection*); |
| 309 #endif | 308 #endif |
| 310 | 309 |
| 311 #endif // FrameSelection_h | 310 #endif // FrameSelection_h |
| OLD | NEW |