| 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 |rect| from Blink's Viewport coordinates to the |
| 180 // coordinates in the native window used to display the content, in |
| 181 // DIP. They're identical in tradional world, but will differ when |
| 182 // use-zoom-for-dsf feature is eanbled, and Viewport coordinates |
| 183 // becomes DSF times larger than window coordinates. |
| 184 // TODO(oshima): Update this comment when all platforms are migrated. |
| 185 virtual void convertViewportToWindow(WebRect* rect) {} |
| 186 |
| 178 protected: | 187 protected: |
| 179 ~WebWidgetClient() { } | 188 ~WebWidgetClient() { } |
| 180 }; | 189 }; |
| 181 | 190 |
| 182 } // namespace blink | 191 } // namespace blink |
| 183 | 192 |
| 184 #endif | 193 #endif |
| OLD | NEW |