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

Side by Side Diff: content/browser/frame_host/navigation_controller_android.cc

Issue 675133002: Export GetLastCommittedEntryIndex and RemoveEntryAtIndex to Java layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comments Created 6 years, 1 month 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/frame_host/navigation_controller_android.h" 5 #include "content/browser/frame_host/navigation_controller_android.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_array.h" 8 #include "base/android/jni_array.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "content/browser/frame_host/navigation_entry_impl.h" 10 #include "content/browser/frame_host/navigation_entry_impl.h"
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 NavigationControllerAndroid::GetPendingEntry(JNIEnv* env, jobject obj) { 304 NavigationControllerAndroid::GetPendingEntry(JNIEnv* env, jobject obj) {
305 content::NavigationEntry* entry = navigation_controller_->GetPendingEntry(); 305 content::NavigationEntry* entry = navigation_controller_->GetPendingEntry();
306 306
307 if (!entry) 307 if (!entry)
308 return base::android::ScopedJavaLocalRef<jobject>(); 308 return base::android::ScopedJavaLocalRef<jobject>();
309 309
310 return CreateJavaNavigationEntry( 310 return CreateJavaNavigationEntry(
311 env, entry, navigation_controller_->GetPendingEntryIndex()); 311 env, entry, navigation_controller_->GetPendingEntryIndex());
312 } 312 }
313 313
314 jint NavigationControllerAndroid::GetLastCommittedEntryIndex(JNIEnv* env,
315 jobject obj) {
316 return navigation_controller_->GetLastCommittedEntryIndex();
317 }
318
319 jboolean NavigationControllerAndroid::RemoveEntryAtIndex(JNIEnv* env,
320 jobject obj,
321 jint index) {
322 return navigation_controller_->RemoveEntryAtIndex(index);
323 }
324
314 } // namespace content 325 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698