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

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

Issue 2734793002: Expand FrameSelection::isInPasswordFiled() into call sites (Closed)
Patch Set: 2017-03-07T11:24:31 Created 3 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 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // Returns true if specified layout block should paint caret. This function is 179 // Returns true if specified layout block should paint caret. This function is
180 // called during painting only. 180 // called during painting only.
181 bool shouldPaintCaret(const LayoutBlock&) const; 181 bool shouldPaintCaret(const LayoutBlock&) const;
182 182
183 // Bounds of (possibly transformed) caret in absolute coords 183 // Bounds of (possibly transformed) caret in absolute coords
184 IntRect absoluteCaretBounds(); 184 IntRect absoluteCaretBounds();
185 185
186 void didChangeFocus(); 186 void didChangeFocus();
187 187
188 const SelectionInDOMTree& selectionInDOMTree() const; 188 const SelectionInDOMTree& selectionInDOMTree() const;
189 bool isInPasswordField() const;
190 bool isDirectional() const { return selectionInDOMTree().isDirectional(); } 189 bool isDirectional() const { return selectionInDOMTree().isDirectional(); }
191 190
192 // If this FrameSelection has a logical range which is still valid, this 191 // If this FrameSelection has a logical range which is still valid, this
193 // function return its clone. Otherwise, the return value from underlying 192 // function return its clone. Otherwise, the return value from underlying
194 // VisibleSelection's firstRange() is returned. 193 // VisibleSelection's firstRange() is returned.
195 Range* firstRange() const; 194 Range* firstRange() const;
196 195
197 void documentAttached(Document*); 196 void documentAttached(Document*);
198 197
199 void didLayout(); 198 void didLayout();
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 323
325 } // namespace blink 324 } // namespace blink
326 325
327 #ifndef NDEBUG 326 #ifndef NDEBUG
328 // Outside the WebCore namespace for ease of invocation from gdb. 327 // Outside the WebCore namespace for ease of invocation from gdb.
329 void showTree(const blink::FrameSelection&); 328 void showTree(const blink::FrameSelection&);
330 void showTree(const blink::FrameSelection*); 329 void showTree(const blink::FrameSelection*);
331 #endif 330 #endif
332 331
333 #endif // FrameSelection_h 332 #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