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

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

Issue 2143643002: Remove didAutoResize from WebWidgetClient and move it to WebViewClient.. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
« no previous file with comments | « third_party/WebKit/public/web/WebViewClient.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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 struct WebFloatPoint; 51 struct WebFloatPoint;
52 struct WebFloatRect; 52 struct WebFloatRect;
53 struct WebFloatSize; 53 struct WebFloatSize;
54 struct WebSize; 54 struct WebSize;
55 55
56 class WebWidgetClient { 56 class WebWidgetClient {
57 public: 57 public:
58 // Called when a region of the WebWidget needs to be re-painted. 58 // Called when a region of the WebWidget needs to be re-painted.
59 virtual void didInvalidateRect(const WebRect&) { } 59 virtual void didInvalidateRect(const WebRect&) { }
60 60
61 // Called when the Widget has changed size as a result of an auto-resize.
62 virtual void didAutoResize(const WebSize& newSize) { }
63
64 // Attempt to initialize compositing for this widget. If this is successful, 61 // Attempt to initialize compositing for this widget. If this is successful,
65 // layerTreeView() will return a valid WebLayerTreeView. 62 // layerTreeView() will return a valid WebLayerTreeView.
66 virtual void initializeLayerTreeView() { } 63 virtual void initializeLayerTreeView() { }
67 64
68 // Return a compositing view used for this widget. This is owned by the 65 // Return a compositing view used for this widget. This is owned by the
69 // WebWidgetClient. 66 // WebWidgetClient.
70 virtual WebLayerTreeView* layerTreeView() { return 0; } 67 virtual WebLayerTreeView* layerTreeView() { return 0; }
71 // FIXME: Remove all overrides of this and change layerTreeView() above to A SSERT_NOT_REACHED. 68 // FIXME: Remove all overrides of this and change layerTreeView() above to A SSERT_NOT_REACHED.
72 virtual bool allowsBrokenNullLayerTreeView() const { return false; } 69 virtual bool allowsBrokenNullLayerTreeView() const { return false; }
73 70
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // migration is completed. 188 // migration is completed.
192 virtual void convertWindowToViewport(WebFloatRect* rect) {} 189 virtual void convertWindowToViewport(WebFloatRect* rect) {}
193 190
194 protected: 191 protected:
195 ~WebWidgetClient() { } 192 ~WebWidgetClient() { }
196 }; 193 };
197 194
198 } // namespace blink 195 } // namespace blink
199 196
200 #endif 197 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebViewClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698