| 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/browser/android/tab_base_android_impl.h" | 5 #include "chrome/browser/android/tab_base_android_impl.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" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 const base::Callback<void(int)>& callback) { | 86 const base::Callback<void(int)>& callback) { |
| 87 NOTIMPLEMENTED(); | 87 NOTIMPLEMENTED(); |
| 88 } | 88 } |
| 89 | 89 |
| 90 void TabBaseAndroidImpl::AddShortcutToBookmark( | 90 void TabBaseAndroidImpl::AddShortcutToBookmark( |
| 91 const GURL& url, const string16& title, const SkBitmap& skbitmap, | 91 const GURL& url, const string16& title, const SkBitmap& skbitmap, |
| 92 int r_value, int g_value, int b_value) { | 92 int r_value, int g_value, int b_value) { |
| 93 NOTIMPLEMENTED(); | 93 NOTIMPLEMENTED(); |
| 94 } | 94 } |
| 95 | 95 |
| 96 void TabBaseAndroidImpl::RunExternalProtocolDialog(const GURL& url) { |
| 97 NOTIMPLEMENTED(); |
| 98 } |
| 99 |
| 96 bool TabBaseAndroidImpl::RegisterTabBaseAndroidImpl(JNIEnv* env) { | 100 bool TabBaseAndroidImpl::RegisterTabBaseAndroidImpl(JNIEnv* env) { |
| 97 return RegisterNativesImpl(env); | 101 return RegisterNativesImpl(env); |
| 98 } | 102 } |
| 99 | 103 |
| 100 void TabBaseAndroidImpl::InitWebContentsDelegate( | 104 void TabBaseAndroidImpl::InitWebContentsDelegate( |
| 101 JNIEnv* env, | 105 JNIEnv* env, |
| 102 jobject obj, | 106 jobject obj, |
| 103 jobject web_contents_delegate) { | 107 jobject web_contents_delegate) { |
| 104 web_contents_delegate_.reset( | 108 web_contents_delegate_.reset( |
| 105 new ChromeWebContentsDelegateRenderAndroid(this, | 109 new ChromeWebContentsDelegateRenderAndroid(this, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 123 | 127 |
| 124 static jint Init(JNIEnv* env, | 128 static jint Init(JNIEnv* env, |
| 125 jobject obj, | 129 jobject obj, |
| 126 jint web_contents_ptr) { | 130 jint web_contents_ptr) { |
| 127 TabBaseAndroidImpl* tab = new TabBaseAndroidImpl( | 131 TabBaseAndroidImpl* tab = new TabBaseAndroidImpl( |
| 128 env, | 132 env, |
| 129 obj, | 133 obj, |
| 130 reinterpret_cast<WebContents*>(web_contents_ptr)); | 134 reinterpret_cast<WebContents*>(web_contents_ptr)); |
| 131 return reinterpret_cast<jint>(tab); | 135 return reinterpret_cast<jint>(tab); |
| 132 } | 136 } |
| OLD | NEW |