| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 // coordinates. | 158 // coordinates. |
| 159 // |tappedNode| is the node that the mouseDown event hit, provided so the | 159 // |tappedNode| is the node that the mouseDown event hit, provided so the |
| 160 // UI can be shown only on certain kinds of nodes in specific locations. | 160 // UI can be shown only on certain kinds of nodes in specific locations. |
| 161 // |pageChanged| is true if and only if the DOM tree or style was | 161 // |pageChanged| is true if and only if the DOM tree or style was |
| 162 // modified during the dispatch of the mouse*, or click events associated | 162 // modified during the dispatch of the mouse*, or click events associated |
| 163 // with the tap. | 163 // with the tap. |
| 164 // This provides a heuristic to help identify when a page is doing | 164 // This provides a heuristic to help identify when a page is doing |
| 165 // something as a result of a tap without explicitly consuming the event. | 165 // something as a result of a tap without explicitly consuming the event. |
| 166 virtual void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, | 166 virtual void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, |
| 167 const WebNode& tappedNode, bool pageChanged) { } | 167 const WebNode& tappedNode, bool pageChanged) { } |
| 168 |
| 169 // Called immediately after a mousedown event is dispatched due to a mouse |
| 170 // press or gesture tap. |
| 171 // Note: This is called even when the mouse down event is prevent default. |
| 172 virtual void onMouseDown(const WebNode& mouseDownNode) { } |
| 168 protected: | 173 protected: |
| 169 ~WebWidgetClient() { } | 174 ~WebWidgetClient() { } |
| 170 }; | 175 }; |
| 171 | 176 |
| 172 } // namespace blink | 177 } // namespace blink |
| 173 | 178 |
| 174 #endif | 179 #endif |
| OLD | NEW |