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

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

Issue 2878403002: Support setting mouse cursor icon in Android N. (Closed)
Patch Set: Support setting mouse cursor icon in Android N Created 3 years, 7 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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 711
712 float RenderWidgetHostViewAndroid::GetBottomControlsHeight() const { 712 float RenderWidgetHostViewAndroid::GetBottomControlsHeight() const {
713 if (!content_view_core_) 713 if (!content_view_core_)
714 return 0.f; 714 return 0.f;
715 715
716 // The height of the browser controls. 716 // The height of the browser controls.
717 return content_view_core_->GetBottomControlsHeightDip(); 717 return content_view_core_->GetBottomControlsHeightDip();
718 } 718 }
719 719
720 void RenderWidgetHostViewAndroid::UpdateCursor(const WebCursor& cursor) { 720 void RenderWidgetHostViewAndroid::UpdateCursor(const WebCursor& cursor) {
721 // There are no cursors on Android. 721 CursorInfo cursor_info;
722 cursor.GetCursorInfo(&cursor_info);
723 view_.OnCursorChanged(cursor_info.type, cursor_info.custom_image,
724 cursor_info.hotspot);
722 } 725 }
723 726
724 void RenderWidgetHostViewAndroid::SetIsLoading(bool is_loading) { 727 void RenderWidgetHostViewAndroid::SetIsLoading(bool is_loading) {
725 // Do nothing. The UI notification is handled through ContentViewClient which 728 // Do nothing. The UI notification is handled through ContentViewClient which
726 // is TabContentsDelegate. 729 // is TabContentsDelegate.
727 } 730 }
728 731
729 // ----------------------------------------------------------------------------- 732 // -----------------------------------------------------------------------------
730 // TextInputManager::Observer implementations. 733 // TextInputManager::Observer implementations.
731 void RenderWidgetHostViewAndroid::OnUpdateTextInputStateCalled( 734 void RenderWidgetHostViewAndroid::OnUpdateTextInputStateCalled(
(...skipping 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after
2230 2233
2231 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor(); 2234 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor();
2232 if (!compositor) 2235 if (!compositor)
2233 return; 2236 return;
2234 2237
2235 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>( 2238 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>(
2236 overscroll_refresh_handler, compositor, view_.GetDipScale()); 2239 overscroll_refresh_handler, compositor, view_.GetDipScale());
2237 } 2240 }
2238 2241
2239 } // namespace content 2242 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/public/BUILD.gn » ('j') | ui/android/java/src/org/chromium/ui/base/ViewAndroidDelegate.java » ('J')

Powered by Google App Engine
This is Rietveld 408576698