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/ui/android/window_android_helper.h" | 10 #include "chrome/browser/ui/android/window_android_helper.h" |
11 #include "chrome/browser/ui/browser_navigator.h" | 11 #include "chrome/browser/ui/browser_navigator.h" |
12 #include "chrome/common/net/url_fixer_upper.h" | 12 #include "chrome/common/net/url_fixer_upper.h" |
13 #include "content/public/browser/android/content_view_core.h" | 13 #include "content/public/browser/android/content_view_core.h" |
14 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
15 #include "jni/TestShellTab_jni.h" | 15 #include "jni/TestShellTab_jni.h" |
16 #include "ui/android/window_android.h" | 16 #include "ui/base/android/window_android.h" |
17 #include "url/gurl.h" | 17 #include "url/gurl.h" |
18 | 18 |
19 using base::android::ConvertJavaStringToUTF8; | 19 using base::android::ConvertJavaStringToUTF8; |
20 using base::android::ConvertUTF8ToJavaString; | 20 using base::android::ConvertUTF8ToJavaString; |
21 using base::android::ScopedJavaLocalRef; | 21 using base::android::ScopedJavaLocalRef; |
22 using chrome::android::ChromeWebContentsDelegateAndroid; | 22 using chrome::android::ChromeWebContentsDelegateAndroid; |
23 using content::WebContents; | 23 using content::WebContents; |
24 using ui::WindowAndroid; | 24 using ui::WindowAndroid; |
25 | 25 |
26 TestShellTab::TestShellTab(JNIEnv* env, | 26 TestShellTab::TestShellTab(JNIEnv* env, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 static jint Init(JNIEnv* env, jobject obj) { | 95 static jint Init(JNIEnv* env, jobject obj) { |
96 return reinterpret_cast<jint>(new TestShellTab(env, obj)); | 96 return reinterpret_cast<jint>(new TestShellTab(env, obj)); |
97 } | 97 } |
98 | 98 |
99 int TestShellTab::GetSyncId() const { | 99 int TestShellTab::GetSyncId() const { |
100 NOTIMPLEMENTED(); | 100 NOTIMPLEMENTED(); |
101 return 0; | 101 return 0; |
102 } | 102 } |
103 | 103 |
104 void TestShellTab::SetSyncId(int sync_id) { NOTIMPLEMENTED(); } | 104 void TestShellTab::SetSyncId(int sync_id) { NOTIMPLEMENTED(); } |
OLD | NEW |