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

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

Issue 2213503002: Tracking SelectionBounds for all RenderWidgets on the Browser Side (Mac) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a crash Created 4 years, 4 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_android.h" 5 #include "content/browser/renderer_host/render_widget_host_view_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 if (pos >= text.length()) { 832 if (pos >= text.length()) {
833 NOTREACHED() << "The text can not cover range."; 833 NOTREACHED() << "The text can not cover range.";
834 return; 834 return;
835 } 835 }
836 836
837 std::string utf8_selection = base::UTF16ToUTF8(text.substr(pos, n)); 837 std::string utf8_selection = base::UTF16ToUTF8(text.substr(pos, n));
838 838
839 content_view_core_->OnSelectionChanged(utf8_selection); 839 content_view_core_->OnSelectionChanged(utf8_selection);
840 } 840 }
841 841
842 void RenderWidgetHostViewAndroid::SelectionBoundsChanged(
843 const ViewHostMsg_SelectionBounds_Params& params) {
844 NOTREACHED() << "Selection bounds should be routed through the compositor.";
845 }
846
847 void RenderWidgetHostViewAndroid::SetBackgroundColor(SkColor color) { 842 void RenderWidgetHostViewAndroid::SetBackgroundColor(SkColor color) {
848 RenderWidgetHostViewBase::SetBackgroundColor(color); 843 RenderWidgetHostViewBase::SetBackgroundColor(color);
849 host_->SetBackgroundOpaque(GetBackgroundOpaque()); 844 host_->SetBackgroundOpaque(GetBackgroundOpaque());
850 UpdateBackgroundColor(color); 845 UpdateBackgroundColor(color);
851 } 846 }
852 847
853 void RenderWidgetHostViewAndroid::CopyFromCompositingSurface( 848 void RenderWidgetHostViewAndroid::CopyFromCompositingSurface(
854 const gfx::Rect& src_subrect, 849 const gfx::Rect& src_subrect,
855 const gfx::Size& dst_size, 850 const gfx::Size& dst_size,
856 const ReadbackRequestCallback& callback, 851 const ReadbackRequestCallback& callback,
(...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1984 case ui::MotionEvent::ACTION_UP: 1979 case ui::MotionEvent::ACTION_UP:
1985 case ui::MotionEvent::ACTION_POINTER_UP: 1980 case ui::MotionEvent::ACTION_POINTER_UP:
1986 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED", 1981 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED",
1987 delta.InMicroseconds(), 1, 1000000, 50); 1982 delta.InMicroseconds(), 1, 1000000, 50);
1988 default: 1983 default:
1989 return; 1984 return;
1990 } 1985 }
1991 } 1986 }
1992 1987
1993 } // namespace content 1988 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698