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

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

Issue 2123833002: Remove duplicated function in RenderView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove more 'ForTest' suffixes. Created 4 years, 5 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 | « components/test_runner/web_test_delegate.h ('k') | content/renderer/render_view_impl.h » ('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 (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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // Converts the |rect| from Viewport coordinates to Window coordinates. 137 // Converts the |rect| from Viewport coordinates to Window coordinates.
138 // See blink::WebWidgetClient::convertViewportToWindow for more details. 138 // See blink::WebWidgetClient::convertViewportToWindow for more details.
139 virtual void ConvertViewportToWindowViaWidget(blink::WebRect* rect) = 0; 139 virtual void ConvertViewportToWindowViaWidget(blink::WebRect* rect) = 0;
140 140
141 // Returns the bounds of |element| in Window coordinates. The bounds have been 141 // Returns the bounds of |element| in Window coordinates. The bounds have been
142 // adjusted to include any transformations, including page scale. 142 // adjusted to include any transformations, including page scale.
143 // This function will update the layout if required. 143 // This function will update the layout if required.
144 virtual gfx::RectF ElementBoundsInWindow(const blink::WebElement& element) 144 virtual gfx::RectF ElementBoundsInWindow(const blink::WebElement& element)
145 = 0; 145 = 0;
146 146
147 // Returns the device scale factor for unit tests.
148 virtual float GetDeviceScaleFactorForTest() const = 0;
149
150 virtual bool HasAddedInputHandler() const = 0; 147 virtual bool HasAddedInputHandler() const = 0;
151 148
152 protected: 149 protected:
153 ~RenderView() override {} 150 ~RenderView() override {}
154 151
155 private: 152 private:
156 // This interface should only be implemented inside content. 153 // This interface should only be implemented inside content.
157 friend class RenderViewImpl; 154 friend class RenderViewImpl;
158 RenderView() {} 155 RenderView() {}
159 }; 156 };
160 157
161 } // namespace content 158 } // namespace content
162 159
163 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 160 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « components/test_runner/web_test_delegate.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698