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

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

Issue 842113005: Delete a bunch of noop paint invalidation code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix comment Created 5 years, 11 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 | « sky/engine/public/platform/WebLayer.h ('k') | sky/engine/public/web/WebWidgetClient.h » ('j') | 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual void close() = 0; 57 virtual void close() = 0;
58 58
59 // Returns the current size of the WebWidget. 59 // Returns the current size of the WebWidget.
60 virtual WebSize size() = 0; 60 virtual WebSize size() = 0;
61 61
62 // Called to resize the WebWidget. 62 // Called to resize the WebWidget.
63 virtual void resize(const WebSize&) = 0; 63 virtual void resize(const WebSize&) = 0;
64 64
65 virtual void beginFrame(const WebBeginFrameArgs& frameTime) = 0; 65 virtual void beginFrame(const WebBeginFrameArgs& frameTime) = 0;
66 66
67 // Called to layout the WebWidget. This MUST be called before Paint, 67 // Called to layout the WebWidget. This MUST be called before Paint.
68 // and it may result in calls to WebWidgetClient::didInvalidateRect.
69 virtual void layout() = 0; 68 virtual void layout() = 0;
70 69
71 // Called to paint the rectangular region within the WebWidget 70 // Called to paint the rectangular region within the WebWidget
72 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call 71 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call
73 // Layout before calling this method. It is okay to call paint 72 // Layout before calling this method. It is okay to call paint
74 // multiple times once layout has been called, assuming no other 73 // multiple times once layout has been called, assuming no other
75 // changes are made to the WebWidget (e.g., once events are 74 // changes are made to the WebWidget (e.g., once events are
76 // processed, it should be assumed that another call to layout is 75 // processed, it should be assumed that another call to layout is
77 // warranted before painting again). 76 // warranted before painting again).
78 virtual void paint(WebCanvas*, const WebRect& viewPort) = 0; 77 virtual void paint(WebCanvas*, const WebRect& viewPort) = 0;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // content. 138 // content.
140 virtual WebColor backgroundColor() const = 0; 139 virtual WebColor backgroundColor() const = 0;
141 140
142 protected: 141 protected:
143 ~WebWidget() { } 142 ~WebWidget() { }
144 }; 143 };
145 144
146 } // namespace blink 145 } // namespace blink
147 146
148 #endif // SKY_ENGINE_PUBLIC_WEB_WEBWIDGET_H_ 147 #endif // SKY_ENGINE_PUBLIC_WEB_WEBWIDGET_H_
OLDNEW
« no previous file with comments | « sky/engine/public/platform/WebLayer.h ('k') | sky/engine/public/web/WebWidgetClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698