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

Side by Side Diff: third_party/WebKit/public/web/WebWidget.h

Issue 2576013002: Introducing WebCoalescedInputEvent and inclusion in content/common (Closed)
Patch Set: Created 4 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 29 matching lines...) Expand all
40 #include "../platform/WebRect.h" 40 #include "../platform/WebRect.h"
41 #include "../platform/WebSize.h" 41 #include "../platform/WebSize.h"
42 #include "../platform/WebTextInputInfo.h" 42 #include "../platform/WebTextInputInfo.h"
43 #include "WebCompositionUnderline.h" 43 #include "WebCompositionUnderline.h"
44 #include "WebRange.h" 44 #include "WebRange.h"
45 #include "WebTextDirection.h" 45 #include "WebTextDirection.h"
46 46
47 namespace blink { 47 namespace blink {
48 48
49 class WebCompositeAndReadbackAsyncCallback; 49 class WebCompositeAndReadbackAsyncCallback;
50 class WebInputEvent; 50 class WebCoalescedInputEvent;
51 class WebLayoutAndPaintAsyncCallback; 51 class WebLayoutAndPaintAsyncCallback;
52 class WebPagePopup; 52 class WebPagePopup;
53 struct WebPoint; 53 struct WebPoint;
54 template <typename T> 54 template <typename T>
55 class WebVector; 55 class WebVector;
56 56
57 class WebWidget { 57 class WebWidget {
58 public: 58 public:
59 // This method closes and deletes the WebWidget. 59 // This method closes and deletes the WebWidget.
60 virtual void close() {} 60 virtual void close() {}
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // should only be called when isAcceleratedCompositingActive() is true. 109 // should only be called when isAcceleratedCompositingActive() is true.
110 virtual void compositeAndReadbackAsync( 110 virtual void compositeAndReadbackAsync(
111 WebCompositeAndReadbackAsyncCallback*) {} 111 WebCompositeAndReadbackAsyncCallback*) {}
112 112
113 // Called to inform the WebWidget of a change in theme. 113 // Called to inform the WebWidget of a change in theme.
114 // Implementors that cache rendered copies of widgets need to re-render 114 // Implementors that cache rendered copies of widgets need to re-render
115 // on receiving this message 115 // on receiving this message
116 virtual void themeChanged() {} 116 virtual void themeChanged() {}
117 117
118 // Called to inform the WebWidget of an input event. 118 // Called to inform the WebWidget of an input event.
119 virtual WebInputEventResult handleInputEvent(const WebInputEvent&) { 119 virtual WebInputEventResult handleInputEvent(const WebCoalescedInputEvent&) {
120 return WebInputEventResult::NotHandled; 120 return WebInputEventResult::NotHandled;
121 } 121 }
122 122
123 // Called to inform the WebWidget of the mouse cursor's visibility. 123 // Called to inform the WebWidget of the mouse cursor's visibility.
124 virtual void setCursorVisibilityState(bool isVisible) {} 124 virtual void setCursorVisibilityState(bool isVisible) {}
125 125
126 // Check whether the given point hits any registered touch event handlers. 126 // Check whether the given point hits any registered touch event handlers.
127 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } 127 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; }
128 128
129 // Applies viewport related properties during a commit from the compositor 129 // Applies viewport related properties during a commit from the compositor
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // replaced. 231 // replaced.
232 virtual void applyReplacementRange(const WebRange&) {} 232 virtual void applyReplacementRange(const WebRange&) {}
233 233
234 protected: 234 protected:
235 ~WebWidget() {} 235 ~WebWidget() {}
236 }; 236 };
237 237
238 } // namespace blink 238 } // namespace blink
239 239
240 #endif 240 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698