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

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

Issue 2621303004: Keep track of coalesced events in main thread event queue (Closed)
Patch Set: Rebase Created 3 years, 10 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 | « third_party/WebKit/public/platform/WebCoalescedInputEvent.h ('k') | no next file » | 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 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // replaced. 222 // replaced.
223 virtual void applyReplacementRange(const WebRange&) {} 223 virtual void applyReplacementRange(const WebRange&) {}
224 224
225 protected: 225 protected:
226 ~WebWidget() {} 226 ~WebWidget() {}
227 }; 227 };
228 228
229 } // namespace blink 229 } // namespace blink
230 230
231 #endif 231 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebCoalescedInputEvent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698