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

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

Issue 1738623004: Rename enums/functions that collide in chromium style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-4
Patch Set: get-names-5: rebase-and-stuff Created 4 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 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 bool setSelectedRange(const EphemeralRange&, TextAffinity, SelectionDirectio nalMode = SelectionDirectionalMode::NonDirectional, FrameSelection::SetSelection Options = CloseTyping | ClearTypingStyle); 120 bool setSelectedRange(const EphemeralRange&, TextAffinity, SelectionDirectio nalMode = SelectionDirectionalMode::NonDirectional, FrameSelection::SetSelection Options = CloseTyping | ClearTypingStyle);
121 void selectAll(); 121 void selectAll();
122 void clear(); 122 void clear();
123 void prepareForDestruction(); 123 void prepareForDestruction();
124 124
125 // Call this after doing user-triggered selections to make it easy to delete the frame you entirely selected. 125 // Call this after doing user-triggered selections to make it easy to delete the frame you entirely selected.
126 void selectFrameElementInParentIfFullySelected(); 126 void selectFrameElementInParentIfFullySelected();
127 127
128 bool contains(const LayoutPoint&); 128 bool contains(const LayoutPoint&);
129 129
130 SelectionType selectionType() const { return selection().selectionType(); } 130 SelectionType getSelectionType() const { return selection().getSelectionType (); }
131 131
132 TextAffinity affinity() const { return selection().affinity(); } 132 TextAffinity affinity() const { return selection().affinity(); }
133 133
134 bool modify(EAlteration, SelectionDirection, TextGranularity, EUserTriggered = NotUserTriggered); 134 bool modify(EAlteration, SelectionDirection, TextGranularity, EUserTriggered = NotUserTriggered);
135 enum VerticalDirection { DirectionUp, DirectionDown }; 135 enum VerticalDirection { DirectionUp, DirectionDown };
136 bool modify(EAlteration, unsigned verticalDistance, VerticalDirection, EUser Triggered = NotUserTriggered, CursorAlignOnScroll = CursorAlignOnScroll::IfNeede d); 136 bool modify(EAlteration, unsigned verticalDistance, VerticalDirection, EUser Triggered = NotUserTriggered, CursorAlignOnScroll = CursorAlignOnScroll::IfNeede d);
137 137
138 // Moves the selection extent based on the selection granularity strategy. 138 // Moves the selection extent based on the selection granularity strategy.
139 // This function does not allow the selection to collapse. If the new 139 // This function does not allow the selection to collapse. If the new
140 // extent is resolved to the same position as the current base, this 140 // extent is resolved to the same position as the current base, this
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 } 330 }
331 } // namespace blink 331 } // namespace blink
332 332
333 #ifndef NDEBUG 333 #ifndef NDEBUG
334 // Outside the WebCore namespace for ease of invocation from gdb. 334 // Outside the WebCore namespace for ease of invocation from gdb.
335 void showTree(const blink::FrameSelection&); 335 void showTree(const blink::FrameSelection&);
336 void showTree(const blink::FrameSelection*); 336 void showTree(const blink::FrameSelection*);
337 #endif 337 #endif
338 338
339 #endif // FrameSelection_h 339 #endif // FrameSelection_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/Editor.cpp ('k') | third_party/WebKit/Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698