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

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

Issue 330613002: Copying text closes the keyboard and the text input gets unfocused, forcing virtual keyboard is get… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated code based on self review. Created 6 years, 6 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 | Source/core/editing/FrameSelection.cpp » ('j') | Source/web/WebLocalFrameImpl.cpp » ('J')
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 void setCaretRectNeedsUpdate() { CaretBase::setCaretRectNeedsUpdate(); } 142 void setCaretRectNeedsUpdate() { CaretBase::setCaretRectNeedsUpdate(); }
143 143
144 void didChangeFocus(); 144 void didChangeFocus();
145 void willBeModified(EAlteration, SelectionDirection); 145 void willBeModified(EAlteration, SelectionDirection);
146 146
147 bool isNone() const { return m_selection.isNone(); } 147 bool isNone() const { return m_selection.isNone(); }
148 bool isCaret() const { return m_selection.isCaret(); } 148 bool isCaret() const { return m_selection.isCaret(); }
149 bool isRange() const { return m_selection.isRange(); } 149 bool isRange() const { return m_selection.isRange(); }
150 bool isCaretOrRange() const { return m_selection.isCaretOrRange(); } 150 bool isCaretOrRange() const { return m_selection.isCaretOrRange(); }
151 bool isInPasswordField() const; 151 bool isInPasswordField() const;
152 bool isInTextField() const;
152 bool isDirectional() const { return m_selection.isDirectional(); } 153 bool isDirectional() const { return m_selection.isDirectional(); }
153 154
154 // If this FrameSelection has a logical range which is still valid, this fun ction return its clone. Otherwise, 155 // If this FrameSelection has a logical range which is still valid, this fun ction return its clone. Otherwise,
155 // the return value from underlying VisibleSelection's firstRange() is retur ned. 156 // the return value from underlying VisibleSelection's firstRange() is retur ned.
156 PassRefPtrWillBeRawPtr<Range> firstRange() const; 157 PassRefPtrWillBeRawPtr<Range> firstRange() const;
157 158
158 PassRefPtrWillBeRawPtr<Range> toNormalizedRange() const { return m_selection .toNormalizedRange(); } 159 PassRefPtrWillBeRawPtr<Range> toNormalizedRange() const { return m_selection .toNormalizedRange(); }
159 160
160 void nodeWillBeRemoved(Node&); 161 void nodeWillBeRemoved(Node&);
161 void didUpdateCharacterData(CharacterData*, unsigned offset, unsigned oldLen gth, unsigned newLength); 162 void didUpdateCharacterData(CharacterData*, unsigned offset, unsigned oldLen gth, unsigned newLength);
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 } 301 }
301 } // namespace WebCore 302 } // namespace WebCore
302 303
303 #ifndef NDEBUG 304 #ifndef NDEBUG
304 // Outside the WebCore namespace for ease of invocation from gdb. 305 // Outside the WebCore namespace for ease of invocation from gdb.
305 void showTree(const WebCore::FrameSelection&); 306 void showTree(const WebCore::FrameSelection&);
306 void showTree(const WebCore::FrameSelection*); 307 void showTree(const WebCore::FrameSelection*);
307 #endif 308 #endif
308 309
309 #endif // FrameSelection_h 310 #endif // FrameSelection_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/FrameSelection.cpp » ('j') | Source/web/WebLocalFrameImpl.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698