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

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

Issue 1999423002: tyrbot test for commitText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SetHasCompositionTextToTrue Created 4 years, 3 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 // 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 "WebCompositionUnderline.h" 8 #include "WebCompositionUnderline.h"
9 #include "WebFrame.h" 9 #include "WebFrame.h"
10 #include "WebFrameLoadType.h" 10 #include "WebFrameLoadType.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // otherwise run it on context resumed. 192 // otherwise run it on context resumed.
193 // Method takes ownership of the passed task. 193 // Method takes ownership of the passed task.
194 virtual void requestRunTask(WebSuspendableTask*) const = 0; 194 virtual void requestRunTask(WebSuspendableTask*) const = 0;
195 195
196 // Associates an isolated world with human-readable name which is useful for 196 // Associates an isolated world with human-readable name which is useful for
197 // extension debugging. 197 // extension debugging.
198 virtual void setIsolatedWorldHumanReadableName(int worldID, const WebString& ) = 0; 198 virtual void setIsolatedWorldHumanReadableName(int worldID, const WebString& ) = 0;
199 199
200 // Editing ------------------------------------------------------------- 200 // Editing -------------------------------------------------------------
201 201
202 virtual void insertText(const WebString& text) = 0;
203
204 virtual void setMarkedText(const WebString& text, unsigned location, unsigne d length) = 0; 202 virtual void setMarkedText(const WebString& text, unsigned location, unsigne d length) = 0;
205 virtual void unmarkText() = 0; 203 virtual void unmarkText() = 0;
206 virtual bool hasMarkedText() const = 0; 204 virtual bool hasMarkedText() const = 0;
207 205
208 virtual WebRange markedRange() const = 0; 206 virtual WebRange markedRange() const = 0;
209 207
210 // Returns the text range rectangle in the viepwort coordinate space. 208 // Returns the text range rectangle in the viepwort coordinate space.
211 virtual bool firstRectForCharacterRange(unsigned location, unsigned length, WebRect&) const = 0; 209 virtual bool firstRectForCharacterRange(unsigned location, unsigned length, WebRect&) const = 0;
212 210
213 // Returns the index of a character in the Frame's text stream at the given 211 // Returns the index of a character in the Frame's text stream at the given
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 // to call these on a WebLocalFrame. 415 // to call these on a WebLocalFrame.
418 bool isWebLocalFrame() const override = 0; 416 bool isWebLocalFrame() const override = 0;
419 WebLocalFrame* toWebLocalFrame() override = 0; 417 WebLocalFrame* toWebLocalFrame() override = 0;
420 bool isWebRemoteFrame() const override = 0; 418 bool isWebRemoteFrame() const override = 0;
421 WebRemoteFrame* toWebRemoteFrame() override = 0; 419 WebRemoteFrame* toWebRemoteFrame() override = 0;
422 }; 420 };
423 421
424 } // namespace blink 422 } // namespace blink
425 423
426 #endif // WebLocalFrame_h 424 #endif // WebLocalFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | third_party/WebKit/public/web/WebPlugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698