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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 1372253002: gfx: Make conversions from gfx::Point to PointF explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-gfx: . Created 5 years, 2 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/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 #endif // defined(USE_X11) && !defined(OS_CHROMEOS) 1053 #endif // defined(USE_X11) && !defined(OS_CHROMEOS)
1054 } 1054 }
1055 1055
1056 gfx::Size RenderWidgetHostViewAura::GetRequestedRendererSize() const { 1056 gfx::Size RenderWidgetHostViewAura::GetRequestedRendererSize() const {
1057 return delegated_frame_host_->GetRequestedRendererSize(); 1057 return delegated_frame_host_->GetRequestedRendererSize();
1058 } 1058 }
1059 1059
1060 void RenderWidgetHostViewAura::SelectionBoundsChanged( 1060 void RenderWidgetHostViewAura::SelectionBoundsChanged(
1061 const ViewHostMsg_SelectionBounds_Params& params) { 1061 const ViewHostMsg_SelectionBounds_Params& params) {
1062 ui::SelectionBound anchor_bound, focus_bound; 1062 ui::SelectionBound anchor_bound, focus_bound;
1063 anchor_bound.SetEdge(params.anchor_rect.origin(), 1063 anchor_bound.SetEdge(gfx::PointF(params.anchor_rect.origin()),
1064 params.anchor_rect.bottom_left()); 1064 gfx::PointF(params.anchor_rect.bottom_left()));
1065 focus_bound.SetEdge(params.focus_rect.origin(), 1065 focus_bound.SetEdge(gfx::PointF(params.focus_rect.origin()),
1066 params.focus_rect.bottom_left()); 1066 gfx::PointF(params.focus_rect.bottom_left()));
1067 1067
1068 if (params.anchor_rect == params.focus_rect) { 1068 if (params.anchor_rect == params.focus_rect) {
1069 anchor_bound.set_type(ui::SelectionBound::CENTER); 1069 anchor_bound.set_type(ui::SelectionBound::CENTER);
1070 focus_bound.set_type(ui::SelectionBound::CENTER); 1070 focus_bound.set_type(ui::SelectionBound::CENTER);
1071 } else { 1071 } else {
1072 // Whether text is LTR at the anchor handle. 1072 // Whether text is LTR at the anchor handle.
1073 bool anchor_LTR = params.anchor_dir == blink::WebTextDirectionLeftToRight; 1073 bool anchor_LTR = params.anchor_dir == blink::WebTextDirectionLeftToRight;
1074 // Whether text is LTR at the focus handle. 1074 // Whether text is LTR at the focus handle.
1075 bool focus_LTR = params.focus_dir == blink::WebTextDirectionLeftToRight; 1075 bool focus_LTR = params.focus_dir == blink::WebTextDirectionLeftToRight;
1076 1076
(...skipping 1812 matching lines...) Expand 10 before | Expand all | Expand 10 after
2889 2889
2890 //////////////////////////////////////////////////////////////////////////////// 2890 ////////////////////////////////////////////////////////////////////////////////
2891 // RenderWidgetHostViewBase, public: 2891 // RenderWidgetHostViewBase, public:
2892 2892
2893 // static 2893 // static
2894 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { 2894 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) {
2895 GetScreenInfoForWindow(results, NULL); 2895 GetScreenInfoForWindow(results, NULL);
2896 } 2896 }
2897 2897
2898 } // namespace content 2898 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698