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

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

Issue 348193002: Remove some dead scrolling paths and unused params (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 5 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 | « public/web/WebPluginContainer.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 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 WebWidgetClient_h 31 #ifndef WebWidgetClient_h
32 #define WebWidgetClient_h 32 #define WebWidgetClient_h
33 33
34 #define DID_SCROLL_RECT_DOES_NOT_EXIST 1
35
34 #include "WebNavigationPolicy.h" 36 #include "WebNavigationPolicy.h"
35 #include "public/platform/WebCommon.h" 37 #include "public/platform/WebCommon.h"
36 #include "public/platform/WebLayerTreeView.h" 38 #include "public/platform/WebLayerTreeView.h"
37 #include "public/platform/WebRect.h" 39 #include "public/platform/WebRect.h"
38 #include "public/platform/WebScreenInfo.h" 40 #include "public/platform/WebScreenInfo.h"
39 #include "public/web/WebTouchAction.h" 41 #include "public/web/WebTouchAction.h"
40 42
41 namespace blink { 43 namespace blink {
42 44
43 class WebGestureEvent; 45 class WebGestureEvent;
44 class WebString; 46 class WebString;
45 class WebWidget; 47 class WebWidget;
46 struct WebCursorInfo; 48 struct WebCursorInfo;
47 struct WebSize; 49 struct WebSize;
48 50
49 class WebWidgetClient { 51 class WebWidgetClient {
50 public: 52 public:
51 // Called when a region of the WebWidget needs to be re-painted. 53 // Called when a region of the WebWidget needs to be re-painted.
52 virtual void didInvalidateRect(const WebRect&) { } 54 virtual void didInvalidateRect(const WebRect&) { }
53 55
54 // Called when a region of the WebWidget, given by clipRect, should be
55 // scrolled by the specified dx and dy amounts.
56 virtual void didScrollRect(int dx, int dy, const WebRect& clipRect) { }
57
58 // Called when the Widget has changed size as a result of an auto-resize. 56 // Called when the Widget has changed size as a result of an auto-resize.
59 virtual void didAutoResize(const WebSize& newSize) { } 57 virtual void didAutoResize(const WebSize& newSize) { }
60 58
61 // Attempt to initialize compositing for this widget. If this is successful, 59 // Attempt to initialize compositing for this widget. If this is successful,
62 // layerTreeView() will return a valid WebLayerTreeView. 60 // layerTreeView() will return a valid WebLayerTreeView.
63 virtual void initializeLayerTreeView() { } 61 virtual void initializeLayerTreeView() { }
64 62
65 // Return a compositing view used for this widget. This is owned by the 63 // Return a compositing view used for this widget. This is owned by the
66 // WebWidgetClient. 64 // WebWidgetClient.
67 virtual WebLayerTreeView* layerTreeView() { return 0; } 65 virtual WebLayerTreeView* layerTreeView() { return 0; }
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // Request the browser to show the IME for current input type. 178 // Request the browser to show the IME for current input type.
181 virtual void showImeIfNeeded() { } 179 virtual void showImeIfNeeded() { }
182 180
183 protected: 181 protected:
184 ~WebWidgetClient() { } 182 ~WebWidgetClient() { }
185 }; 183 };
186 184
187 } // namespace blink 185 } // namespace blink
188 186
189 #endif 187 #endif
OLDNEW
« no previous file with comments | « public/web/WebPluginContainer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698