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

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

Issue 351683002: Adds link disambiguation popup support to Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: attempt to fix athena build Created 6 years, 3 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/android/build_info.h" 9 #include "base/android/build_info.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 const base::Callback<void(bool)>& callback) { 912 const base::Callback<void(bool)>& callback) {
913 NOTIMPLEMENTED(); 913 NOTIMPLEMENTED();
914 callback.Run(false); 914 callback.Run(false);
915 } 915 }
916 916
917 bool RenderWidgetHostViewAndroid::CanCopyToVideoFrame() const { 917 bool RenderWidgetHostViewAndroid::CanCopyToVideoFrame() const {
918 return false; 918 return false;
919 } 919 }
920 920
921 void RenderWidgetHostViewAndroid::ShowDisambiguationPopup( 921 void RenderWidgetHostViewAndroid::ShowDisambiguationPopup(
922 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap) { 922 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap) {
923 if (!content_view_core_) 923 if (!content_view_core_)
924 return; 924 return;
925 925
926 content_view_core_->ShowDisambiguationPopup(target_rect, zoomed_bitmap); 926 content_view_core_->ShowDisambiguationPopup(rect_pixels, zoomed_bitmap);
927 } 927 }
928 928
929 scoped_ptr<SyntheticGestureTarget> 929 scoped_ptr<SyntheticGestureTarget>
930 RenderWidgetHostViewAndroid::CreateSyntheticGestureTarget() { 930 RenderWidgetHostViewAndroid::CreateSyntheticGestureTarget() {
931 return scoped_ptr<SyntheticGestureTarget>(new SyntheticGestureTargetAndroid( 931 return scoped_ptr<SyntheticGestureTarget>(new SyntheticGestureTargetAndroid(
932 host_, content_view_core_->CreateTouchEventSynthesizer())); 932 host_, content_view_core_->CreateTouchEventSynthesizer()));
933 } 933 }
934 934
935 void RenderWidgetHostViewAndroid::SendDelegatedFrameAck( 935 void RenderWidgetHostViewAndroid::SendDelegatedFrameAck(
936 uint32 output_surface_id) { 936 uint32 output_surface_id) {
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
1867 results->orientationAngle = display.RotationAsDegree(); 1867 results->orientationAngle = display.RotationAsDegree();
1868 results->orientationType = 1868 results->orientationType =
1869 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 1869 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
1870 gfx::DeviceDisplayInfo info; 1870 gfx::DeviceDisplayInfo info;
1871 results->depth = info.GetBitsPerPixel(); 1871 results->depth = info.GetBitsPerPixel();
1872 results->depthPerComponent = info.GetBitsPerComponent(); 1872 results->depthPerComponent = info.GetBitsPerComponent();
1873 results->isMonochrome = (results->depthPerComponent == 0); 1873 results->isMonochrome = (results->depthPerComponent == 0);
1874 } 1874 }
1875 1875
1876 } // namespace content 1876 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698