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

Side by Side Diff: sky/engine/web/WebViewImpl.h

Issue 880663002: Remove InputMethodContext. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/web/SpellCheckerClientImpl.cpp ('k') | sky/engine/web/WebViewImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef SKY_ENGINE_WEB_WEBVIEWIMPL_H_ 31 #ifndef SKY_ENGINE_WEB_WEBVIEWIMPL_H_
32 #define SKY_ENGINE_WEB_WEBVIEWIMPL_H_ 32 #define SKY_ENGINE_WEB_WEBVIEWIMPL_H_
33 33
34 #include "sky/engine/core/html/ime/InputMethodContext.h"
35 #include "sky/engine/platform/geometry/IntPoint.h" 34 #include "sky/engine/platform/geometry/IntPoint.h"
36 #include "sky/engine/platform/geometry/IntRect.h" 35 #include "sky/engine/platform/geometry/IntRect.h"
37 #include "sky/engine/public/platform/WebInputEvent.h" 36 #include "sky/engine/public/platform/WebInputEvent.h"
38 #include "sky/engine/public/platform/WebLayer.h" 37 #include "sky/engine/public/platform/WebLayer.h"
39 #include "sky/engine/public/platform/WebPoint.h" 38 #include "sky/engine/public/platform/WebPoint.h"
40 #include "sky/engine/public/platform/WebRect.h" 39 #include "sky/engine/public/platform/WebRect.h"
41 #include "sky/engine/public/platform/WebSize.h" 40 #include "sky/engine/public/platform/WebSize.h"
42 #include "sky/engine/public/platform/WebString.h" 41 #include "sky/engine/public/platform/WebString.h"
43 #include "sky/engine/public/web/WebNavigationPolicy.h" 42 #include "sky/engine/public/web/WebNavigationPolicy.h"
44 #include "sky/engine/public/web/WebView.h" 43 #include "sky/engine/public/web/WebView.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const WebVector<WebCompositionUnderline>& underlines, 76 const WebVector<WebCompositionUnderline>& underlines,
78 int selectionStart, 77 int selectionStart,
79 int selectionEnd) override; 78 int selectionEnd) override;
80 virtual bool confirmComposition() override; 79 virtual bool confirmComposition() override;
81 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior ) override; 80 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior ) override;
82 virtual bool confirmComposition(const WebString& text) override; 81 virtual bool confirmComposition(const WebString& text) override;
83 virtual bool compositionRange(size_t* location, size_t* length) override; 82 virtual bool compositionRange(size_t* location, size_t* length) override;
84 virtual WebTextInputInfo textInputInfo() override; 83 virtual WebTextInputInfo textInputInfo() override;
85 virtual WebColor backgroundColor() const override; 84 virtual WebColor backgroundColor() const override;
86 85
87 virtual void didShowCandidateWindow() override;
88 virtual void didUpdateCandidateWindow() override;
89 virtual void didHideCandidateWindow() override;
90
91 // WebView methods: 86 // WebView methods:
92 virtual void setMainFrame(WebFrame*) override; 87 virtual void setMainFrame(WebFrame*) override;
93 virtual void injectModule(const WebString&) override; 88 virtual void injectModule(const WebString&) override;
94 virtual void setSpellCheckClient(WebSpellCheckClient*) override; 89 virtual void setSpellCheckClient(WebSpellCheckClient*) override;
95 virtual WebSettings* settings() override; 90 virtual WebSettings* settings() override;
96 virtual bool isTransparent() const override; 91 virtual bool isTransparent() const override;
97 virtual void setIsTransparent(bool value) override; 92 virtual void setIsTransparent(bool value) override;
98 virtual void setBaseBackgroundColor(WebColor) override; 93 virtual void setBaseBackgroundColor(WebColor) override;
99 virtual bool isActive() const override; 94 virtual bool isActive() const override;
100 virtual void setIsActive(bool value) override; 95 virtual void setIsActive(bool value) override;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 205
211 bool confirmComposition(const WebString& text, ConfirmCompositionBehavior); 206 bool confirmComposition(const WebString& text, ConfirmCompositionBehavior);
212 207
213 // Converts |pos| from window coordinates to contents coordinates and gets 208 // Converts |pos| from window coordinates to contents coordinates and gets
214 // the HitTestResult for it. 209 // the HitTestResult for it.
215 HitTestResult hitTestResultForWindowPos(const IntPoint&); 210 HitTestResult hitTestResultForWindowPos(const IntPoint&);
216 211
217 void doComposite(); 212 void doComposite();
218 void reallocateRenderer(); 213 void reallocateRenderer();
219 214
220 InputMethodContext* inputMethodContext();
221
222 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) 215 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.)
223 WebSpellCheckClient* m_spellCheckClient; 216 WebSpellCheckClient* m_spellCheckClient;
224 217
225 ChromeClientImpl m_chromeClientImpl; 218 ChromeClientImpl m_chromeClientImpl;
226 EditorClientImpl m_editorClientImpl; 219 EditorClientImpl m_editorClientImpl;
227 SpellCheckerClientImpl m_spellCheckerClientImpl; 220 SpellCheckerClientImpl m_spellCheckerClientImpl;
228 221
229 WebSize m_size; 222 WebSize m_size;
230 bool m_fixedLayoutSizeLock; 223 bool m_fixedLayoutSizeLock;
231 224
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 WebColor m_backgroundColorOverride; 263 WebColor m_backgroundColorOverride;
271 }; 264 };
272 265
273 // We have no ways to check if the specified WebView is an instance of 266 // We have no ways to check if the specified WebView is an instance of
274 // WebViewImpl because WebViewImpl is the only implementation of WebView. 267 // WebViewImpl because WebViewImpl is the only implementation of WebView.
275 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 268 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
276 269
277 } // namespace blink 270 } // namespace blink
278 271
279 #endif // SKY_ENGINE_WEB_WEBVIEWIMPL_H_ 272 #endif // SKY_ENGINE_WEB_WEBVIEWIMPL_H_
OLDNEW
« no previous file with comments | « sky/engine/web/SpellCheckerClientImpl.cpp ('k') | sky/engine/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698