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

Side by Side Diff: content/public/renderer/render_view.h

Issue 1781873002: content: Rename virtual method on RenderView to not (ab)use blink style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: renderwidget-overrides Created 4 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 virtual const std::string& GetAcceptLanguages() const = 0; 133 virtual const std::string& GetAcceptLanguages() const = 0;
134 134
135 #if defined(OS_ANDROID) 135 #if defined(OS_ANDROID)
136 virtual void UpdateTopControlsState(TopControlsState constraints, 136 virtual void UpdateTopControlsState(TopControlsState constraints,
137 TopControlsState current, 137 TopControlsState current,
138 bool animate) = 0; 138 bool animate) = 0;
139 #endif 139 #endif
140 140
141 // Converts the |rect| from Viewport coordinates to Window coordinates. 141 // Converts the |rect| from Viewport coordinates to Window coordinates.
142 // See blink::WebWidgetClient::convertViewportToWindow for more details. 142 // See blink::WebWidgetClient::convertViewportToWindow for more details.
143 virtual void convertViewportToWindow(blink::WebRect* rect) = 0; 143 virtual void ConvertViewportToWindowViaWidget(blink::WebRect* rect) = 0;
144 144
145 // Returns the bounds of |element| in Window coordinates. The bounds have been 145 // Returns the bounds of |element| in Window coordinates. The bounds have been
146 // adjusted to include any transformations, including page scale. 146 // adjusted to include any transformations, including page scale.
147 // This function will update the layout if required. 147 // This function will update the layout if required.
148 virtual gfx::RectF ElementBoundsInWindow(const blink::WebElement& element) 148 virtual gfx::RectF ElementBoundsInWindow(const blink::WebElement& element)
149 = 0; 149 = 0;
150 150
151 // Returns the device scale factor for unit tests. 151 // Returns the device scale factor for unit tests.
152 virtual float GetDeviceScaleFactorForTest() const = 0; 152 virtual float GetDeviceScaleFactorForTest() const = 0;
153 153
154 protected: 154 protected:
155 ~RenderView() override {} 155 ~RenderView() override {}
156 156
157 private: 157 private:
158 // This interface should only be implemented inside content. 158 // This interface should only be implemented inside content.
159 friend class RenderViewImpl; 159 friend class RenderViewImpl;
160 RenderView() {} 160 RenderView() {}
161 }; 161 };
162 162
163 } // namespace content 163 } // namespace content
164 164
165 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 165 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/browser_plugin/browser_plugin.cc » ('j') | content/renderer/render_view_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698