| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 float topControlsHeight, | 180 float topControlsHeight, |
| 181 bool topControlsShrinkLayout) override; | 181 bool topControlsShrinkLayout) override; |
| 182 WebFrame* mainFrame() override; | 182 WebFrame* mainFrame() override; |
| 183 WebFrame* findFrameByName( | 183 WebFrame* findFrameByName( |
| 184 const WebString& name, WebFrame* relativeToFrame) override; | 184 const WebString& name, WebFrame* relativeToFrame) override; |
| 185 WebFrame* focusedFrame() override; | 185 WebFrame* focusedFrame() override; |
| 186 void setFocusedFrame(WebFrame*) override; | 186 void setFocusedFrame(WebFrame*) override; |
| 187 void focusDocumentView(WebFrame*) override; | 187 void focusDocumentView(WebFrame*) override; |
| 188 void setInitialFocus(bool reverse) override; | 188 void setInitialFocus(bool reverse) override; |
| 189 void clearFocusedElement() override; | 189 void clearFocusedElement() override; |
| 190 bool scrollFocusedNodeIntoRect(const WebRect&) override; | 190 bool scrollFocusedEditableElementIntoRect(const WebRect&) override; |
| 191 void smoothScroll(int targetX, int targetY, long durationMs) override; | 191 void smoothScroll(int targetX, int targetY, long durationMs) override; |
| 192 void zoomToFindInPageRect(const WebRect&); | 192 void zoomToFindInPageRect(const WebRect&); |
| 193 void advanceFocus(bool reverse) override; | 193 void advanceFocus(bool reverse) override; |
| 194 void advanceFocusAcrossFrames(WebFocusType, WebRemoteFrame* from, WebLocalFr
ame* to) override; | 194 void advanceFocusAcrossFrames(WebFocusType, WebRemoteFrame* from, WebLocalFr
ame* to) override; |
| 195 double zoomLevel() override; | 195 double zoomLevel() override; |
| 196 double setZoomLevel(double) override; | 196 double setZoomLevel(double) override; |
| 197 void zoomLimitsChanged(double minimumZoomLevel, double maximumZoomLevel) ove
rride; | 197 void zoomLimitsChanged(double minimumZoomLevel, double maximumZoomLevel) ove
rride; |
| 198 float textZoomFactor() override; | 198 float textZoomFactor() override; |
| 199 float setTextZoomFactor(float) override; | 199 float setTextZoomFactor(float) override; |
| 200 bool zoomToMultipleTargetsRect(const WebRect&) override; | 200 bool zoomToMultipleTargetsRect(const WebRect&) override; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 | 336 |
| 337 // FIXME: Temporary method to accommodate out-of-process frame ancestors; | 337 // FIXME: Temporary method to accommodate out-of-process frame ancestors; |
| 338 // will be removed when there can be multiple WebWidgets for a single page. | 338 // will be removed when there can be multiple WebWidgets for a single page. |
| 339 WebLocalFrameImpl* localFrameRootTemporary() const; | 339 WebLocalFrameImpl* localFrameRootTemporary() const; |
| 340 | 340 |
| 341 // Event related methods: | 341 // Event related methods: |
| 342 void mouseContextMenu(const WebMouseEvent&); | 342 void mouseContextMenu(const WebMouseEvent&); |
| 343 void mouseDoubleClick(const WebMouseEvent&); | 343 void mouseDoubleClick(const WebMouseEvent&); |
| 344 | 344 |
| 345 bool detectContentOnTouch(const GestureEventWithHitTestResults& targetedEven
t); | 345 bool detectContentOnTouch(const GestureEventWithHitTestResults& targetedEven
t); |
| 346 bool startPageScaleAnimation(const IntPoint& targetPosition, bool useAnchor,
float newScale, double durationInSeconds); | 346 void startPageScaleAnimation(const IntPoint& targetPosition, bool useAnchor,
float newScale, double durationInSeconds); |
| 347 | 347 |
| 348 void hasTouchEventHandlers(bool); | 348 void hasTouchEventHandlers(bool); |
| 349 | 349 |
| 350 // WebGestureCurveTarget implementation for fling. | 350 // WebGestureCurveTarget implementation for fling. |
| 351 bool scrollBy(const WebFloatSize& delta, const WebFloatSize& velocity) overr
ide; | 351 bool scrollBy(const WebFloatSize& delta, const WebFloatSize& velocity) overr
ide; |
| 352 | 352 |
| 353 // Handles context menu events orignated via the the keyboard. These | 353 // Handles context menu events orignated via the the keyboard. These |
| 354 // include the VK_APPS virtual key and the Shift+F10 combine. Code is | 354 // include the VK_APPS virtual key and the Shift+F10 combine. Code is |
| 355 // based on the Webkit function bool WebView::handleContextMenuEvent(WPARAM | 355 // based on the Webkit function bool WebView::handleContextMenuEvent(WPARAM |
| 356 // wParam, LPARAM lParam) in webkit\webkit\win\WebView.cpp. The only | 356 // wParam, LPARAM lParam) in webkit\webkit\win\WebView.cpp. The only |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 double m_lastFrameTimeMonotonic; | 755 double m_lastFrameTimeMonotonic; |
| 756 }; | 756 }; |
| 757 | 757 |
| 758 // We have no ways to check if the specified WebView is an instance of | 758 // We have no ways to check if the specified WebView is an instance of |
| 759 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 759 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 760 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 760 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 761 | 761 |
| 762 } // namespace blink | 762 } // namespace blink |
| 763 | 763 |
| 764 #endif | 764 #endif |
| OLD | NEW |