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

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

Issue 2333813002: Introduce WebInputMethodController to blink (Closed)
Patch Set: Introduce WebInputMethodController to blink Created 4 years, 3 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 // Use in Slimming Paint v2 to update the layer tree for the content. 512 // Use in Slimming Paint v2 to update the layer tree for the content.
512 PaintArtifactCompositor& getPaintArtifactCompositor() { return m_paintArtifa ctCompositor; } 513 PaintArtifactCompositor& getPaintArtifactCompositor() { return m_paintArtifa ctCompositor; }
513 514
514 bool isTransparent() const; 515 bool isTransparent() const;
515 void setIsTransparent(bool value); 516 void setIsTransparent(bool value);
516 517
517 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } 518 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; }
518 519
519 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); } 520 ChromeClientImpl& chromeClient() const { return *m_chromeClientImpl.get(); }
520 521
522 // Returns the currently active WebInputMethodController which the one
523 // corresponding to the focused frame. It will return nullptr if there are
524 // none or |m_imeAcceptEvents| is false.
525 WebInputMethodControllerImpl* getActiveWebInputMethodController() const;
526
521 private: 527 private:
522 InspectorOverlay* inspectorOverlay(); 528 InspectorOverlay* inspectorOverlay();
523 529
524 void setPageScaleFactorAndLocation(float, const FloatPoint&); 530 void setPageScaleFactorAndLocation(float, const FloatPoint&);
525 void propagateZoomFactorToLocalFrameRoots(Frame*, float); 531 void propagateZoomFactorToLocalFrameRoots(Frame*, float);
526 532
527 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO rigin, const FloatPoint& visualViewportOrigin); 533 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO rigin, const FloatPoint& visualViewportOrigin);
528 534
529 float maximumLegiblePageScale() const; 535 float maximumLegiblePageScale() const;
530 void refreshPageScaleFactorAfterLayout(); 536 void refreshPageScaleFactorAfterLayout();
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; 782 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor;
777 }; 783 };
778 784
779 // We have no ways to check if the specified WebView is an instance of 785 // We have no ways to check if the specified WebView is an instance of
780 // WebViewImpl because WebViewImpl is the only implementation of WebView. 786 // WebViewImpl because WebViewImpl is the only implementation of WebView.
781 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 787 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
782 788
783 } // namespace blink 789 } // namespace blink
784 790
785 #endif 791 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698