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 |
| 39 jboolean OpenMostRecentlyClosedTab( |
| 40 JNIEnv* env, |
| 41 const base::android::JavaParamRef<jobject>& obj); |
| 42 |
38 void ClearRecentlyClosedTabs(JNIEnv* env, | 43 void ClearRecentlyClosedTabs(JNIEnv* env, |
39 const base::android::JavaParamRef<jobject>& obj); | 44 const base::android::JavaParamRef<jobject>& obj); |
40 | 45 |
41 // Observer callback for TabRestoreServiceObserver. Notifies the registered | 46 // Observer callback for TabRestoreServiceObserver. Notifies the registered |
42 // callback that the recently closed tabs list has changed. | 47 // callback that the recently closed tabs list has changed. |
43 void TabRestoreServiceChanged(sessions::TabRestoreService* service) override; | 48 void TabRestoreServiceChanged(sessions::TabRestoreService* service) override; |
44 | 49 |
45 // Observer callback when our associated TabRestoreService is destroyed. | 50 // Observer callback when our associated TabRestoreService is destroyed. |
46 void TabRestoreServiceDestroyed( | 51 void TabRestoreServiceDestroyed( |
47 sessions::TabRestoreService* service) override; | 52 sessions::TabRestoreService* service) override; |
(...skipping 14 matching lines...) Expand all Loading... |
62 // The profile whose recently closed tabs are being monitored. | 67 // The profile whose recently closed tabs are being monitored. |
63 Profile* profile_; | 68 Profile* profile_; |
64 | 69 |
65 // TabRestoreService that we are observing. | 70 // TabRestoreService that we are observing. |
66 sessions::TabRestoreService* tab_restore_service_; | 71 sessions::TabRestoreService* tab_restore_service_; |
67 | 72 |
68 DISALLOW_COPY_AND_ASSIGN(RecentlyClosedTabsBridge); | 73 DISALLOW_COPY_AND_ASSIGN(RecentlyClosedTabsBridge); |
69 }; | 74 }; |
70 | 75 |
71 #endif // CHROME_BROWSER_ANDROID_RECENTLY_CLOSED_TABS_BRIDGE_H_ | 76 #endif // CHROME_BROWSER_ANDROID_RECENTLY_CLOSED_TABS_BRIDGE_H_ |
OLD | NEW |