| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // with the tap. | 168 // with the tap. |
| 169 // This provides a heuristic to help identify when a page is doing | 169 // This provides a heuristic to help identify when a page is doing |
| 170 // something as a result of a tap without explicitly consuming the event. | 170 // something as a result of a tap without explicitly consuming the event. |
| 171 virtual void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, | 171 virtual void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, |
| 172 const WebNode& tappedNode, bool pageChanged) { } | 172 const WebNode& tappedNode, bool pageChanged) { } |
| 173 | 173 |
| 174 // Called immediately after a mousedown event is dispatched due to a mouse | 174 // Called immediately after a mousedown event is dispatched due to a mouse |
| 175 // press or gesture tap. | 175 // press or gesture tap. |
| 176 // Note: This is called even when the mouse down event is prevent default. | 176 // Note: This is called even when the mouse down event is prevent default. |
| 177 virtual void onMouseDown(const WebNode& mouseDownNode) { } | 177 virtual void onMouseDown(const WebNode& mouseDownNode) { } |
| 178 |
| 179 // Converts the WebRect from viewport coordinates to screen coordinates. |
| 180 virtual void convertViewportToScreen(WebRect* rect) {} |
| 181 |
| 178 protected: | 182 protected: |
| 179 ~WebWidgetClient() { } | 183 ~WebWidgetClient() { } |
| 180 }; | 184 }; |
| 181 | 185 |
| 182 } // namespace blink | 186 } // namespace blink |
| 183 | 187 |
| 184 #endif | 188 #endif |
| OLD | NEW |