OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 WebLocalFrameImpl* localFrameRootTemporary() const; | 344 WebLocalFrameImpl* localFrameRootTemporary() const; |
345 | 345 |
346 // Event related methods: | 346 // Event related methods: |
347 void mouseContextMenu(const WebMouseEvent&); | 347 void mouseContextMenu(const WebMouseEvent&); |
348 void mouseDoubleClick(const WebMouseEvent&); | 348 void mouseDoubleClick(const WebMouseEvent&); |
349 | 349 |
350 bool detectContentOnTouch(const GestureEventWithHitTestResults& targetedEven
t); | 350 bool detectContentOnTouch(const GestureEventWithHitTestResults& targetedEven
t); |
351 bool startPageScaleAnimation(const IntPoint& targetPosition, bool useAnchor,
float newScale, double durationInSeconds); | 351 bool startPageScaleAnimation(const IntPoint& targetPosition, bool useAnchor,
float newScale, double durationInSeconds); |
352 | 352 |
353 void hasTouchEventHandlers(bool); | 353 void hasTouchEventHandlers(bool); |
| 354 void hasTouchMoveEventHandlers(bool); |
354 | 355 |
355 // WebGestureCurveTarget implementation for fling. | 356 // WebGestureCurveTarget implementation for fling. |
356 bool scrollBy(const WebFloatSize& delta, const WebFloatSize& velocity) overr
ide; | 357 bool scrollBy(const WebFloatSize& delta, const WebFloatSize& velocity) overr
ide; |
357 | 358 |
358 // Handles context menu events orignated via the the keyboard. These | 359 // Handles context menu events orignated via the the keyboard. These |
359 // include the VK_APPS virtual key and the Shift+F10 combine. Code is | 360 // include the VK_APPS virtual key and the Shift+F10 combine. Code is |
360 // based on the Webkit function bool WebView::handleContextMenuEvent(WPARAM | 361 // based on the Webkit function bool WebView::handleContextMenuEvent(WPARAM |
361 // wParam, LPARAM lParam) in webkit\webkit\win\WebView.cpp. The only | 362 // wParam, LPARAM lParam) in webkit\webkit\win\WebView.cpp. The only |
362 // significant change in this function is the code to convert from a | 363 // significant change in this function is the code to convert from a |
363 // Keyboard event to the Right Mouse button down event. | 364 // Keyboard event to the Right Mouse button down event. |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 }; | 771 }; |
771 | 772 |
772 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 773 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
773 // We have no ways to check if the specified WebView is an instance of | 774 // We have no ways to check if the specified WebView is an instance of |
774 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 775 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
775 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 776 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
776 | 777 |
777 } // namespace blink | 778 } // namespace blink |
778 | 779 |
779 #endif | 780 #endif |
OLD | NEW |