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

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

Issue 177903010: Expose the selection root bounds in WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add missing test files 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
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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 468 virtual bool isSelectionEditable() const = 0;
469 469
470 virtual void setShowPaintRects(bool) = 0; 470 virtual void setShowPaintRects(bool) = 0;
471 virtual void setShowFPSCounter(bool) = 0; 471 virtual void setShowFPSCounter(bool) = 0;
472 virtual void setContinuousPaintingEnabled(bool) = 0; 472 virtual void setContinuousPaintingEnabled(bool) = 0;
473 virtual void setShowScrollBottleneckRects(bool) = 0; 473 virtual void setShowScrollBottleneckRects(bool) = 0;
474 474
475 // 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
477 // the contents window and will take into account the current scale level.
478 virtual void getSelectionRootBounds(WebRect& bounds) const = 0;
479
475 // Visibility ----------------------------------------------------------- 480 // Visibility -----------------------------------------------------------
476 481
477 // Sets the visibility of the WebView. 482 // Sets the visibility of the WebView.
478 virtual void setVisibilityState(WebPageVisibilityState visibilityState, 483 virtual void setVisibilityState(WebPageVisibilityState visibilityState,
479 bool isInitialState) { } 484 bool isInitialState) { }
480 485
481 // PageOverlay ---------------------------------------------------------- 486 // PageOverlay ----------------------------------------------------------
482 487
483 // Adds/removes page overlay to this WebView. These functions change the 488 // Adds/removes page overlay to this WebView. These functions change the
484 // graphical appearance of the WebView. WebPageOverlay paints the 489 // graphical appearance of the WebView. WebPageOverlay paints the
485 // contents of the page overlay. It also provides an z-order number for 490 // contents of the page overlay. It also provides an z-order number for
486 // the page overlay. The z-order number defines the paint order the page 491 // the page overlay. The z-order number defines the paint order the page
487 // overlays. Page overlays with larger z-order number will be painted after 492 // overlays. Page overlays with larger z-order number will be painted after
488 // page overlays with smaller z-order number. That is, they appear above 493 // page overlays with smaller z-order number. That is, they appear above
489 // the page overlays with smaller z-order number. If two page overlays have 494 // the page overlays with smaller z-order number. If two page overlays have
490 // the same z-order number, the later added one will be on top. 495 // the same z-order number, the later added one will be on top.
491 virtual void addPageOverlay(WebPageOverlay*, int /*z-order*/) = 0; 496 virtual void addPageOverlay(WebPageOverlay*, int /*z-order*/) = 0;
492 virtual void removePageOverlay(WebPageOverlay*) = 0; 497 virtual void removePageOverlay(WebPageOverlay*) = 0;
493 498
494 // Testing functionality for TestRunner --------------------------------- 499 // Testing functionality for TestRunner ---------------------------------
495 500
496 protected: 501 protected:
497 ~WebView() {} 502 ~WebView() {}
498 }; 503 };
499 504
500 } // namespace blink 505 } // namespace blink
501 506
502 #endif 507 #endif
OLDNEW
« Source/web/WebViewImpl.h ('K') | « Source/web/tests/data/select_range_textarea_overflow.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698