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

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

Issue 713073003: remove updateTouchEventTargetRectsIfNeeded (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: moar Created 6 years, 1 month 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // on receiving this message 126 // on receiving this message
127 virtual void themeChanged() { } 127 virtual void themeChanged() { }
128 128
129 // Called to inform the WebWidget of an input event. Returns true if 129 // Called to inform the WebWidget of an input event. Returns true if
130 // the event has been processed, false otherwise. 130 // the event has been processed, false otherwise.
131 virtual bool handleInputEvent(const WebInputEvent&) { return false; } 131 virtual bool handleInputEvent(const WebInputEvent&) { return false; }
132 132
133 // Called to inform the WebWidget of the mouse cursor's visibility. 133 // Called to inform the WebWidget of the mouse cursor's visibility.
134 virtual void setCursorVisibilityState(bool isVisible) { } 134 virtual void setCursorVisibilityState(bool isVisible) { }
135 135
136 // Check whether the given point hits any registered touch event handlers.
137 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; }
138
139 // Called to inform the WebWidget that mouse capture was lost. 136 // Called to inform the WebWidget that mouse capture was lost.
140 virtual void mouseCaptureLost() { } 137 virtual void mouseCaptureLost() { }
141 138
142 // Called to inform the WebWidget that it has gained or lost keyboard focus. 139 // Called to inform the WebWidget that it has gained or lost keyboard focus.
143 virtual void setFocus(bool) { } 140 virtual void setFocus(bool) { }
144 141
145 // Called to inform the WebWidget of a new composition text. 142 // Called to inform the WebWidget of a new composition text.
146 // If selectionStart and selectionEnd has the same value, then it indicates 143 // If selectionStart and selectionEnd has the same value, then it indicates
147 // the input caret position. If the text is empty, then the existing 144 // the input caret position. If the text is empty, then the existing
148 // composition text will be cancelled. 145 // composition text will be cancelled.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // content. 227 // content.
231 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } 228 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ }
232 229
233 protected: 230 protected:
234 ~WebWidget() { } 231 ~WebWidget() { }
235 }; 232 };
236 233
237 } // namespace blink 234 } // namespace blink
238 235
239 #endif 236 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698