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

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

Issue 762723002: Remove ENABLE(COMPOSITOR). (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 51 // Called when a region of the WebWidget needs to be re-painted.
52 virtual void didInvalidateRect(const WebRect&) { } 52 virtual void didInvalidateRect(const WebRect&) { }
53 53
54 // Called when the Widget has changed size as a result of an auto-resize. 54 // Called when the Widget has changed size as a result of an auto-resize.
55 virtual void didAutoResize(const WebSize& newSize) { } 55 virtual void didAutoResize(const WebSize& newSize) { }
56 56
57 // Initialize compositing for this widget. 57 // Initialize compositing for this widget.
58 // Return a compositing view used for this widget owned by the 58 virtual void initializeLayerTreeView() { BLINK_ASSERT_NOT_REACHED(); };
59 // WebWidgetClient.
60 virtual WebLayerTreeView* initializeLayerTreeView() { BLINK_ASSERT_NOT_REACH ED(); return 0; }
61 59
62 // Sometimes the WebWidget enters a state where it will generate a sequence 60 // Sometimes the WebWidget enters a state where it will generate a sequence
63 // of invalidations that should not, by themselves, trigger the compositor 61 // of invalidations that should not, by themselves, trigger the compositor
64 // to schedule a new frame. This call indicates to the embedder that it 62 // to schedule a new frame. This call indicates to the embedder that it
65 // should suppress compositor scheduling temporarily. 63 // should suppress compositor scheduling temporarily.
66 virtual void suppressCompositorScheduling(bool enable) { } 64 virtual void suppressCompositorScheduling(bool enable) { }
67 65
68 // Indicates to the embedder that the compositor is about to begin a 66 // Indicates to the embedder that the compositor is about to begin a
69 // frame. This is primarily to signal to flow control mechanisms that a 67 // frame. This is primarily to signal to flow control mechanisms that a
70 // frame is beginning, not to perform actual painting work. 68 // frame is beginning, not to perform actual painting work.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Request the browser to show the IME for current input type. 162 // Request the browser to show the IME for current input type.
165 virtual void showImeIfNeeded() { } 163 virtual void showImeIfNeeded() { }
166 164
167 protected: 165 protected:
168 ~WebWidgetClient() { } 166 ~WebWidgetClient() { }
169 }; 167 };
170 168
171 } // namespace blink 169 } // namespace blink
172 170
173 #endif // SKY_ENGINE_PUBLIC_WEB_WEBWIDGETCLIENT_H_ 171 #endif // SKY_ENGINE_PUBLIC_WEB_WEBWIDGETCLIENT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/compositing/RenderLayerCompositor.cpp ('k') | sky/engine/web/WebSettingsImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698