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

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, 6 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class WebString; 44 class WebString;
45 class WebWidget; 45 class WebWidget;
46 struct WebCursorInfo; 46 struct WebCursorInfo;
47 struct WebSize; 47 struct WebSize;
48 48
49 class WebWidgetClient { 49 class WebWidgetClient {
50 public: 50 public:
51 // Called when a region of the WebWidget needs to be re-painted. 51 // Called when a region of the WebWidget needs to be re-painted.
52 virtual void didInvalidateRect(const WebRect&) { } 52 virtual void didInvalidateRect(const WebRect&) { }
53 53
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) { }
Ian Vollick 2014/06/23 15:07:58 I'm not sure when it disappeared, but there's no d
57
58 // Called when the Widget has changed size as a result of an auto-resize. 54 // Called when the Widget has changed size as a result of an auto-resize.
59 virtual void didAutoResize(const WebSize& newSize) { } 55 virtual void didAutoResize(const WebSize& newSize) { }
60 56
61 // Attempt to initialize compositing for this widget. If this is successful, 57 // Attempt to initialize compositing for this widget. If this is successful,
62 // layerTreeView() will return a valid WebLayerTreeView. 58 // layerTreeView() will return a valid WebLayerTreeView.
63 virtual void initializeLayerTreeView() { } 59 virtual void initializeLayerTreeView() { }
64 60
65 // Return a compositing view used for this widget. This is owned by the 61 // Return a compositing view used for this widget. This is owned by the
66 // WebWidgetClient. 62 // WebWidgetClient.
67 virtual WebLayerTreeView* layerTreeView() { return 0; } 63 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. 176 // Request the browser to show the IME for current input type.
181 virtual void showImeIfNeeded() { } 177 virtual void showImeIfNeeded() { }
182 178
183 protected: 179 protected:
184 ~WebWidgetClient() { } 180 ~WebWidgetClient() { }
185 }; 181 };
186 182
187 } // namespace blink 183 } // namespace blink
188 184
189 #endif 185 #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