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

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

Issue 201773005: Copy a few selection related methods to WebFrame from WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update test Created 6 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
« no previous file with comments | « Source/web/tests/WebViewTest.cpp ('k') | public/web/WebView.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebFrame_h 31 #ifndef WebFrame_h
32 #define WebFrame_h 32 #define WebFrame_h
33 33
34 #include "WebCompositionUnderline.h"
34 #include "WebIconURL.h" 35 #include "WebIconURL.h"
35 #include "WebNode.h" 36 #include "WebNode.h"
36 #include "WebURLLoaderOptions.h" 37 #include "WebURLLoaderOptions.h"
37 #include "public/platform/WebCanvas.h" 38 #include "public/platform/WebCanvas.h"
38 #include "public/platform/WebMessagePortChannel.h" 39 #include "public/platform/WebMessagePortChannel.h"
39 #include "public/platform/WebReferrerPolicy.h" 40 #include "public/platform/WebReferrerPolicy.h"
40 #include "public/platform/WebURL.h" 41 #include "public/platform/WebURL.h"
41 #include "public/platform/WebURLRequest.h" 42 #include "public/platform/WebURLRequest.h"
42 43
43 struct NPObject; 44 struct NPObject;
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 virtual void selectRange(const WebPoint& base, const WebPoint& extent) = 0; 460 virtual void selectRange(const WebPoint& base, const WebPoint& extent) = 0;
460 461
461 virtual void selectRange(const WebRange&) = 0; 462 virtual void selectRange(const WebRange&) = 0;
462 463
463 // Move the current selection to the provided window point/points. If the 464 // Move the current selection to the provided window point/points. If the
464 // current selection is editable, the new selection will be restricted to 465 // current selection is editable, the new selection will be restricted to
465 // the root editable element. 466 // the root editable element.
466 virtual void moveRangeSelection(const WebPoint& base, const WebPoint& extent ) = 0; 467 virtual void moveRangeSelection(const WebPoint& base, const WebPoint& extent ) = 0;
467 virtual void moveCaretSelection(const WebPoint&) = 0; 468 virtual void moveCaretSelection(const WebPoint&) = 0;
468 469
470 virtual bool setEditableSelectionOffsets(int start, int end) = 0;
471 virtual bool setCompositionFromExistingText(int compositionStart, int compos itionEnd, const WebVector<WebCompositionUnderline>& underlines) = 0;
472 virtual void extendSelectionAndDelete(int before, int after) = 0;
473
469 virtual void setCaretVisible(bool) = 0; 474 virtual void setCaretVisible(bool) = 0;
470 475
471 // Printing ------------------------------------------------------------ 476 // Printing ------------------------------------------------------------
472 477
473 // Reformats the WebFrame for printing. WebPrintParams specifies the printab le 478 // Reformats the WebFrame for printing. WebPrintParams specifies the printab le
474 // content size, paper size, printable area size, printer DPI and print 479 // content size, paper size, printable area size, printer DPI and print
475 // scaling option. If constrainToNode node is specified, then only the given node 480 // scaling option. If constrainToNode node is specified, then only the given node
476 // is printed (for now only plugins are supported), instead of the entire fr ame. 481 // is printed (for now only plugins are supported), instead of the entire fr ame.
477 // Returns the number of pages that can be printed at the given 482 // Returns the number of pages that can be printed at the given
478 // page size. 483 // page size.
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 // text form. This is used only by layout tests. 667 // text form. This is used only by layout tests.
663 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; 668 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0;
664 669
665 protected: 670 protected:
666 ~WebFrame() { } 671 ~WebFrame() { }
667 }; 672 };
668 673
669 } // namespace blink 674 } // namespace blink
670 675
671 #endif 676 #endif
OLDNEW
« no previous file with comments | « Source/web/tests/WebViewTest.cpp ('k') | public/web/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698