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/renderer/render_view_impl.cc

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
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 #include "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 2131 matching lines...) Expand 10 before | Expand all | Expand 10 after
2142 convertViewportToWindow(rect); 2142 convertViewportToWindow(rect);
2143 } 2143 }
2144 2144
2145 gfx::RectF RenderViewImpl::ElementBoundsInWindow( 2145 gfx::RectF RenderViewImpl::ElementBoundsInWindow(
2146 const blink::WebElement& element) { 2146 const blink::WebElement& element) {
2147 blink::WebRect bounding_box_in_window = element.boundsInViewport(); 2147 blink::WebRect bounding_box_in_window = element.boundsInViewport();
2148 ConvertViewportToWindowViaWidget(&bounding_box_in_window); 2148 ConvertViewportToWindowViaWidget(&bounding_box_in_window);
2149 return gfx::RectF(bounding_box_in_window); 2149 return gfx::RectF(bounding_box_in_window);
2150 } 2150 }
2151 2151
2152 float RenderViewImpl::GetDeviceScaleFactorForTest() const {
2153 return device_scale_factor_;
2154 }
2155
2156 bool RenderViewImpl::HasAddedInputHandler() const { 2152 bool RenderViewImpl::HasAddedInputHandler() const {
2157 return has_added_input_handler_; 2153 return has_added_input_handler_;
2158 } 2154 }
2159 2155
2160 gfx::Point RenderViewImpl::ConvertWindowPointToViewport( 2156 gfx::Point RenderViewImpl::ConvertWindowPointToViewport(
2161 const gfx::Point& point) { 2157 const gfx::Point& point) {
2162 blink::WebFloatRect point_in_viewport(point.x(), point.y(), 0, 0); 2158 blink::WebFloatRect point_in_viewport(point.x(), point.y(), 0, 0);
2163 convertWindowToViewport(&point_in_viewport); 2159 convertWindowToViewport(&point_in_viewport);
2164 return gfx::Point(point_in_viewport.x, point_in_viewport.y); 2160 return gfx::Point(point_in_viewport.x, point_in_viewport.y);
2165 } 2161 }
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after
3261 return render_frame->focused_pepper_plugin(); 3257 return render_frame->focused_pepper_plugin();
3262 } 3258 }
3263 frame = frame->traverseNext(false); 3259 frame = frame->traverseNext(false);
3264 } 3260 }
3265 3261
3266 return nullptr; 3262 return nullptr;
3267 } 3263 }
3268 #endif 3264 #endif
3269 3265
3270 } // namespace content 3266 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/shell/renderer/layout_test/blink_test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698