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

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

Issue 803863003: Delete paint invalidation rect tracking. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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/core/frame/FrameView.cpp ('k') | sky/engine/web/WebViewImpl.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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // Called to paint the rectangular region within the WebWidget 71 // Called to paint the rectangular region within the WebWidget
72 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call 72 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call
73 // Layout before calling this method. It is okay to call paint 73 // Layout before calling this method. It is okay to call paint
74 // multiple times once layout has been called, assuming no other 74 // multiple times once layout has been called, assuming no other
75 // changes are made to the WebWidget (e.g., once events are 75 // changes are made to the WebWidget (e.g., once events are
76 // processed, it should be assumed that another call to layout is 76 // processed, it should be assumed that another call to layout is
77 // warranted before painting again). 77 // warranted before painting again).
78 virtual void paint(WebCanvas*, const WebRect& viewPort) = 0; 78 virtual void paint(WebCanvas*, const WebRect& viewPort) = 0;
79 79
80 // Returns true if we've started tracking repaint rectangles.
81 virtual bool isTrackingRepaints() const = 0;
82
83 // Called to inform the WebWidget of an input event. Returns true if 80 // Called to inform the WebWidget of an input event. Returns true if
84 // the event has been processed, false otherwise. 81 // the event has been processed, false otherwise.
85 virtual bool handleInputEvent(const WebInputEvent&) = 0; 82 virtual bool handleInputEvent(const WebInputEvent&) = 0;
86 83
87 // Called to inform the WebWidget of the mouse cursor's visibility. 84 // Called to inform the WebWidget of the mouse cursor's visibility.
88 virtual void setCursorVisibilityState(bool isVisible) = 0; 85 virtual void setCursorVisibilityState(bool isVisible) = 0;
89 86
90 // Called to inform the WebWidget that mouse capture was lost. 87 // Called to inform the WebWidget that mouse capture was lost.
91 virtual void mouseCaptureLost() = 0; 88 virtual void mouseCaptureLost() = 0;
92 89
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // content. 139 // content.
143 virtual WebColor backgroundColor() const = 0; 140 virtual WebColor backgroundColor() const = 0;
144 141
145 protected: 142 protected:
146 ~WebWidget() { } 143 ~WebWidget() { }
147 }; 144 };
148 145
149 } // namespace blink 146 } // namespace blink
150 147
151 #endif // SKY_ENGINE_PUBLIC_WEB_WEBWIDGET_H_ 148 #endif // SKY_ENGINE_PUBLIC_WEB_WEBWIDGET_H_
OLDNEW
« no previous file with comments | « sky/engine/core/frame/FrameView.cpp ('k') | sky/engine/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698