| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #ifndef WebWidget_h | 32 #ifndef WebWidget_h |
| 33 #define WebWidget_h | 33 #define WebWidget_h |
| 34 | 34 |
| 35 #include "../platform/WebCanvas.h" | 35 #include "../platform/WebCanvas.h" |
| 36 #include "../platform/WebCommon.h" | 36 #include "../platform/WebCommon.h" |
| 37 #include "../platform/WebFloatSize.h" | 37 #include "../platform/WebFloatSize.h" |
| 38 #include "../platform/WebFrameTimingEvent.h" | 38 #include "../platform/WebFrameTimingEvent.h" |
| 39 #include "../platform/WebInputEventResult.h" |
| 39 #include "../platform/WebPoint.h" | 40 #include "../platform/WebPoint.h" |
| 40 #include "../platform/WebRect.h" | 41 #include "../platform/WebRect.h" |
| 41 #include "../platform/WebSize.h" | 42 #include "../platform/WebSize.h" |
| 42 #include "../platform/WebTopControlsState.h" | 43 #include "../platform/WebTopControlsState.h" |
| 43 #include "WebCompositionUnderline.h" | 44 #include "WebCompositionUnderline.h" |
| 44 #include "WebTextDirection.h" | 45 #include "WebTextDirection.h" |
| 45 #include "WebTextInputInfo.h" | 46 #include "WebTextInputInfo.h" |
| 46 | 47 |
| 47 namespace blink { | 48 namespace blink { |
| 48 | 49 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // The caller is responsible for keeping the WebCompositeAndReadbackAsyncCal
lback | 115 // The caller is responsible for keeping the WebCompositeAndReadbackAsyncCal
lback |
| 115 // object alive until it is called. This should only be called when | 116 // object alive until it is called. This should only be called when |
| 116 // isAcceleratedCompositingActive() is true. | 117 // isAcceleratedCompositingActive() is true. |
| 117 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) { } | 118 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) { } |
| 118 | 119 |
| 119 // Called to inform the WebWidget of a change in theme. | 120 // Called to inform the WebWidget of a change in theme. |
| 120 // Implementors that cache rendered copies of widgets need to re-render | 121 // Implementors that cache rendered copies of widgets need to re-render |
| 121 // on receiving this message | 122 // on receiving this message |
| 122 virtual void themeChanged() { } | 123 virtual void themeChanged() { } |
| 123 | 124 |
| 124 // Called to inform the WebWidget of an input event. Returns true if | 125 // Called to inform the WebWidget of an input event. |
| 125 // the event has been processed, false otherwise. | 126 virtual WebInputEventResult handleInputEvent(const WebInputEvent&) { return
WebInputEventResult::NotHandled; } |
| 126 virtual bool handleInputEvent(const WebInputEvent&) { return false; } | |
| 127 | 127 |
| 128 // Called to inform the WebWidget of the mouse cursor's visibility. | 128 // Called to inform the WebWidget of the mouse cursor's visibility. |
| 129 virtual void setCursorVisibilityState(bool isVisible) { } | 129 virtual void setCursorVisibilityState(bool isVisible) { } |
| 130 | 130 |
| 131 // Check whether the given point hits any registered touch event handlers. | 131 // Check whether the given point hits any registered touch event handlers. |
| 132 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } | 132 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } |
| 133 | 133 |
| 134 // Applies viewport related properties during a commit from the compositor | 134 // Applies viewport related properties during a commit from the compositor |
| 135 // thread. | 135 // thread. |
| 136 virtual void applyViewportDeltas( | 136 virtual void applyViewportDeltas( |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 // control what are valid states for top controls and if it should animate. | 264 // control what are valid states for top controls and if it should animate. |
| 265 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } | 265 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } |
| 266 | 266 |
| 267 protected: | 267 protected: |
| 268 ~WebWidget() { } | 268 ~WebWidget() { } |
| 269 }; | 269 }; |
| 270 | 270 |
| 271 } // namespace blink | 271 } // namespace blink |
| 272 | 272 |
| 273 #endif | 273 #endif |
| OLD | NEW |