| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 class FullscreenController; | 77 class FullscreenController; |
| 78 class InspectorOverlay; | 78 class InspectorOverlay; |
| 79 class LinkHighlightImpl; | 79 class LinkHighlightImpl; |
| 80 class PageOverlay; | 80 class PageOverlay; |
| 81 class PageScaleConstraintsSet; | 81 class PageScaleConstraintsSet; |
| 82 class PaintLayerCompositor; | 82 class PaintLayerCompositor; |
| 83 class UserGestureToken; | 83 class UserGestureToken; |
| 84 class WebActiveGestureAnimation; | 84 class WebActiveGestureAnimation; |
| 85 class WebDevToolsAgentImpl; | 85 class WebDevToolsAgentImpl; |
| 86 class WebElement; | 86 class WebElement; |
| 87 class WebInputMethodControllerImpl; |
| 87 class WebLayerTreeView; | 88 class WebLayerTreeView; |
| 88 class WebLocalFrame; | 89 class WebLocalFrame; |
| 89 class WebLocalFrameImpl; | 90 class WebLocalFrameImpl; |
| 90 class WebImage; | 91 class WebImage; |
| 91 class CompositorMutatorImpl; | 92 class CompositorMutatorImpl; |
| 92 class WebPagePopupImpl; | 93 class WebPagePopupImpl; |
| 93 class WebPlugin; | 94 class WebPlugin; |
| 94 class WebRemoteFrame; | 95 class WebRemoteFrame; |
| 95 class WebSelection; | 96 class WebSelection; |
| 96 class WebSettingsImpl; | 97 class WebSettingsImpl; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 void setCursorVisibilityState(bool isVisible) override; | 130 void setCursorVisibilityState(bool isVisible) override; |
| 130 bool hasTouchEventHandlersAt(const WebPoint&) override; | 131 bool hasTouchEventHandlersAt(const WebPoint&) override; |
| 131 | 132 |
| 132 void applyViewportDeltas(const WebFloatSize& visualViewportDelta, | 133 void applyViewportDeltas(const WebFloatSize& visualViewportDelta, |
| 133 const WebFloatSize& layoutViewportDelta, | 134 const WebFloatSize& layoutViewportDelta, |
| 134 const WebFloatSize& elasticOverscrollDelta, | 135 const WebFloatSize& elasticOverscrollDelta, |
| 135 float pageScaleDelta, | 136 float pageScaleDelta, |
| 136 float browserControlsShownRatioDelta) override; | 137 float browserControlsShownRatioDelta) override; |
| 137 void mouseCaptureLost() override; | 138 void mouseCaptureLost() override; |
| 138 void setFocus(bool enable) override; | 139 void setFocus(bool enable) override; |
| 139 bool setComposition(const WebString& text, | |
| 140 const WebVector<WebCompositionUnderline>& underlines, | |
| 141 int selectionStart, | |
| 142 int selectionEnd) override; | |
| 143 bool commitText(const WebString& text, int relativeCaretPosition) override; | |
| 144 bool finishComposingText( | |
| 145 ConfirmCompositionBehavior selectionBehavior) override; | |
| 146 WebRange compositionRange() override; | 140 WebRange compositionRange() override; |
| 147 WebTextInputInfo textInputInfo() override; | 141 WebTextInputInfo textInputInfo() override; |
| 148 WebTextInputType textInputType() override; | 142 WebTextInputType textInputType() override; |
| 149 WebColor backgroundColor() const override; | 143 WebColor backgroundColor() const override; |
| 150 WebPagePopup* pagePopup() const override; | 144 WebPagePopup* pagePopup() const override; |
| 151 bool selectionBounds(WebRect& anchor, WebRect& focus) const override; | 145 bool selectionBounds(WebRect& anchor, WebRect& focus) const override; |
| 152 bool selectionTextDirection(WebTextDirection& start, | 146 bool selectionTextDirection(WebTextDirection& start, |
| 153 WebTextDirection& end) const override; | 147 WebTextDirection& end) const override; |
| 154 bool isSelectionAnchorFirst() const override; | 148 bool isSelectionAnchorFirst() const override; |
| 155 WebRange caretOrSelectionRange() override; | 149 WebRange caretOrSelectionRange() override; |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } | 499 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } |
| 506 | 500 |
| 507 bool isTransparent() const; | 501 bool isTransparent() const; |
| 508 void setIsTransparent(bool value); | 502 void setIsTransparent(bool value); |
| 509 | 503 |
| 510 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } | 504 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } |
| 511 | 505 |
| 512 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); } | 506 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); } |
| 513 | 507 |
| 514 private: | 508 private: |
| 509 // Returns the currently active WebInputMethodController which the one |
| 510 // corresponding to the focused frame. It will return nullptr if there are |
| 511 // none or |m_imeAcceptEvents| is false. |
| 512 WebInputMethodControllerImpl* getActiveWebInputMethodController() const; |
| 513 |
| 515 InspectorOverlay* inspectorOverlay(); | 514 InspectorOverlay* inspectorOverlay(); |
| 516 | 515 |
| 517 void setPageScaleFactorAndLocation(float, const FloatPoint&); | 516 void setPageScaleFactorAndLocation(float, const FloatPoint&); |
| 518 void propagateZoomFactorToLocalFrameRoots(Frame*, float); | 517 void propagateZoomFactorToLocalFrameRoots(Frame*, float); |
| 519 | 518 |
| 520 void scrollAndRescaleViewports(float scaleFactor, | 519 void scrollAndRescaleViewports(float scaleFactor, |
| 521 const IntPoint& mainFrameOrigin, | 520 const IntPoint& mainFrameOrigin, |
| 522 const FloatPoint& visualViewportOrigin); | 521 const FloatPoint& visualViewportOrigin); |
| 523 | 522 |
| 524 float maximumLegiblePageScale() const; | 523 float maximumLegiblePageScale() const; |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 761 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
| 763 }; | 762 }; |
| 764 | 763 |
| 765 // We have no ways to check if the specified WebView is an instance of | 764 // We have no ways to check if the specified WebView is an instance of |
| 766 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 765 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 767 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 766 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 768 | 767 |
| 769 } // namespace blink | 768 } // namespace blink |
| 770 | 769 |
| 771 #endif | 770 #endif |
| OLD | NEW |