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 "components/navigation_interception/intercept_navigation_delegate.h" | 5 #include "components/navigation_interception/intercept_navigation_delegate.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 return Java_InterceptNavigationDelegate_shouldIgnoreNavigation( | 140 return Java_InterceptNavigationDelegate_shouldIgnoreNavigation( |
141 env, | 141 env, |
142 jdelegate.obj(), | 142 jdelegate.obj(), |
143 jobject_params.obj()); | 143 jobject_params.obj()); |
144 } | 144 } |
145 | 145 |
146 void InterceptNavigationDelegate::UpdateLastUserGestureCarryoverTimestamp() { | 146 void InterceptNavigationDelegate::UpdateLastUserGestureCarryoverTimestamp() { |
147 last_user_gesture_carryover_timestamp_ = base::TimeTicks::Now(); | 147 last_user_gesture_carryover_timestamp_ = base::TimeTicks::Now(); |
148 } | 148 } |
149 | 149 |
150 // Register native methods. | |
151 | |
152 bool RegisterInterceptNavigationDelegate(JNIEnv* env) { | |
153 return RegisterNativesImpl(env); | |
154 } | |
155 | |
156 } // namespace navigation_interception | 150 } // namespace navigation_interception |
OLD | NEW |