Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.h

Issue 2333813002: Introduce WebInputMethodController to blink (Closed)
Patch Set: Updated a comment Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
77 class InspectorOverlay; 77 class InspectorOverlay;
78 class LinkHighlightImpl; 78 class LinkHighlightImpl;
79 class PageOverlay; 79 class PageOverlay;
80 class PageScaleConstraintsSet; 80 class PageScaleConstraintsSet;
81 class PaintLayerCompositor; 81 class PaintLayerCompositor;
82 class TopControls; 82 class TopControls;
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 bool hasTouchEventHandlersAt(const WebPoint&) override; 129 bool hasTouchEventHandlersAt(const WebPoint&) override;
129 130
130 void applyViewportDeltas( 131 void applyViewportDeltas(
131 const WebFloatSize& visualViewportDelta, 132 const WebFloatSize& visualViewportDelta,
132 const WebFloatSize& layoutViewportDelta, 133 const WebFloatSize& layoutViewportDelta,
133 const WebFloatSize& elasticOverscrollDelta, 134 const WebFloatSize& elasticOverscrollDelta,
134 float pageScaleDelta, 135 float pageScaleDelta,
135 float topControlsShownRatioDelta) override; 136 float topControlsShownRatioDelta) override;
136 void mouseCaptureLost() override; 137 void mouseCaptureLost() override;
137 void setFocus(bool enable) override; 138 void setFocus(bool enable) override;
138 bool setComposition(
139 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(ConfirmCompositionBehavior selectionBehavior) overr ide;
145 WebRange compositionRange() override; 139 WebRange compositionRange() override;
146 WebTextInputInfo textInputInfo() override; 140 WebTextInputInfo textInputInfo() override;
147 WebTextInputType textInputType() override; 141 WebTextInputType textInputType() override;
148 WebColor backgroundColor() const override; 142 WebColor backgroundColor() const override;
149 WebPagePopup* pagePopup() const override; 143 WebPagePopup* pagePopup() const override;
150 bool selectionBounds(WebRect& anchor, WebRect& focus) const override; 144 bool selectionBounds(WebRect& anchor, WebRect& focus) const override;
151 bool selectionTextDirection(WebTextDirection& start, WebTextDirection& end) const override; 145 bool selectionTextDirection(WebTextDirection& start, WebTextDirection& end) const override;
152 bool isSelectionAnchorFirst() const override; 146 bool isSelectionAnchorFirst() const override;
153 WebRange caretOrSelectionRange() override; 147 WebRange caretOrSelectionRange() override;
154 void setTextDirection(WebTextDirection) override; 148 void setTextDirection(WebTextDirection) override;
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } 496 FloatSize elasticOverscroll() const { return m_elasticOverscroll; }
503 497
504 bool isTransparent() const; 498 bool isTransparent() const;
505 void setIsTransparent(bool value); 499 void setIsTransparent(bool value);
506 500
507 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } 501 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; }
508 502
509 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); } 503 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); }
510 504
511 private: 505 private:
506 // Returns the currently active WebInputMethodController which the one
507 // corresponding to the focused frame. It will return nullptr if there are
508 // none or |m_imeAcceptEvents| is false.
509 WebInputMethodControllerImpl* getActiveWebInputMethodController() const;
510
512 InspectorOverlay* inspectorOverlay(); 511 InspectorOverlay* inspectorOverlay();
513 512
514 void setPageScaleFactorAndLocation(float, const FloatPoint&); 513 void setPageScaleFactorAndLocation(float, const FloatPoint&);
515 void propagateZoomFactorToLocalFrameRoots(Frame*, float); 514 void propagateZoomFactorToLocalFrameRoots(Frame*, float);
516 515
517 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO rigin, const FloatPoint& visualViewportOrigin); 516 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO rigin, const FloatPoint& visualViewportOrigin);
518 517
519 float maximumLegiblePageScale() const; 518 float maximumLegiblePageScale() const;
520 void refreshPageScaleFactorAfterLayout(); 519 void refreshPageScaleFactorAfterLayout();
521 IntSize contentsSize() const; 520 IntSize contentsSize() const;
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; 762 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor;
764 }; 763 };
765 764
766 // We have no ways to check if the specified WebView is an instance of 765 // We have no ways to check if the specified WebView is an instance of
767 // WebViewImpl because WebViewImpl is the only implementation of WebView. 766 // WebViewImpl because WebViewImpl is the only implementation of WebView.
768 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 767 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
769 768
770 } // namespace blink 769 } // namespace blink
771 770
772 #endif 771 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698