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

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: Removing some #ifdefs 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 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 if (pos >= text.length()) { 839 if (pos >= text.length()) {
840 NOTREACHED() << "The text can not cover range."; 840 NOTREACHED() << "The text can not cover range.";
841 return; 841 return;
842 } 842 }
843 843
844 std::string utf8_selection = base::UTF16ToUTF8(text.substr(pos, n)); 844 std::string utf8_selection = base::UTF16ToUTF8(text.substr(pos, n));
845 845
846 content_view_core_->OnSelectionChanged(utf8_selection); 846 content_view_core_->OnSelectionChanged(utf8_selection);
847 } 847 }
848 848
849 void RenderWidgetHostViewAndroid::SelectionBoundsChanged(
850 const ViewHostMsg_SelectionBounds_Params& params) {
851 NOTREACHED() << "Selection bounds should be routed through the compositor.";
852 }
853
854 void RenderWidgetHostViewAndroid::SetBackgroundColor(SkColor color) { 849 void RenderWidgetHostViewAndroid::SetBackgroundColor(SkColor color) {
855 RenderWidgetHostViewBase::SetBackgroundColor(color); 850 RenderWidgetHostViewBase::SetBackgroundColor(color);
856 host_->SetBackgroundOpaque(GetBackgroundOpaque()); 851 host_->SetBackgroundOpaque(GetBackgroundOpaque());
857 UpdateBackgroundColor(color); 852 UpdateBackgroundColor(color);
858 } 853 }
859 854
860 void RenderWidgetHostViewAndroid::CopyFromCompositingSurface( 855 void RenderWidgetHostViewAndroid::CopyFromCompositingSurface(
861 const gfx::Rect& src_subrect, 856 const gfx::Rect& src_subrect,
862 const gfx::Size& dst_size, 857 const gfx::Size& dst_size,
863 const ReadbackRequestCallback& callback, 858 const ReadbackRequestCallback& callback,
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1973 case ui::MotionEvent::ACTION_UP: 1968 case ui::MotionEvent::ACTION_UP:
1974 case ui::MotionEvent::ACTION_POINTER_UP: 1969 case ui::MotionEvent::ACTION_POINTER_UP:
1975 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED", 1970 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED",
1976 delta.InMicroseconds(), 1, 1000000, 50); 1971 delta.InMicroseconds(), 1, 1000000, 50);
1977 default: 1972 default:
1978 return; 1973 return;
1979 } 1974 }
1980 } 1975 }
1981 1976
1982 } // namespace content 1977 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698