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

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

Issue 675413003: WebLocalFrameImpl::selectWordAroundPosition should select a word before space. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: nit picks Created 6 years, 1 month 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 bool isCaretBlinkingSuspended() const { return m_isCaretBlinkingSuspended; } 177 bool isCaretBlinkingSuspended() const { return m_isCaretBlinkingSuspended; }
178 178
179 // Focus 179 // Focus
180 void setFocused(bool); 180 void setFocused(bool);
181 bool isFocused() const { return m_focused; } 181 bool isFocused() const { return m_focused; }
182 bool isFocusedAndActive() const; 182 bool isFocusedAndActive() const;
183 void pageActivationChanged(); 183 void pageActivationChanged();
184 184
185 void updateSecureKeyboardEntryIfActive(); 185 void updateSecureKeyboardEntryIfActive();
186 186
187 // Returnes true if a word is select.
Yuta Kitamura 2014/11/14 05:14:56 Returnes -> Returns or Return select -> selected
yoichio 2014/11/14 06:19:58 Done.
188 bool selectWordAroundPosition(const VisiblePosition&);
189
187 #ifndef NDEBUG 190 #ifndef NDEBUG
188 void formatForDebugger(char* buffer, unsigned length) const; 191 void formatForDebugger(char* buffer, unsigned length) const;
189 void showTreeForThis() const; 192 void showTreeForThis() const;
190 #endif 193 #endif
191 194
192 enum EndPointsAdjustmentMode { AdjustEndpointsAtBidiBoundary, DoNotAdjsutEnd points }; 195 enum EndPointsAdjustmentMode { AdjustEndpointsAtBidiBoundary, DoNotAdjsutEnd points };
193 void setNonDirectionalSelectionIfNeeded(const VisibleSelection&, TextGranula rity, EndPointsAdjustmentMode = DoNotAdjsutEndpoints); 196 void setNonDirectionalSelectionIfNeeded(const VisibleSelection&, TextGranula rity, EndPointsAdjustmentMode = DoNotAdjsutEndpoints);
194 void setFocusedNodeIfNeeded(); 197 void setFocusedNodeIfNeeded();
195 void notifyRendererOfSelectionChange(EUserTriggered); 198 void notifyRendererOfSelectionChange(EUserTriggered);
196 199
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 } 311 }
309 } // namespace blink 312 } // namespace blink
310 313
311 #ifndef NDEBUG 314 #ifndef NDEBUG
312 // Outside the WebCore namespace for ease of invocation from gdb. 315 // Outside the WebCore namespace for ease of invocation from gdb.
313 void showTree(const blink::FrameSelection&); 316 void showTree(const blink::FrameSelection&);
314 void showTree(const blink::FrameSelection*); 317 void showTree(const blink::FrameSelection*);
315 #endif 318 #endif
316 319
317 #endif // FrameSelection_h 320 #endif // FrameSelection_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/FrameSelection.cpp » ('j') | Source/core/editing/FrameSelection.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698