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

Side by Side Diff: Source/web/WebViewImpl.h

Issue 177903010: Expose the selection root bounds in WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 | « no previous file | Source/web/WebViewImpl.cpp » ('j') | public/web/WebWidget.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior ) OVERRIDE; 149 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior ) OVERRIDE;
150 virtual bool confirmComposition(const WebString& text) OVERRIDE; 150 virtual bool confirmComposition(const WebString& text) OVERRIDE;
151 virtual bool compositionRange(size_t* location, size_t* length) OVERRIDE; 151 virtual bool compositionRange(size_t* location, size_t* length) OVERRIDE;
152 virtual WebTextInputInfo textInputInfo() OVERRIDE; 152 virtual WebTextInputInfo textInputInfo() OVERRIDE;
153 virtual bool setEditableSelectionOffsets(int start, int end) OVERRIDE; 153 virtual bool setEditableSelectionOffsets(int start, int end) OVERRIDE;
154 virtual bool setCompositionFromExistingText(int compositionStart, int compos itionEnd, const WebVector<WebCompositionUnderline>& underlines) OVERRIDE; 154 virtual bool setCompositionFromExistingText(int compositionStart, int compos itionEnd, const WebVector<WebCompositionUnderline>& underlines) OVERRIDE;
155 virtual void extendSelectionAndDelete(int before, int after) OVERRIDE; 155 virtual void extendSelectionAndDelete(int before, int after) OVERRIDE;
156 virtual bool isSelectionEditable() const OVERRIDE; 156 virtual bool isSelectionEditable() const OVERRIDE;
157 virtual WebColor backgroundColor() const OVERRIDE; 157 virtual WebColor backgroundColor() const OVERRIDE;
158 virtual bool selectionBounds(WebRect& anchor, WebRect& focus) const OVERRIDE ; 158 virtual bool selectionBounds(WebRect& anchor, WebRect& focus) const OVERRIDE ;
159 virtual bool selectionRootBounds(WebRect& bounds) const OVERRIDE;
159 virtual void didShowCandidateWindow() OVERRIDE; 160 virtual void didShowCandidateWindow() OVERRIDE;
160 virtual void didUpdateCandidateWindow() OVERRIDE; 161 virtual void didUpdateCandidateWindow() OVERRIDE;
161 virtual void didHideCandidateWindow() OVERRIDE; 162 virtual void didHideCandidateWindow() OVERRIDE;
162 virtual bool selectionTextDirection(WebTextDirection& start, WebTextDirectio n& end) const OVERRIDE; 163 virtual bool selectionTextDirection(WebTextDirection& start, WebTextDirectio n& end) const OVERRIDE;
163 virtual bool isSelectionAnchorFirst() const OVERRIDE; 164 virtual bool isSelectionAnchorFirst() const OVERRIDE;
164 virtual bool caretOrSelectionRange(size_t* location, size_t* length) OVERRID E; 165 virtual bool caretOrSelectionRange(size_t* location, size_t* length) OVERRID E;
165 virtual void setTextDirection(WebTextDirection) OVERRIDE; 166 virtual void setTextDirection(WebTextDirection) OVERRIDE;
166 virtual bool isAcceleratedCompositingActive() const OVERRIDE; 167 virtual bool isAcceleratedCompositingActive() const OVERRIDE;
167 virtual void willCloseLayerTreeView() OVERRIDE; 168 virtual void willCloseLayerTreeView() OVERRIDE;
168 virtual void didAcquirePointerLock() OVERRIDE; 169 virtual void didAcquirePointerLock() OVERRIDE;
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 float m_zoomFactorOverride; 773 float m_zoomFactorOverride;
773 }; 774 };
774 775
775 // We have no ways to check if the specified WebView is an instance of 776 // We have no ways to check if the specified WebView is an instance of
776 // WebViewImpl because WebViewImpl is the only implementation of WebView. 777 // WebViewImpl because WebViewImpl is the only implementation of WebView.
777 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 778 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
778 779
779 } // namespace blink 780 } // namespace blink
780 781
781 #endif 782 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | public/web/WebWidget.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698