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

Side by Side Diff: public/web/WebLocalFrame.h

Issue 653383002: Add new API for only moving the selection extent point. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated comment Created 6 years, 2 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 | « Source/web/tests/data/move_range_selection_extent.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebLocalFrame_h 5 #ifndef WebLocalFrame_h
6 #define WebLocalFrame_h 6 #define WebLocalFrame_h
7 7
8 #include "WebFrame.h" 8 #include "WebFrame.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 61
62 // Scripting -------------------------------------------------------------- 62 // Scripting --------------------------------------------------------------
63 // ONLY FOR TESTS: Forwards to executeScriptAndReturnValue, but sets a fake 63 // ONLY FOR TESTS: Forwards to executeScriptAndReturnValue, but sets a fake
64 // UserGestureIndicator before execution. 64 // UserGestureIndicator before execution.
65 virtual v8::Handle<v8::Value> executeScriptAndReturnValueForTests(const WebS criptSource&) = 0; 65 virtual v8::Handle<v8::Value> executeScriptAndReturnValueForTests(const WebS criptSource&) = 0;
66 66
67 // Associates an isolated world with human-readable name which is useful for 67 // Associates an isolated world with human-readable name which is useful for
68 // extension debugging. 68 // extension debugging.
69 virtual void setIsolatedWorldHumanReadableName(int worldID, const WebString& ) = 0; 69 virtual void setIsolatedWorldHumanReadableName(int worldID, const WebString& ) = 0;
70
71
72 // Selection --------------------------------------------------------------
73
74 // Moves the selection extent point. This function does not allow the
75 // selection to collapse. If the new extent is set to the same position as
76 // the current base, this function will do nothing.
77 virtual void moveRangeSelectionExtent(const WebPoint&) = 0;
70 }; 78 };
71 79
72 } // namespace blink 80 } // namespace blink
73 81
74 #endif // WebLocalFrame_h 82 #endif // WebLocalFrame_h
OLDNEW
« no previous file with comments | « Source/web/tests/data/move_range_selection_extent.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698