Chromium Code Reviews| 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 when there is mouse press or gesture tap event. | |
| 170 virtual void onClickInput(const WebNode& clickedNode) { } | |
|
Rick Byers
2015/06/18 17:02:10
You've implemented this to be at mousedown time (a
Yufeng Shen (Slow to review)
2015/06/18 18:29:04
Done.
| |
| 168 protected: | 171 protected: |
| 169 ~WebWidgetClient() { } | 172 ~WebWidgetClient() { } |
| 170 }; | 173 }; |
| 171 | 174 |
| 172 } // namespace blink | 175 } // namespace blink |
| 173 | 176 |
| 174 #endif | 177 #endif |
| OLD | NEW |