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

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

Issue 186753002: Chromium plumbing to use the selection root bounds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on Blink patch and OS_ANDROID specific Created 6 years, 9 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 "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 content_view_core_->OnSelectionChanged(utf8_selection); 567 content_view_core_->OnSelectionChanged(utf8_selection);
568 } 568 }
569 569
570 void RenderWidgetHostViewAndroid::SelectionBoundsChanged( 570 void RenderWidgetHostViewAndroid::SelectionBoundsChanged(
571 const ViewHostMsg_SelectionBounds_Params& params) { 571 const ViewHostMsg_SelectionBounds_Params& params) {
572 if (content_view_core_) { 572 if (content_view_core_) {
573 content_view_core_->OnSelectionBoundsChanged(params); 573 content_view_core_->OnSelectionBoundsChanged(params);
574 } 574 }
575 } 575 }
576 576
577 void RenderWidgetHostViewAndroid::SelectionRootBoundsChanged(
578 const gfx::Rect& bounds) {
579 }
580
577 void RenderWidgetHostViewAndroid::ScrollOffsetChanged() { 581 void RenderWidgetHostViewAndroid::ScrollOffsetChanged() {
578 } 582 }
579 583
580 BackingStore* RenderWidgetHostViewAndroid::AllocBackingStore( 584 BackingStore* RenderWidgetHostViewAndroid::AllocBackingStore(
581 const gfx::Size& size) { 585 const gfx::Size& size) {
582 NOTIMPLEMENTED(); 586 NOTIMPLEMENTED();
583 return NULL; 587 return NULL;
584 } 588 }
585 589
586 void RenderWidgetHostViewAndroid::SetBackground(const SkBitmap& background) { 590 void RenderWidgetHostViewAndroid::SetBackground(const SkBitmap& background) {
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
1405 // RenderWidgetHostView, public: 1409 // RenderWidgetHostView, public:
1406 1410
1407 // static 1411 // static
1408 RenderWidgetHostView* 1412 RenderWidgetHostView*
1409 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { 1413 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) {
1410 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); 1414 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget);
1411 return new RenderWidgetHostViewAndroid(rwhi, NULL); 1415 return new RenderWidgetHostViewAndroid(rwhi, NULL);
1412 } 1416 }
1413 1417
1414 } // namespace content 1418 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698