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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 WebLocalFrameImpl* mainFrameImpl(); | 324 WebLocalFrameImpl* mainFrameImpl(); |
325 | 325 |
326 // FIXME: Temporary method to accommodate out-of-process frame ancestors; | 326 // FIXME: Temporary method to accommodate out-of-process frame ancestors; |
327 // will be removed when there can be multiple WebWidgets for a single page. | 327 // will be removed when there can be multiple WebWidgets for a single page. |
328 WebLocalFrameImpl* localFrameRootTemporary() const; | 328 WebLocalFrameImpl* localFrameRootTemporary() const; |
329 | 329 |
330 // Event related methods: | 330 // Event related methods: |
331 void mouseContextMenu(const WebMouseEvent&); | 331 void mouseContextMenu(const WebMouseEvent&); |
332 void mouseDoubleClick(const WebMouseEvent&); | 332 void mouseDoubleClick(const WebMouseEvent&); |
333 | 333 |
334 bool detectContentOnTouch(const WebPoint&); | 334 bool detectContentOnTouch(const GestureEventWithHitTestResults& targetedEven
t); |
335 bool startPageScaleAnimation(const IntPoint& targetPosition, bool useAnchor,
float newScale, double durationInSeconds); | 335 bool startPageScaleAnimation(const IntPoint& targetPosition, bool useAnchor,
float newScale, double durationInSeconds); |
336 | 336 |
337 void hasTouchEventHandlers(bool); | 337 void hasTouchEventHandlers(bool); |
338 | 338 |
339 // WebGestureCurveTarget implementation for fling. | 339 // WebGestureCurveTarget implementation for fling. |
340 virtual bool scrollBy(const WebFloatSize& delta, const WebFloatSize& velocit
y) OVERRIDE; | 340 virtual bool scrollBy(const WebFloatSize& delta, const WebFloatSize& velocit
y) OVERRIDE; |
341 | 341 |
342 // Handles context menu events orignated via the the keyboard. These | 342 // Handles context menu events orignated via the the keyboard. These |
343 // include the VK_APPS virtual key and the Shift+F10 combine. Code is | 343 // include the VK_APPS virtual key and the Shift+F10 combine. Code is |
344 // based on the Webkit function bool WebView::handleContextMenuEvent(WPARAM | 344 // based on the Webkit function bool WebView::handleContextMenuEvent(WPARAM |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 float m_topControlsContentOffset; | 737 float m_topControlsContentOffset; |
738 }; | 738 }; |
739 | 739 |
740 // We have no ways to check if the specified WebView is an instance of | 740 // We have no ways to check if the specified WebView is an instance of |
741 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 741 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
742 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 742 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
743 | 743 |
744 } // namespace blink | 744 } // namespace blink |
745 | 745 |
746 #endif | 746 #endif |
OLD | NEW |