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

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

Issue 322553006: Remove obsolete enterForceCompositing function (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 | « no previous file | 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual void didExitFullScreen() { } 87 virtual void didExitFullScreen() { }
88 88
89 // Called to update imperative animation state. This should be called before 89 // Called to update imperative animation state. This should be called before
90 // paint, although the client can rate-limit these calls. 90 // paint, although the client can rate-limit these calls.
91 virtual void animate(double monotonicFrameBeginTime) { } 91 virtual void animate(double monotonicFrameBeginTime) { }
92 92
93 // Called to layout the WebWidget. This MUST be called before Paint, 93 // Called to layout the WebWidget. This MUST be called before Paint,
94 // and it may result in calls to WebWidgetClient::didInvalidateRect. 94 // and it may result in calls to WebWidgetClient::didInvalidateRect.
95 virtual void layout() { } 95 virtual void layout() { }
96 96
97 // Called to toggle the WebWidget in or out of force compositing mode. This
98 // should be called before paint.
99 // FIXME: Remove this once WebPopuMenuImpl stops overriding it. crbug.com/37 8029
100 virtual void enterForceCompositingMode(bool enter) { }
101
102 // Called to paint the rectangular region within the WebWidget 97 // Called to paint the rectangular region within the WebWidget
103 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call 98 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call
104 // Layout before calling this method. It is okay to call paint 99 // Layout before calling this method. It is okay to call paint
105 // multiple times once layout has been called, assuming no other 100 // multiple times once layout has been called, assuming no other
106 // changes are made to the WebWidget (e.g., once events are 101 // changes are made to the WebWidget (e.g., once events are
107 // processed, it should be assumed that another call to layout is 102 // processed, it should be assumed that another call to layout is
108 // warranted before painting again). 103 // warranted before painting again).
109 virtual void paint(WebCanvas*, const WebRect& viewPort) { } 104 virtual void paint(WebCanvas*, const WebRect& viewPort) { }
110 105
111 virtual void paintCompositedDeprecated(WebCanvas*, const WebRect&) { } 106 virtual void paintCompositedDeprecated(WebCanvas*, const WebRect&) { }
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // content. 243 // content.
249 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } 244 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ }
250 245
251 protected: 246 protected:
252 ~WebWidget() { } 247 ~WebWidget() { }
253 }; 248 };
254 249
255 } // namespace blink 250 } // namespace blink
256 251
257 #endif 252 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698