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

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: Fixed review comments 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 bool isContentRichlyEditable() const { return m_selection.isContentRichlyEdi table(); } 94 bool isContentRichlyEditable() const { return m_selection.isContentRichlyEdi table(); }
95 95
96 void moveTo(const VisiblePosition&, EUserTriggered = NotUserTriggered, Curso rAlignOnScroll = AlignCursorOnScrollIfNeeded); 96 void moveTo(const VisiblePosition&, EUserTriggered = NotUserTriggered, Curso rAlignOnScroll = AlignCursorOnScrollIfNeeded);
97 void moveTo(const VisiblePosition&, const VisiblePosition&, EUserTriggered = NotUserTriggered); 97 void moveTo(const VisiblePosition&, const VisiblePosition&, EUserTriggered = NotUserTriggered);
98 void moveTo(const Position&, EAffinity, EUserTriggered = NotUserTriggered); 98 void moveTo(const Position&, EAffinity, EUserTriggered = NotUserTriggered);
99 99
100 const VisibleSelection& selection() const { return m_selection; } 100 const VisibleSelection& selection() const { return m_selection; }
101 void setSelection(const VisibleSelection&, SetSelectionOptions = CloseTyping | ClearTypingStyle, CursorAlignOnScroll = AlignCursorOnScrollIfNeeded, TextGran ularity = CharacterGranularity); 101 void setSelection(const VisibleSelection&, SetSelectionOptions = CloseTyping | ClearTypingStyle, CursorAlignOnScroll = AlignCursorOnScrollIfNeeded, TextGran ularity = CharacterGranularity);
102 void setSelection(const VisibleSelection& selection, TextGranularity granula rity) { setSelection(selection, CloseTyping | ClearTypingStyle, AlignCursorOnScr ollIfNeeded, granularity); } 102 void setSelection(const VisibleSelection& selection, TextGranularity granula rity) { setSelection(selection, CloseTyping | ClearTypingStyle, AlignCursorOnScr ollIfNeeded, granularity); }
103 bool setSelectedRange(Range*, EAffinity, bool isDirectional = false, SetSele ctionOptions = CloseTyping | ClearTypingStyle); 103 bool setSelectedRange(Range*, EAffinity, bool isDirectional = false, SetSele ctionOptions = CloseTyping | ClearTypingStyle);
104 bool collapseToEnd();
104 void selectAll(); 105 void selectAll();
105 void clear(); 106 void clear();
106 void prepareForDestruction(); 107 void prepareForDestruction();
107 108
108 // Call this after doing user-triggered selections to make it easy to delete the frame you entirely selected. 109 // Call this after doing user-triggered selections to make it easy to delete the frame you entirely selected.
109 void selectFrameElementInParentIfFullySelected(); 110 void selectFrameElementInParentIfFullySelected();
110 111
111 bool contains(const LayoutPoint&); 112 bool contains(const LayoutPoint&);
112 113
113 SelectionType selectionType() const { return m_selection.selectionType(); } 114 SelectionType selectionType() const { return m_selection.selectionType(); }
(...skipping 186 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