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

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

Issue 369503003: Migration of code from ContentViewCore to NavigationController to avoid ContentViewCore abstraction… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed commented code Created 6 years, 5 months 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 "content/public/browser/navigation_controller.h" 8 #include "content/public/browser/navigation_controller.h"
9 #include "jni/NavigationControllerImpl_jni.h" 9 #include "jni/NavigationControllerImpl_jni.h"
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void NavigationControllerAndroid::GoForward(JNIEnv* env, jobject obj) { 57 void NavigationControllerAndroid::GoForward(JNIEnv* env, jobject obj) {
58 navigation_controller_->GoForward(); 58 navigation_controller_->GoForward();
59 } 59 }
60 60
61 void NavigationControllerAndroid::GoToOffset(JNIEnv* env, 61 void NavigationControllerAndroid::GoToOffset(JNIEnv* env,
62 jobject obj, 62 jobject obj,
63 jint offset) { 63 jint offset) {
64 navigation_controller_->GoToOffset(offset); 64 navigation_controller_->GoToOffset(offset);
65 } 65 }
66 66
67 void NavigationControllerAndroid::LoadIfNecessary(JNIEnv* env, jobject obj) {
68 navigation_controller_->LoadIfNecessary();
69 }
70
71 void NavigationControllerAndroid::ContinuePendingReload(JNIEnv* env,
72 jobject obj) {
73 navigation_controller_->ContinuePendingReload();
74 }
75
76 void NavigationControllerAndroid::Reload(JNIEnv* env,
77 jobject obj,
78 jboolean check_for_repost) {
79 navigation_controller_->Reload(check_for_repost);
80 }
81
82 void NavigationControllerAndroid::ReloadIgnoringCache(JNIEnv* env,
nasko 2014/07/08 06:28:58 style: all params should start on new line
AKVT 2014/07/08 06:38:41 Done.
83 jobject obj,
84 jboolean check_for_repost) {
85 navigation_controller_->ReloadIgnoringCache(check_for_repost);
86 }
87
88 void NavigationControllerAndroid::RequestRestoreLoad(JNIEnv* env, jobject obj) {
89 navigation_controller_->SetNeedsReload();
90 }
91
92 void NavigationControllerAndroid::CancelPendingReload(JNIEnv* env,
93 jobject obj) {
94 navigation_controller_->CancelPendingReload();
95 }
96
67 void NavigationControllerAndroid::GoToNavigationIndex(JNIEnv* env, 97 void NavigationControllerAndroid::GoToNavigationIndex(JNIEnv* env,
68 jobject obj, 98 jobject obj,
69 jint index) { 99 jint index) {
70 navigation_controller_->GoToIndex(index); 100 navigation_controller_->GoToIndex(index);
71 } 101 }
72 102
73 } // namespace content 103 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698