OLD | NEW |
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 #ifndef CHROME_BROWSER_ANDROID_RECENTLY_CLOSED_TABS_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_RECENTLY_CLOSED_TABS_BRIDGE_H_ |
6 #define CHROME_BROWSER_ANDROID_RECENTLY_CLOSED_TABS_BRIDGE_H_ | 6 #define CHROME_BROWSER_ANDROID_RECENTLY_CLOSED_TABS_BRIDGE_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 JNIEnv* env, | 28 JNIEnv* env, |
29 const base::android::JavaParamRef<jobject>& obj, | 29 const base::android::JavaParamRef<jobject>& obj, |
30 const base::android::JavaParamRef<jobject>& jtabs, | 30 const base::android::JavaParamRef<jobject>& jtabs, |
31 jint max_tab_count); | 31 jint max_tab_count); |
32 jboolean OpenRecentlyClosedTab( | 32 jboolean OpenRecentlyClosedTab( |
33 JNIEnv* env, | 33 JNIEnv* env, |
34 const base::android::JavaParamRef<jobject>& obj, | 34 const base::android::JavaParamRef<jobject>& obj, |
35 const base::android::JavaParamRef<jobject>& jtab, | 35 const base::android::JavaParamRef<jobject>& jtab, |
36 jint tab_id, | 36 jint tab_id, |
37 jint j_disposition); | 37 jint j_disposition); |
| 38 jboolean OpenMostRecentlyClosedTab( |
| 39 JNIEnv* env, |
| 40 const base::android::JavaParamRef<jobject>& obj); |
38 void ClearRecentlyClosedTabs(JNIEnv* env, | 41 void ClearRecentlyClosedTabs(JNIEnv* env, |
39 const base::android::JavaParamRef<jobject>& obj); | 42 const base::android::JavaParamRef<jobject>& obj); |
40 | 43 |
41 // Observer callback for TabRestoreServiceObserver. Notifies the registered | 44 // Observer callback for TabRestoreServiceObserver. Notifies the registered |
42 // callback that the recently closed tabs list has changed. | 45 // callback that the recently closed tabs list has changed. |
43 void TabRestoreServiceChanged(sessions::TabRestoreService* service) override; | 46 void TabRestoreServiceChanged(sessions::TabRestoreService* service) override; |
44 | 47 |
45 // Observer callback when our associated TabRestoreService is destroyed. | 48 // Observer callback when our associated TabRestoreService is destroyed. |
46 void TabRestoreServiceDestroyed( | 49 void TabRestoreServiceDestroyed( |
47 sessions::TabRestoreService* service) override; | 50 sessions::TabRestoreService* service) override; |
(...skipping 14 matching lines...) Expand all Loading... |
62 // The profile whose recently closed tabs are being monitored. | 65 // The profile whose recently closed tabs are being monitored. |
63 Profile* profile_; | 66 Profile* profile_; |
64 | 67 |
65 // TabRestoreService that we are observing. | 68 // TabRestoreService that we are observing. |
66 sessions::TabRestoreService* tab_restore_service_; | 69 sessions::TabRestoreService* tab_restore_service_; |
67 | 70 |
68 DISALLOW_COPY_AND_ASSIGN(RecentlyClosedTabsBridge); | 71 DISALLOW_COPY_AND_ASSIGN(RecentlyClosedTabsBridge); |
69 }; | 72 }; |
70 | 73 |
71 #endif // CHROME_BROWSER_ANDROID_RECENTLY_CLOSED_TABS_BRIDGE_H_ | 74 #endif // CHROME_BROWSER_ANDROID_RECENTLY_CLOSED_TABS_BRIDGE_H_ |
OLD | NEW |