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 14 matching lines...) Expand all Loading... |
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 WebViewImpl_h | 31 #ifndef WebViewImpl_h |
32 #define WebViewImpl_h | 32 #define WebViewImpl_h |
33 | 33 |
34 #include "core/html/ime/InputMethodContext.h" | 34 #include "core/html/ime/InputMethodContext.h" |
| 35 #include "core/inspector/inspector_backend_mojo.h" |
35 #include "platform/geometry/IntPoint.h" | 36 #include "platform/geometry/IntPoint.h" |
36 #include "platform/geometry/IntRect.h" | 37 #include "platform/geometry/IntRect.h" |
37 #include "platform/graphics/GraphicsLayer.h" | 38 #include "platform/graphics/GraphicsLayer.h" |
38 #include "public/platform/WebGestureCurveTarget.h" | 39 #include "public/platform/WebGestureCurveTarget.h" |
39 #include "public/platform/WebLayer.h" | 40 #include "public/platform/WebLayer.h" |
40 #include "public/platform/WebPoint.h" | 41 #include "public/platform/WebPoint.h" |
41 #include "public/platform/WebRect.h" | 42 #include "public/platform/WebRect.h" |
42 #include "public/platform/WebSize.h" | 43 #include "public/platform/WebSize.h" |
43 #include "public/platform/WebString.h" | 44 #include "public/platform/WebString.h" |
44 #include "public/web/WebInputEvent.h" | 45 #include "public/web/WebInputEvent.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 virtual bool selectionTextDirection(WebTextDirection& start, WebTextDirectio
n& end) const override; | 111 virtual bool selectionTextDirection(WebTextDirection& start, WebTextDirectio
n& end) const override; |
111 virtual bool isSelectionAnchorFirst() const override; | 112 virtual bool isSelectionAnchorFirst() const override; |
112 virtual bool caretOrSelectionRange(size_t* location, size_t* length) overrid
e; | 113 virtual bool caretOrSelectionRange(size_t* location, size_t* length) overrid
e; |
113 virtual void setTextDirection(WebTextDirection) override; | 114 virtual void setTextDirection(WebTextDirection) override; |
114 virtual bool isAcceleratedCompositingActive() const override; | 115 virtual bool isAcceleratedCompositingActive() const override; |
115 virtual void willCloseLayerTreeView() override; | 116 virtual void willCloseLayerTreeView() override; |
116 | 117 |
117 // WebView methods: | 118 // WebView methods: |
118 virtual void setMainFrame(WebFrame*) override; | 119 virtual void setMainFrame(WebFrame*) override; |
119 virtual void injectModule(const WebString&) override; | 120 virtual void injectModule(const WebString&) override; |
| 121 virtual void connectInspectorBackend() override; |
120 virtual void setSpellCheckClient(WebSpellCheckClient*) override; | 122 virtual void setSpellCheckClient(WebSpellCheckClient*) override; |
121 virtual WebSettings* settings() override; | 123 virtual WebSettings* settings() override; |
122 virtual WebString pageEncoding() const override; | 124 virtual WebString pageEncoding() const override; |
123 virtual void setPageEncoding(const WebString&) override; | 125 virtual void setPageEncoding(const WebString&) override; |
124 virtual bool isTransparent() const override; | 126 virtual bool isTransparent() const override; |
125 virtual void setIsTransparent(bool value) override; | 127 virtual void setIsTransparent(bool value) override; |
126 virtual void setBaseBackgroundColor(WebColor) override; | 128 virtual void setBaseBackgroundColor(WebColor) override; |
127 virtual bool tabsToLinks() const override; | 129 virtual bool tabsToLinks() const override; |
128 virtual void setTabsToLinks(bool value) override; | 130 virtual void setTabsToLinks(bool value) override; |
129 virtual bool tabKeyCyclesThroughElements() const override; | 131 virtual bool tabKeyCyclesThroughElements() const override; |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 | 443 |
442 bool m_showFPSCounter; | 444 bool m_showFPSCounter; |
443 bool m_showPaintRects; | 445 bool m_showPaintRects; |
444 bool m_showDebugBorders; | 446 bool m_showDebugBorders; |
445 bool m_continuousPaintingEnabled; | 447 bool m_continuousPaintingEnabled; |
446 bool m_showScrollBottleneckRects; | 448 bool m_showScrollBottleneckRects; |
447 WebColor m_baseBackgroundColor; | 449 WebColor m_baseBackgroundColor; |
448 WebColor m_backgroundColorOverride; | 450 WebColor m_backgroundColorOverride; |
449 | 451 |
450 bool m_userGestureObserved; | 452 bool m_userGestureObserved; |
| 453 |
| 454 OwnPtr<InspectorBackendMojo> m_inspectorBackend; |
451 }; | 455 }; |
452 | 456 |
453 // We have no ways to check if the specified WebView is an instance of | 457 // We have no ways to check if the specified WebView is an instance of |
454 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 458 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
455 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 459 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
456 | 460 |
457 } // namespace blink | 461 } // namespace blink |
458 | 462 |
459 #endif | 463 #endif |
OLD | NEW |