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 WebSettingsImpl; | 96 class WebSettingsImpl; |
96 class WebViewScheduler; | 97 class WebViewScheduler; |
(...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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 void setDoingDragAndDrop(bool doing) { m_doingDragAndDrop = doing; } | 508 void setDoingDragAndDrop(bool doing) { m_doingDragAndDrop = doing; } |
515 | 509 |
| 510 // Returns the currently active WebInputMethodController which the one |
| 511 // corresponding to the focused frame. It will return nullptr if there are |
| 512 // none or |m_imeAcceptEvents| is false. |
| 513 WebInputMethodControllerImpl* getActiveWebInputMethodController() const; |
| 514 |
516 private: | 515 private: |
517 InspectorOverlay* inspectorOverlay(); | 516 InspectorOverlay* inspectorOverlay(); |
518 | 517 |
519 void setPageScaleFactorAndLocation(float, const FloatPoint&); | 518 void setPageScaleFactorAndLocation(float, const FloatPoint&); |
520 void propagateZoomFactorToLocalFrameRoots(Frame*, float); | 519 void propagateZoomFactorToLocalFrameRoots(Frame*, float); |
521 | 520 |
522 void scrollAndRescaleViewports(float scaleFactor, | 521 void scrollAndRescaleViewports(float scaleFactor, |
523 const IntPoint& mainFrameOrigin, | 522 const IntPoint& mainFrameOrigin, |
524 const FloatPoint& visualViewportOrigin); | 523 const FloatPoint& visualViewportOrigin); |
525 | 524 |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 765 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
767 }; | 766 }; |
768 | 767 |
769 // We have no ways to check if the specified WebView is an instance of | 768 // We have no ways to check if the specified WebView is an instance of |
770 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 769 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
771 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 770 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
772 | 771 |
773 } // namespace blink | 772 } // namespace blink |
774 | 773 |
775 #endif | 774 #endif |
OLD | NEW |