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