| OLD | NEW |
| 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 29 matching lines...) Expand all Loading... |
| 40 #include "../platform/WebSize.h" | 40 #include "../platform/WebSize.h" |
| 41 #include "../platform/WebTopControlsState.h" | 41 #include "../platform/WebTopControlsState.h" |
| 42 #include "WebCompositionUnderline.h" | 42 #include "WebCompositionUnderline.h" |
| 43 #include "WebTextDirection.h" | 43 #include "WebTextDirection.h" |
| 44 #include "WebTextInputInfo.h" | 44 #include "WebTextInputInfo.h" |
| 45 | 45 |
| 46 namespace blink { | 46 namespace blink { |
| 47 | 47 |
| 48 class WebCompositeAndReadbackAsyncCallback; | 48 class WebCompositeAndReadbackAsyncCallback; |
| 49 class WebInputEvent; | 49 class WebInputEvent; |
| 50 class WebLayoutAndPaintAsyncCallback; | 50 class WebCompositeCallback; |
| 51 class WebPagePopup; | 51 class WebPagePopup; |
| 52 class WebString; | 52 class WebString; |
| 53 struct WebPoint; | 53 struct WebPoint; |
| 54 template <typename T> class WebVector; | 54 template <typename T> class WebVector; |
| 55 | 55 |
| 56 class WebWidget { | 56 class WebWidget { |
| 57 public: | 57 public: |
| 58 // This method closes and deletes the WebWidget. | 58 // This method closes and deletes the WebWidget. |
| 59 virtual void close() { } | 59 virtual void close() { } |
| 60 | 60 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 91 // multiple times once layout has been called, assuming no other | 91 // multiple times once layout has been called, assuming no other |
| 92 // changes are made to the WebWidget (e.g., once events are | 92 // changes are made to the WebWidget (e.g., once events are |
| 93 // processed, it should be assumed that another call to layout is | 93 // processed, it should be assumed that another call to layout is |
| 94 // warranted before painting again). | 94 // warranted before painting again). |
| 95 virtual void paint(WebCanvas*, const WebRect& viewPort) { } | 95 virtual void paint(WebCanvas*, const WebRect& viewPort) { } |
| 96 | 96 |
| 97 // Similar to paint() but ignores compositing decisions, squashing all | 97 // Similar to paint() but ignores compositing decisions, squashing all |
| 98 // contents of the WebWidget into the output given to the WebCanvas. | 98 // contents of the WebWidget into the output given to the WebCanvas. |
| 99 virtual void paintIgnoringCompositing(WebCanvas*, const WebRect&) {} | 99 virtual void paintIgnoringCompositing(WebCanvas*, const WebRect&) {} |
| 100 | 100 |
| 101 // Run layout and paint of all pending document changes asynchronously. | |
| 102 // The caller is resposible for keeping the WebLayoutAndPaintAsyncCallback | |
| 103 // object alive until it is called. | |
| 104 virtual void layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) { } | |
| 105 | |
| 106 // The caller is responsible for keeping the WebCompositeAndReadbackAsyncCal
lback | 101 // The caller is responsible for keeping the WebCompositeAndReadbackAsyncCal
lback |
| 107 // object alive until it is called. This should only be called when | 102 // object alive until it is called. This should only be called when |
| 108 // isAcceleratedCompositingActive() is true. | 103 // isAcceleratedCompositingActive() is true. |
| 109 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) { } | 104 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) { } |
| 110 | 105 |
| 111 // Called to inform the WebWidget of a change in theme. | 106 // Called to inform the WebWidget of a change in theme. |
| 112 // Implementors that cache rendered copies of widgets need to re-render | 107 // Implementors that cache rendered copies of widgets need to re-render |
| 113 // on receiving this message | 108 // on receiving this message |
| 114 virtual void themeChanged() { } | 109 virtual void themeChanged() { } |
| 115 | 110 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 // or potential performance issues. | 242 // or potential performance issues. |
| 248 virtual void reportFixedRasterScaleUseCounters(bool hasBlurryContent, bool h
asPotentialPerformanceRegression) {} | 243 virtual void reportFixedRasterScaleUseCounters(bool hasBlurryContent, bool h
asPotentialPerformanceRegression) {} |
| 249 | 244 |
| 250 protected: | 245 protected: |
| 251 ~WebWidget() { } | 246 ~WebWidget() { } |
| 252 }; | 247 }; |
| 253 | 248 |
| 254 } // namespace blink | 249 } // namespace blink |
| 255 | 250 |
| 256 #endif | 251 #endif |
| OLD | NEW |