| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file.#ifndef WebViewBase_h | 3 // found in the LICENSE file.#ifndef WebViewBase_h |
| 4 | 4 |
| 5 #ifndef WebViewBase_h | 5 #ifndef WebViewBase_h |
| 6 #define WebViewBase_h | 6 #define WebViewBase_h |
| 7 | 7 |
| 8 #include "platform/transforms/TransformationMatrix.h" | 8 #include "platform/transforms/TransformationMatrix.h" |
| 9 #include "platform/wtf/RefCounted.h" | 9 #include "platform/wtf/RefCounted.h" |
| 10 #include "public/platform/WebDisplayMode.h" | 10 #include "public/platform/WebDisplayMode.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 virtual void ClearBaseBackgroundColorOverride() = 0; | 55 virtual void ClearBaseBackgroundColorOverride() = 0; |
| 56 virtual void SetBackgroundColorOverride(WebColor) = 0; | 56 virtual void SetBackgroundColorOverride(WebColor) = 0; |
| 57 virtual void ClearBackgroundColorOverride() = 0; | 57 virtual void ClearBackgroundColorOverride() = 0; |
| 58 virtual void SetZoomFactorOverride(float) = 0; | 58 virtual void SetZoomFactorOverride(float) = 0; |
| 59 virtual void SetCompositorDeviceScaleFactorOverride(float) = 0; | 59 virtual void SetCompositorDeviceScaleFactorOverride(float) = 0; |
| 60 virtual void SetDeviceEmulationTransform(const TransformationMatrix&) = 0; | 60 virtual void SetDeviceEmulationTransform(const TransformationMatrix&) = 0; |
| 61 virtual void SetShowDebugBorders(bool) = 0; | 61 virtual void SetShowDebugBorders(bool) = 0; |
| 62 | 62 |
| 63 virtual Page* GetPage() const = 0; | 63 virtual Page* GetPage() const = 0; |
| 64 virtual Frame* FocusedCoreFrame() const = 0; | 64 virtual Frame* FocusedCoreFrame() const = 0; |
| 65 |
| 65 static WebViewBase* FromPage(Page*); | 66 static WebViewBase* FromPage(Page*); |
| 67 static HashSet<WebViewBase*>& AllInstances(); |
| 66 | 68 |
| 67 // Returns the main frame associated with this view. This may be null when | 69 // Returns the main frame associated with this view. This may be null when |
| 68 // the page is shutting down, but will be valid at all other times. | 70 // the page is shutting down, but will be valid at all other times. |
| 69 virtual WebLocalFrameImpl* MainFrameImpl() const = 0; | 71 virtual WebLocalFrameImpl* MainFrameImpl() const = 0; |
| 70 | 72 |
| 71 virtual float DefaultMinimumPageScaleFactor() const = 0; | 73 virtual float DefaultMinimumPageScaleFactor() const = 0; |
| 72 virtual float DefaultMaximumPageScaleFactor() const = 0; | 74 virtual float DefaultMaximumPageScaleFactor() const = 0; |
| 73 virtual float MinimumPageScaleFactor() const = 0; | 75 virtual float MinimumPageScaleFactor() const = 0; |
| 74 virtual float MaximumPageScaleFactor() const = 0; | 76 virtual float MaximumPageScaleFactor() const = 0; |
| 75 virtual float ClampPageScaleFactorToLimits(float) const = 0; | 77 virtual float ClampPageScaleFactorToLimits(float) const = 0; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 virtual void DidUpdateFullscreenSize() = 0; | 115 virtual void DidUpdateFullscreenSize() = 0; |
| 114 virtual void SetLastHiddenPagePopup(WebPagePopupImpl*) = 0; | 116 virtual void SetLastHiddenPagePopup(WebPagePopupImpl*) = 0; |
| 115 virtual WebInputEventResult SendContextMenuEvent(const WebKeyboardEvent&) = 0; | 117 virtual WebInputEventResult SendContextMenuEvent(const WebKeyboardEvent&) = 0; |
| 116 | 118 |
| 117 virtual WebSpellCheckClient* SpellCheckClient() = 0; | 119 virtual WebSpellCheckClient* SpellCheckClient() = 0; |
| 118 | 120 |
| 119 virtual CompositorAnimationTimeline* LinkHighlightsTimeline() const = 0; | 121 virtual CompositorAnimationTimeline* LinkHighlightsTimeline() const = 0; |
| 120 | 122 |
| 121 virtual WebSettingsImpl* SettingsImpl() = 0; | 123 virtual WebSettingsImpl* SettingsImpl() = 0; |
| 122 | 124 |
| 125 using WebWidget::GetPagePopup; |
| 123 virtual PagePopup* OpenPagePopup(PagePopupClient*) = 0; | 126 virtual PagePopup* OpenPagePopup(PagePopupClient*) = 0; |
| 124 virtual void ClosePagePopup(PagePopup*) = 0; | 127 virtual void ClosePagePopup(PagePopup*) = 0; |
| 125 virtual void CleanupPagePopup() = 0; | 128 virtual void CleanupPagePopup() = 0; |
| 126 virtual LocalDOMWindow* PagePopupWindow() const = 0; | 129 virtual LocalDOMWindow* PagePopupWindow() const = 0; |
| 127 | 130 |
| 128 virtual void InvalidateRect(const IntRect&) = 0; | 131 virtual void InvalidateRect(const IntRect&) = 0; |
| 129 // Indicates two things: | 132 // Indicates two things: |
| 130 // 1) This view may have a new layout now. | 133 // 1) This view may have a new layout now. |
| 131 // 2) Calling updateAllLifecyclePhases() is a no-op. | 134 // 2) Calling updateAllLifecyclePhases() is a no-op. |
| 132 // After calling WebWidget::updateAllLifecyclePhases(), expect to get this | 135 // After calling WebWidget::updateAllLifecyclePhases(), expect to get this |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 virtual void SetRootGraphicsLayer(GraphicsLayer*) = 0; | 176 virtual void SetRootGraphicsLayer(GraphicsLayer*) = 0; |
| 174 virtual void SetRootLayer(WebLayer*) = 0; | 177 virtual void SetRootLayer(WebLayer*) = 0; |
| 175 virtual CompositorAnimationHost* AnimationHost() const = 0; | 178 virtual CompositorAnimationHost* AnimationHost() const = 0; |
| 176 virtual HitTestResult CoreHitTestResultAt(const WebPoint&) = 0; | 179 virtual HitTestResult CoreHitTestResultAt(const WebPoint&) = 0; |
| 177 | 180 |
| 178 virtual class ChromeClient& ChromeClient() const = 0; | 181 virtual class ChromeClient& ChromeClient() const = 0; |
| 179 }; | 182 }; |
| 180 } | 183 } |
| 181 | 184 |
| 182 #endif | 185 #endif |
| OLD | NEW |