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

Side by Side Diff: sky/engine/public/web/WebWidgetClient.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/web/WebWidget.h ('k') | sky/engine/web/BUILD.gn » ('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 30 matching lines...) Expand all
41 namespace blink { 41 namespace blink {
42 42
43 class WebGestureEvent; 43 class WebGestureEvent;
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.
52 virtual void didInvalidateRect(const WebRect&) { }
53
54 // Called when the Widget has changed size as a result of an auto-resize. 51 // Called when the Widget has changed size as a result of an auto-resize.
55 virtual void didAutoResize(const WebSize& newSize) { } 52 virtual void didAutoResize(const WebSize& newSize) { }
56 53
57 // Initialize compositing for this widget. 54 // Initialize compositing for this widget.
58 virtual void initializeLayerTreeView() { BLINK_ASSERT_NOT_REACHED(); }; 55 virtual void initializeLayerTreeView() { BLINK_ASSERT_NOT_REACHED(); };
59 56
60 // Sometimes the WebWidget enters a state where it will generate a sequence
61 // of invalidations that should not, by themselves, trigger the compositor
62 // to schedule a new frame. This call indicates to the embedder that it
63 // should suppress compositor scheduling temporarily.
64 virtual void suppressCompositorScheduling(bool enable) { }
65
66 // Indicates to the embedder that the compositor is about to begin a 57 // Indicates to the embedder that the compositor is about to begin a
67 // frame. This is primarily to signal to flow control mechanisms that a 58 // frame. This is primarily to signal to flow control mechanisms that a
68 // frame is beginning, not to perform actual painting work. 59 // frame is beginning, not to perform actual painting work.
69 virtual void willBeginCompositorFrame() { } 60 virtual void willBeginCompositorFrame() { }
70 61
71 // Indicates to the embedder that the WebWidget is ready for additional 62 // Indicates to the embedder that the WebWidget is ready for additional
72 // input. 63 // input.
73 virtual void didBecomeReadyForAdditionalInput() { } 64 virtual void didBecomeReadyForAdditionalInput() { }
74 65
75 // Called for compositing mode when a frame commit operation has finished. 66 // Called for compositing mode when a frame commit operation has finished.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // Request the browser to show the IME for current input type. 138 // Request the browser to show the IME for current input type.
148 virtual void showImeIfNeeded() { } 139 virtual void showImeIfNeeded() { }
149 140
150 protected: 141 protected:
151 ~WebWidgetClient() { } 142 ~WebWidgetClient() { }
152 }; 143 };
153 144
154 } // namespace blink 145 } // namespace blink
155 146
156 #endif // SKY_ENGINE_PUBLIC_WEB_WEBWIDGETCLIENT_H_ 147 #endif // SKY_ENGINE_PUBLIC_WEB_WEBWIDGETCLIENT_H_
OLDNEW
« no previous file with comments | « sky/engine/public/web/WebWidget.h ('k') | sky/engine/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698