| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; |
| 178 WebSettings* settings() override; | 179 WebSettings* settings() override; |
| 179 WebString pageEncoding() const override; | 180 WebString pageEncoding() const override; |
| 180 bool tabsToLinks() const override; | 181 bool tabsToLinks() const override; |
| 181 void setTabsToLinks(bool value) override; | 182 void setTabsToLinks(bool value) override; |
| 182 bool tabKeyCyclesThroughElements() const override; | 183 bool tabKeyCyclesThroughElements() const override; |
| 183 void setTabKeyCyclesThroughElements(bool value) override; | 184 void setTabKeyCyclesThroughElements(bool value) override; |
| 184 bool isActive() const override; | 185 bool isActive() const override; |
| 185 void setIsActive(bool value) override; | 186 void setIsActive(bool value) override; |
| 186 void setDomainRelaxationForbidden(bool, const WebString& scheme) override; | 187 void setDomainRelaxationForbidden(bool, const WebString& scheme) override; |
| 187 void setWindowFeatures(const WebWindowFeatures&) override; | 188 void setWindowFeatures(const WebWindowFeatures&) override; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 | 308 |
| 308 // Returns the currently focused Element or null if no element has focus. | 309 // Returns the currently focused Element or null if no element has focus. |
| 309 Element* focusedElement() const; | 310 Element* focusedElement() const; |
| 310 | 311 |
| 311 static WebViewImpl* fromPage(Page*); | 312 static WebViewImpl* fromPage(Page*); |
| 312 | 313 |
| 313 WebViewClient* client() { return m_client; } | 314 WebViewClient* client() { return m_client; } |
| 314 | 315 |
| 315 WebSpellCheckClient* spellCheckClient() { return m_spellCheckClient; } | 316 WebSpellCheckClient* spellCheckClient() { return m_spellCheckClient; } |
| 316 | 317 |
| 318 WebTextCheckClient* textCheckClient() { return m_textCheckClient; } |
| 319 |
| 317 // Returns the page object associated with this view. This may be null when | 320 // Returns the page object associated with this view. This may be null when |
| 318 // the page is shutting down, but will be valid at all other times. | 321 // the page is shutting down, but will be valid at all other times. |
| 319 Page* page() const { return m_page.get(); } | 322 Page* page() const { return m_page.get(); } |
| 320 | 323 |
| 321 WebDevToolsAgentImpl* mainFrameDevToolsAgentImpl(); | 324 WebDevToolsAgentImpl* mainFrameDevToolsAgentImpl(); |
| 322 | 325 |
| 323 DevToolsEmulator* devToolsEmulator() const { | 326 DevToolsEmulator* devToolsEmulator() const { |
| 324 return m_devToolsEmulator.get(); | 327 return m_devToolsEmulator.get(); |
| 325 } | 328 } |
| 326 | 329 |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*); | 609 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*); |
| 607 | 610 |
| 608 LocalFrame* focusedLocalFrameInWidget() const; | 611 LocalFrame* focusedLocalFrameInWidget() const; |
| 609 LocalFrame* focusedLocalFrameAvailableForIme() const; | 612 LocalFrame* focusedLocalFrameAvailableForIme() const; |
| 610 | 613 |
| 611 CompositorMutatorImpl& mutator(); | 614 CompositorMutatorImpl& mutator(); |
| 612 | 615 |
| 613 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) | 616 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) |
| 614 WebSpellCheckClient* m_spellCheckClient; | 617 WebSpellCheckClient* m_spellCheckClient; |
| 615 | 618 |
| 619 // TODO(xiaochengh): Move this pointer to WebLocalFrameImpl. |
| 620 WebTextCheckClient* m_textCheckClient; |
| 621 |
| 616 Persistent<ChromeClientImpl> m_chromeClientImpl; | 622 Persistent<ChromeClientImpl> m_chromeClientImpl; |
| 617 ContextMenuClientImpl m_contextMenuClientImpl; | 623 ContextMenuClientImpl m_contextMenuClientImpl; |
| 618 EditorClientImpl m_editorClientImpl; | 624 EditorClientImpl m_editorClientImpl; |
| 619 TextCheckerClientImpl m_textCheckerClientImpl; | 625 TextCheckerClientImpl m_textCheckerClientImpl; |
| 620 SpellCheckerClientImpl m_spellCheckerClientImpl; | 626 SpellCheckerClientImpl m_spellCheckerClientImpl; |
| 621 StorageClientImpl m_storageClientImpl; | 627 StorageClientImpl m_storageClientImpl; |
| 622 | 628 |
| 623 WebSize m_size; | 629 WebSize m_size; |
| 624 // If true, automatically resize the layout view around its content. | 630 // If true, automatically resize the layout view around its content. |
| 625 bool m_shouldAutoResize; | 631 bool m_shouldAutoResize; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 757 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
| 752 }; | 758 }; |
| 753 | 759 |
| 754 // We have no ways to check if the specified WebView is an instance of | 760 // We have no ways to check if the specified WebView is an instance of |
| 755 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 761 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 756 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 762 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 757 | 763 |
| 758 } // namespace blink | 764 } // namespace blink |
| 759 | 765 |
| 760 #endif | 766 #endif |
| OLD | NEW |