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

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

Issue 22746004: Add API to WebFrame to enable/disable caret. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: patch Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WebFrameImpl.cpp ('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 /* 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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 virtual void moveCaretSelectionTowardsWindowPoint(const WebPoint&) = 0; 449 virtual void moveCaretSelectionTowardsWindowPoint(const WebPoint&) = 0;
450 450
451 virtual void selectRange(const WebRange&) = 0; 451 virtual void selectRange(const WebRange&) = 0;
452 452
453 // Move the current selection to the provided window point/points. If the 453 // Move the current selection to the provided window point/points. If the
454 // current selection is editable, the new selection will be restricted to 454 // current selection is editable, the new selection will be restricted to
455 // the root editable element. 455 // the root editable element.
456 virtual void moveRangeSelection(const WebPoint& base, const WebPoint& extent ) = 0; 456 virtual void moveRangeSelection(const WebPoint& base, const WebPoint& extent ) = 0;
457 virtual void moveCaretSelection(const WebPoint&) = 0; 457 virtual void moveCaretSelection(const WebPoint&) = 0;
458 458
459 virtual void setCaretVisible(bool) = 0;
460
459 // Printing ------------------------------------------------------------ 461 // Printing ------------------------------------------------------------
460 462
461 // Reformats the WebFrame for printing. WebPrintParams specifies the printab le 463 // Reformats the WebFrame for printing. WebPrintParams specifies the printab le
462 // content size, paper size, printable area size, printer DPI and print 464 // content size, paper size, printable area size, printer DPI and print
463 // scaling option. If constrainToNode node is specified, then only the given node 465 // scaling option. If constrainToNode node is specified, then only the given node
464 // is printed (for now only plugins are supported), instead of the entire fr ame. 466 // is printed (for now only plugins are supported), instead of the entire fr ame.
465 // Returns the number of pages that can be printed at the given 467 // Returns the number of pages that can be printed at the given
466 // page size. The out param useBrowserOverlays specifies whether the browser 468 // page size. The out param useBrowserOverlays specifies whether the browser
467 // process should use its overlays (header, footer, margins etc) or whether 469 // process should use its overlays (header, footer, margins etc) or whether
468 // the renderer controls this. 470 // the renderer controls this.
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 // text form. This is used only by layout tests. 650 // text form. This is used only by layout tests.
649 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; 651 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0;
650 652
651 protected: 653 protected:
652 ~WebFrame() { } 654 ~WebFrame() { }
653 }; 655 };
654 656
655 } // namespace WebKit 657 } // namespace WebKit
656 658
657 #endif 659 #endif
OLDNEW
« no previous file with comments | « Source/web/WebFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698