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

Side by Side Diff: content/browser/web_contents/web_contents_android.cc

Issue 2617623002: Switch RenderWidgetHostViewAndroid to use Screen (Closed)
Patch Set: remove comment change Created 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/web_contents/web_contents_android.h" 5 #include "content/browser/web_contents/web_contents_android.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
(...skipping 22 matching lines...) Expand all
33 #include "content/public/browser/browser_context.h" 33 #include "content/public/browser/browser_context.h"
34 #include "content/public/browser/browser_thread.h" 34 #include "content/public/browser/browser_thread.h"
35 #include "content/public/browser/message_port_provider.h" 35 #include "content/public/browser/message_port_provider.h"
36 #include "content/public/browser/render_widget_host.h" 36 #include "content/public/browser/render_widget_host.h"
37 #include "content/public/browser/web_contents.h" 37 #include "content/public/browser/web_contents.h"
38 #include "content/public/common/content_switches.h" 38 #include "content/public/common/content_switches.h"
39 #include "jni/WebContentsImpl_jni.h" 39 #include "jni/WebContentsImpl_jni.h"
40 #include "net/android/network_library.h" 40 #include "net/android/network_library.h"
41 #include "ui/accessibility/ax_node_data.h" 41 #include "ui/accessibility/ax_node_data.h"
42 #include "ui/android/overscroll_refresh_handler.h" 42 #include "ui/android/overscroll_refresh_handler.h"
43 #include "ui/gfx/android/device_display_info.h"
44 #include "ui/gfx/android/java_bitmap.h" 43 #include "ui/gfx/android/java_bitmap.h"
45 #include "ui/gfx/geometry/rect.h" 44 #include "ui/gfx/geometry/rect.h"
46 45
47 using base::android::AttachCurrentThread; 46 using base::android::AttachCurrentThread;
48 using base::android::ConvertJavaStringToUTF8; 47 using base::android::ConvertJavaStringToUTF8;
49 using base::android::ConvertJavaStringToUTF16; 48 using base::android::ConvertJavaStringToUTF16;
50 using base::android::ConvertUTF8ToJavaString; 49 using base::android::ConvertUTF8ToJavaString;
51 using base::android::ConvertUTF16ToJavaString; 50 using base::android::ConvertUTF16ToJavaString;
52 using base::android::JavaParamRef; 51 using base::android::JavaParamRef;
53 using base::android::JavaRef; 52 using base::android::JavaRef;
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 env, obj, callback, id, http_status_code, jurl, jbitmaps, jsizes); 733 env, obj, callback, id, http_status_code, jurl, jbitmaps, jsizes);
735 } 734 }
736 735
737 void WebContentsAndroid::SetMediaSession( 736 void WebContentsAndroid::SetMediaSession(
738 const ScopedJavaLocalRef<jobject>& j_media_session) { 737 const ScopedJavaLocalRef<jobject>& j_media_session) {
739 JNIEnv* env = base::android::AttachCurrentThread(); 738 JNIEnv* env = base::android::AttachCurrentThread();
740 Java_WebContentsImpl_setMediaSession(env, obj_, j_media_session); 739 Java_WebContentsImpl_setMediaSession(env, obj_, j_media_session);
741 } 740 }
742 741
743 } // namespace content 742 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | ui/android/display_android_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698