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

Side by Side Diff: third_party/WebKit/Source/core/exported/WebViewBase.h

Issue 2854783003: Remove the last references from production code to WebViewImpl. (Closed)
Patch Set: Remove TODO(). Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/ChromeClientImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/ChromeClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698