| 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" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 WebContents* TestShellTab::GetWebContents() { | 43 WebContents* TestShellTab::GetWebContents() { |
| 44 return web_contents_.get(); | 44 return web_contents_.get(); |
| 45 } | 45 } |
| 46 | 46 |
| 47 browser_sync::SyncedTabDelegate* TestShellTab::GetSyncedTabDelegate() { | 47 browser_sync::SyncedTabDelegate* TestShellTab::GetSyncedTabDelegate() { |
| 48 NOTIMPLEMENTED(); | 48 NOTIMPLEMENTED(); |
| 49 return NULL; | 49 return NULL; |
| 50 } | 50 } |
| 51 | 51 |
| 52 int64 TestShellTab::GetSyncSessionId() { |
| 53 NOTIMPLEMENTED(); |
| 54 return -1; |
| 55 } |
| 56 void TestShellTab::SetSyncSessionId(int64 sync_id) { NOTIMPLEMENTED(); } |
| 57 |
| 52 void TestShellTab::OnReceivedHttpAuthRequest(jobject auth_handler, | 58 void TestShellTab::OnReceivedHttpAuthRequest(jobject auth_handler, |
| 53 const string16& host, | 59 const string16& host, |
| 54 const string16& realm) { | 60 const string16& realm) { |
| 55 NOTIMPLEMENTED(); | 61 NOTIMPLEMENTED(); |
| 56 } | 62 } |
| 57 | 63 |
| 58 void TestShellTab::ShowContextMenu( | 64 void TestShellTab::ShowContextMenu( |
| 59 const content::ContextMenuParams& params) { | 65 const content::ContextMenuParams& params) { |
| 60 NOTIMPLEMENTED(); | 66 NOTIMPLEMENTED(); |
| 61 } | 67 } |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 jobject obj, | 116 jobject obj, |
| 111 jint web_contents_ptr, | 117 jint web_contents_ptr, |
| 112 jint window_android_ptr) { | 118 jint window_android_ptr) { |
| 113 TestShellTab* tab = new TestShellTab( | 119 TestShellTab* tab = new TestShellTab( |
| 114 env, | 120 env, |
| 115 obj, | 121 obj, |
| 116 reinterpret_cast<WebContents*>(web_contents_ptr), | 122 reinterpret_cast<WebContents*>(web_contents_ptr), |
| 117 reinterpret_cast<WindowAndroid*>(window_android_ptr)); | 123 reinterpret_cast<WindowAndroid*>(window_android_ptr)); |
| 118 return reinterpret_cast<jint>(tab); | 124 return reinterpret_cast<jint>(tab); |
| 119 } | 125 } |
| OLD | NEW |