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

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

Issue 1987973003: Make FrameSelection::create() to take LocalFrame as required parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-05-18T18:48:47 Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698