| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 DoNotRevealExtent | 63 DoNotRevealExtent |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 enum class SelectionDirectionalMode { NonDirectional, Directional }; | 66 enum class SelectionDirectionalMode { NonDirectional, Directional }; |
| 67 | 67 |
| 68 enum class CaretVisibility; | 68 enum class CaretVisibility; |
| 69 | 69 |
| 70 class CORE_EXPORT FrameSelection final : public GarbageCollectedFinalized<FrameS
election> { | 70 class CORE_EXPORT FrameSelection final : public GarbageCollectedFinalized<FrameS
election> { |
| 71 WTF_MAKE_NONCOPYABLE(FrameSelection); | 71 WTF_MAKE_NONCOPYABLE(FrameSelection); |
| 72 public: | 72 public: |
| 73 static FrameSelection* create(LocalFrame* frame = nullptr) | 73 static FrameSelection* create(LocalFrame* frame) |
| 74 { | 74 { |
| 75 return new FrameSelection(frame); | 75 return new FrameSelection(frame); |
| 76 } | 76 } |
| 77 ~FrameSelection(); | 77 ~FrameSelection(); |
| 78 | 78 |
| 79 enum EAlteration { AlterationMove, AlterationExtend }; | 79 enum EAlteration { AlterationMove, AlterationExtend }; |
| 80 enum SetSelectionOption { | 80 enum SetSelectionOption { |
| 81 // 1 << 0 is reserved for EUserTriggered | 81 // 1 << 0 is reserved for EUserTriggered |
| 82 CloseTyping = 1 << 1, | 82 CloseTyping = 1 << 1, |
| 83 ClearTypingStyle = 1 << 2, | 83 ClearTypingStyle = 1 << 2, |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 } | 337 } |
| 338 } // namespace blink | 338 } // namespace blink |
| 339 | 339 |
| 340 #ifndef NDEBUG | 340 #ifndef NDEBUG |
| 341 // Outside the WebCore namespace for ease of invocation from gdb. | 341 // Outside the WebCore namespace for ease of invocation from gdb. |
| 342 void showTree(const blink::FrameSelection&); | 342 void showTree(const blink::FrameSelection&); |
| 343 void showTree(const blink::FrameSelection*); | 343 void showTree(const blink::FrameSelection*); |
| 344 #endif | 344 #endif |
| 345 | 345 |
| 346 #endif // FrameSelection_h | 346 #endif // FrameSelection_h |
| OLD | NEW |