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

Side by Side Diff: public/web/WebView.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 | « public/web/WebFrame.h ('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, 2010, 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011, 2012 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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 // by the compositor) but must be completed by the WebView. 458 // by the compositor) but must be completed by the WebView.
459 virtual void transferActiveWheelFlingAnimation(const WebActiveWheelFlingPara meters&) = 0; 459 virtual void transferActiveWheelFlingAnimation(const WebActiveWheelFlingPara meters&) = 0;
460 460
461 // Cancels an active fling, returning true if a fling was active. 461 // Cancels an active fling, returning true if a fling was active.
462 virtual bool endActiveFlingAnimation() = 0; 462 virtual bool endActiveFlingAnimation() = 0;
463 463
464 virtual bool setEditableSelectionOffsets(int start, int end) = 0; 464 virtual bool setEditableSelectionOffsets(int start, int end) = 0;
465 virtual bool setCompositionFromExistingText(int compositionStart, int compos itionEnd, const WebVector<WebCompositionUnderline>& underlines) = 0; 465 virtual bool setCompositionFromExistingText(int compositionStart, int compos itionEnd, const WebVector<WebCompositionUnderline>& underlines) = 0;
466 virtual void extendSelectionAndDelete(int before, int after) = 0; 466 virtual void extendSelectionAndDelete(int before, int after) = 0;
467 467
468 virtual bool isSelectionEditable() const = 0;
469
470 virtual void setShowPaintRects(bool) = 0; 468 virtual void setShowPaintRects(bool) = 0;
471 virtual void setShowFPSCounter(bool) = 0; 469 virtual void setShowFPSCounter(bool) = 0;
472 virtual void setContinuousPaintingEnabled(bool) = 0; 470 virtual void setContinuousPaintingEnabled(bool) = 0;
473 virtual void setShowScrollBottleneckRects(bool) = 0; 471 virtual void setShowScrollBottleneckRects(bool) = 0;
474 472
475 // Compute the bounds of the root element of the current selection and fills 473 // Compute the bounds of the root element of the current selection and fills
476 // the out-parameter on success. |bounds| coordinates will be relative to 474 // the out-parameter on success. |bounds| coordinates will be relative to
477 // the contents window and will take into account the current scale level. 475 // the contents window and will take into account the current scale level.
478 virtual void getSelectionRootBounds(WebRect& bounds) const = 0; 476 virtual void getSelectionRootBounds(WebRect& bounds) const = 0;
479 477
(...skipping 18 matching lines...) Expand all
498 496
499 // Testing functionality for TestRunner --------------------------------- 497 // Testing functionality for TestRunner ---------------------------------
500 498
501 protected: 499 protected:
502 ~WebView() {} 500 ~WebView() {}
503 }; 501 };
504 502
505 } // namespace blink 503 } // namespace blink
506 504
507 #endif 505 #endif
OLDNEW
« no previous file with comments | « public/web/WebFrame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698