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

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

Issue 11593011: Add a new code/message path for moving an insertion handle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + function rename Created 7 years, 11 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/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 if (host_) 565 if (host_)
566 host_->ForwardGestureEvent(event); 566 host_->ForwardGestureEvent(event);
567 } 567 }
568 568
569 void RenderWidgetHostViewAndroid::SelectRange(const gfx::Point& start, 569 void RenderWidgetHostViewAndroid::SelectRange(const gfx::Point& start,
570 const gfx::Point& end) { 570 const gfx::Point& end) {
571 if (host_) 571 if (host_)
572 host_->SelectRange(start, end); 572 host_->SelectRange(start, end);
573 } 573 }
574 574
575 void RenderWidgetHostViewAndroid::MoveCaret(const gfx::Point& point) {
576 if (host_)
577 host_->MoveCaret(point);
578 }
579
575 580
576 void RenderWidgetHostViewAndroid::SetCachedBackgroundColor(SkColor color) { 581 void RenderWidgetHostViewAndroid::SetCachedBackgroundColor(SkColor color) {
577 cached_background_color_ = color; 582 cached_background_color_ = color;
578 } 583 }
579 584
580 SkColor RenderWidgetHostViewAndroid::GetCachedBackgroundColor() const { 585 SkColor RenderWidgetHostViewAndroid::GetCachedBackgroundColor() const {
581 return cached_background_color_; 586 return cached_background_color_;
582 } 587 }
583 588
584 void RenderWidgetHostViewAndroid::SetCachedPageScaleFactorLimits( 589 void RenderWidgetHostViewAndroid::SetCachedPageScaleFactorLimits(
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 // RenderWidgetHostView, public: 645 // RenderWidgetHostView, public:
641 646
642 // static 647 // static
643 RenderWidgetHostView* 648 RenderWidgetHostView*
644 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { 649 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) {
645 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); 650 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget);
646 return new RenderWidgetHostViewAndroid(rwhi, NULL); 651 return new RenderWidgetHostViewAndroid(rwhi, NULL);
647 } 652 }
648 653
649 } // namespace content 654 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698