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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 TopControls; | 83 class TopControls; |
84 class UserGestureToken; | 84 class UserGestureToken; |
85 class WebActiveGestureAnimation; | 85 class WebActiveGestureAnimation; |
86 class WebDevToolsAgentImpl; | 86 class WebDevToolsAgentImpl; |
87 class WebElement; | 87 class WebElement; |
| 88 class WebInputMethodControllerImpl; |
88 class WebLayerTreeView; | 89 class WebLayerTreeView; |
89 class WebLocalFrame; | 90 class WebLocalFrame; |
90 class WebLocalFrameImpl; | 91 class WebLocalFrameImpl; |
91 class WebImage; | 92 class WebImage; |
92 class CompositorMutatorImpl; | 93 class CompositorMutatorImpl; |
93 class WebPagePopupImpl; | 94 class WebPagePopupImpl; |
94 class WebPlugin; | 95 class WebPlugin; |
95 class WebRemoteFrame; | 96 class WebRemoteFrame; |
96 class WebSelection; | 97 class WebSelection; |
97 class WebSettingsImpl; | 98 class WebSettingsImpl; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 bool hasTouchEventHandlersAt(const WebPoint&) override; | 130 bool hasTouchEventHandlersAt(const WebPoint&) override; |
130 | 131 |
131 void applyViewportDeltas( | 132 void applyViewportDeltas( |
132 const WebFloatSize& visualViewportDelta, | 133 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 topControlsShownRatioDelta) override; | 137 float topControlsShownRatioDelta) override; |
137 void mouseCaptureLost() override; | 138 void mouseCaptureLost() override; |
138 void setFocus(bool enable) override; | 139 void setFocus(bool enable) override; |
139 bool setComposition( | |
140 const WebString& text, | |
141 const WebVector<WebCompositionUnderline>& underlines, | |
142 int selectionStart, | |
143 int selectionEnd) override; | |
144 bool commitText(const WebString& text, int relativeCaretPosition) override; | |
145 bool finishComposingText(ConfirmCompositionBehavior selectionBehavior) overr
ide; | |
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, WebTextDirection& end)
const override; | 146 bool selectionTextDirection(WebTextDirection& start, WebTextDirection& end)
const override; |
153 bool isSelectionAnchorFirst() const override; | 147 bool isSelectionAnchorFirst() const override; |
154 WebRange caretOrSelectionRange() override; | 148 WebRange caretOrSelectionRange() override; |
155 void setTextDirection(WebTextDirection) override; | 149 void setTextDirection(WebTextDirection) override; |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 PaintArtifactCompositor& getPaintArtifactCompositor() { return m_paintArtifa
ctCompositor; } | 506 PaintArtifactCompositor& getPaintArtifactCompositor() { return m_paintArtifa
ctCompositor; } |
513 | 507 |
514 bool isTransparent() const; | 508 bool isTransparent() const; |
515 void setIsTransparent(bool value); | 509 void setIsTransparent(bool value); |
516 | 510 |
517 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } | 511 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } |
518 | 512 |
519 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); } | 513 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); } |
520 | 514 |
521 private: | 515 private: |
| 516 // Returns the currently active WebInputMethodController which the one |
| 517 // corresponding to the focused frame. It will return nullptr if there are |
| 518 // none or |m_imeAcceptEvents| is false. |
| 519 WebInputMethodControllerImpl* getActiveWebInputMethodController() const; |
| 520 |
522 InspectorOverlay* inspectorOverlay(); | 521 InspectorOverlay* inspectorOverlay(); |
523 | 522 |
524 void setPageScaleFactorAndLocation(float, const FloatPoint&); | 523 void setPageScaleFactorAndLocation(float, const FloatPoint&); |
525 void propagateZoomFactorToLocalFrameRoots(Frame*, float); | 524 void propagateZoomFactorToLocalFrameRoots(Frame*, float); |
526 | 525 |
527 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& visualViewportOrigin); | 526 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& visualViewportOrigin); |
528 | 527 |
529 float maximumLegiblePageScale() const; | 528 float maximumLegiblePageScale() const; |
530 void refreshPageScaleFactorAfterLayout(); | 529 void refreshPageScaleFactorAfterLayout(); |
531 IntSize contentsSize() const; | 530 IntSize contentsSize() const; |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 775 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
777 }; | 776 }; |
778 | 777 |
779 // We have no ways to check if the specified WebView is an instance of | 778 // We have no ways to check if the specified WebView is an instance of |
780 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 779 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
781 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 780 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
782 | 781 |
783 } // namespace blink | 782 } // namespace blink |
784 | 783 |
785 #endif | 784 #endif |
OLD | NEW |