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

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

Issue 2797073002: Move WebTextCheckClient reference from WebViewImpl to WebLocalFrameImpl (Closed)
Patch Set: Spell my name correctly Created 3 years, 8 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 void didAcquirePointerLock() override; 168 void didAcquirePointerLock() override;
169 void didNotAcquirePointerLock() override; 169 void didNotAcquirePointerLock() override;
170 void didLosePointerLock() override; 170 void didLosePointerLock() override;
171 171
172 // WebView methods: 172 // WebView methods:
173 virtual bool isWebView() const { return true; } 173 virtual bool isWebView() const { return true; }
174 void setMainFrame(WebFrame*) override; 174 void setMainFrame(WebFrame*) override;
175 void setCredentialManagerClient(WebCredentialManagerClient*) override; 175 void setCredentialManagerClient(WebCredentialManagerClient*) override;
176 void setPrerendererClient(WebPrerendererClient*) override; 176 void setPrerendererClient(WebPrerendererClient*) override;
177 void setSpellCheckClient(WebSpellCheckClient*) override; 177 void setSpellCheckClient(WebSpellCheckClient*) override;
178 void setTextCheckClient(WebTextCheckClient*) override;
179 WebSettings* settings() override; 178 WebSettings* settings() override;
180 WebString pageEncoding() const override; 179 WebString pageEncoding() const override;
181 bool tabsToLinks() const override; 180 bool tabsToLinks() const override;
182 void setTabsToLinks(bool value) override; 181 void setTabsToLinks(bool value) override;
183 bool tabKeyCyclesThroughElements() const override; 182 bool tabKeyCyclesThroughElements() const override;
184 void setTabKeyCyclesThroughElements(bool value) override; 183 void setTabKeyCyclesThroughElements(bool value) override;
185 bool isActive() const override; 184 bool isActive() const override;
186 void setIsActive(bool value) override; 185 void setIsActive(bool value) override;
187 void setDomainRelaxationForbidden(bool, const WebString& scheme) override; 186 void setDomainRelaxationForbidden(bool, const WebString& scheme) override;
188 void setWindowFeatures(const WebWindowFeatures&) override; 187 void setWindowFeatures(const WebWindowFeatures&) override;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 307
309 // Returns the currently focused Element or null if no element has focus. 308 // Returns the currently focused Element or null if no element has focus.
310 Element* focusedElement() const; 309 Element* focusedElement() const;
311 310
312 static WebViewImpl* fromPage(Page*); 311 static WebViewImpl* fromPage(Page*);
313 312
314 WebViewClient* client() { return m_client; } 313 WebViewClient* client() { return m_client; }
315 314
316 WebSpellCheckClient* spellCheckClient() { return m_spellCheckClient; } 315 WebSpellCheckClient* spellCheckClient() { return m_spellCheckClient; }
317 316
318 WebTextCheckClient* textCheckClient() { return m_textCheckClient; }
319
320 // Returns the page object associated with this view. This may be null when 317 // Returns the page object associated with this view. This may be null when
321 // the page is shutting down, but will be valid at all other times. 318 // the page is shutting down, but will be valid at all other times.
322 Page* page() const { return m_page.get(); } 319 Page* page() const { return m_page.get(); }
323 320
324 WebDevToolsAgentImpl* mainFrameDevToolsAgentImpl(); 321 WebDevToolsAgentImpl* mainFrameDevToolsAgentImpl();
325 322
326 DevToolsEmulator* devToolsEmulator() const { 323 DevToolsEmulator* devToolsEmulator() const {
327 return m_devToolsEmulator.get(); 324 return m_devToolsEmulator.get();
328 } 325 }
329 326
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*); 606 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*);
610 607
611 LocalFrame* focusedLocalFrameInWidget() const; 608 LocalFrame* focusedLocalFrameInWidget() const;
612 LocalFrame* focusedLocalFrameAvailableForIme() const; 609 LocalFrame* focusedLocalFrameAvailableForIme() const;
613 610
614 CompositorMutatorImpl& mutator(); 611 CompositorMutatorImpl& mutator();
615 612
616 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) 613 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.)
617 WebSpellCheckClient* m_spellCheckClient; 614 WebSpellCheckClient* m_spellCheckClient;
618 615
619 // TODO(xiaochengh): Move this pointer to WebLocalFrameImpl.
620 WebTextCheckClient* m_textCheckClient;
621
622 Persistent<ChromeClientImpl> m_chromeClientImpl; 616 Persistent<ChromeClientImpl> m_chromeClientImpl;
623 ContextMenuClientImpl m_contextMenuClientImpl; 617 ContextMenuClientImpl m_contextMenuClientImpl;
624 EditorClientImpl m_editorClientImpl; 618 EditorClientImpl m_editorClientImpl;
625 SpellCheckerClientImpl m_spellCheckerClientImpl; 619 SpellCheckerClientImpl m_spellCheckerClientImpl;
626 StorageClientImpl m_storageClientImpl; 620 StorageClientImpl m_storageClientImpl;
627 621
628 WebSize m_size; 622 WebSize m_size;
629 // If true, automatically resize the layout view around its content. 623 // If true, automatically resize the layout view around its content.
630 bool m_shouldAutoResize; 624 bool m_shouldAutoResize;
631 // The lower bound on the size when auto-resizing. 625 // The lower bound on the size when auto-resizing.
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; 750 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor;
757 }; 751 };
758 752
759 // We have no ways to check if the specified WebView is an instance of 753 // We have no ways to check if the specified WebView is an instance of
760 // WebViewImpl because WebViewImpl is the only implementation of WebView. 754 // WebViewImpl because WebViewImpl is the only implementation of WebView.
761 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 755 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
762 756
763 } // namespace blink 757 } // namespace blink
764 758
765 #endif 759 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698