OLD | NEW |
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 "chrome/android/testshell/testshell_tab.h" | 5 #include "chrome/android/testshell/testshell_tab.h" |
6 | 6 |
7 #include "base/android/jni_string.h" | 7 #include "base/android/jni_string.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" | 9 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" |
10 #include "chrome/browser/net/url_fixer_upper.h" | 10 #include "chrome/browser/net/url_fixer_upper.h" |
11 #include "chrome/browser/ui/android/window_android_helper.h" | 11 #include "chrome/browser/ui/android/window_android_helper.h" |
12 #include "content/public/browser/android/content_view_core.h" | 12 #include "content/public/browser/android/content_view_core.h" |
13 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
15 #include "jni/TestShellTab_jni.h" | 15 #include "jni/TestShellTab_jni.h" |
16 #include "ui/gfx/android/window_android.h" | 16 #include "ui/android/window_android.h" |
17 | 17 |
18 using base::android::ConvertJavaStringToUTF8; | 18 using base::android::ConvertJavaStringToUTF8; |
19 using base::android::ConvertUTF8ToJavaString; | 19 using base::android::ConvertUTF8ToJavaString; |
20 using base::android::ScopedJavaLocalRef; | 20 using base::android::ScopedJavaLocalRef; |
21 using chrome::android::ChromeWebContentsDelegateAndroid; | 21 using chrome::android::ChromeWebContentsDelegateAndroid; |
22 using content::WebContents; | 22 using content::WebContents; |
23 using ui::WindowAndroid; | 23 using ui::WindowAndroid; |
24 | 24 |
25 TestShellTab::TestShellTab(JNIEnv* env, | 25 TestShellTab::TestShellTab(JNIEnv* env, |
26 jobject obj, | 26 jobject obj, |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 jobject obj, | 110 jobject obj, |
111 jint web_contents_ptr, | 111 jint web_contents_ptr, |
112 jint window_android_ptr) { | 112 jint window_android_ptr) { |
113 TestShellTab* tab = new TestShellTab( | 113 TestShellTab* tab = new TestShellTab( |
114 env, | 114 env, |
115 obj, | 115 obj, |
116 reinterpret_cast<WebContents*>(web_contents_ptr), | 116 reinterpret_cast<WebContents*>(web_contents_ptr), |
117 reinterpret_cast<WindowAndroid*>(window_android_ptr)); | 117 reinterpret_cast<WindowAndroid*>(window_android_ptr)); |
118 return reinterpret_cast<jint>(tab); | 118 return reinterpret_cast<jint>(tab); |
119 } | 119 } |
OLD | NEW |