| 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_NTP_NEW_TAB_PAGE_PREFS_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_NTP_RECENT_TABS_PAGE_PREFS_H_ |
| 6 #define CHROME_BROWSER_ANDROID_NTP_NEW_TAB_PAGE_PREFS_H_ | 6 #define CHROME_BROWSER_ANDROID_NTP_RECENT_TABS_PAGE_PREFS_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" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 | 13 |
| 14 class NewTabPagePrefs { | 14 class RecentTabsPagePrefs { |
| 15 public: | 15 public: |
| 16 explicit NewTabPagePrefs(Profile* profile); | 16 explicit RecentTabsPagePrefs(Profile* profile); |
| 17 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); | 17 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); |
| 18 | 18 |
| 19 jboolean GetSnapshotDocumentCollapsed( | 19 jboolean GetSnapshotDocumentCollapsed( |
| 20 JNIEnv* env, | 20 JNIEnv* env, |
| 21 const base::android::JavaParamRef<jobject>& obj); | 21 const base::android::JavaParamRef<jobject>& obj); |
| 22 void SetSnapshotDocumentCollapsed( | 22 void SetSnapshotDocumentCollapsed( |
| 23 JNIEnv* env, | 23 JNIEnv* env, |
| 24 const base::android::JavaParamRef<jobject>& obj, | 24 const base::android::JavaParamRef<jobject>& obj, |
| 25 jboolean is_collapsed); | 25 jboolean is_collapsed); |
| 26 | 26 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 42 jboolean GetForeignSessionCollapsed( | 42 jboolean GetForeignSessionCollapsed( |
| 43 JNIEnv* env, | 43 JNIEnv* env, |
| 44 const base::android::JavaParamRef<jobject>& obj, | 44 const base::android::JavaParamRef<jobject>& obj, |
| 45 const base::android::JavaParamRef<jstring>& session_tag); | 45 const base::android::JavaParamRef<jstring>& session_tag); |
| 46 void SetForeignSessionCollapsed( | 46 void SetForeignSessionCollapsed( |
| 47 JNIEnv* env, | 47 JNIEnv* env, |
| 48 const base::android::JavaParamRef<jobject>& obj, | 48 const base::android::JavaParamRef<jobject>& obj, |
| 49 const base::android::JavaParamRef<jstring>& session_tag, | 49 const base::android::JavaParamRef<jstring>& session_tag, |
| 50 jboolean is_collapsed); | 50 jboolean is_collapsed); |
| 51 | 51 |
| 52 static bool RegisterNewTabPagePrefs(JNIEnv* env); | 52 static bool RegisterJni(JNIEnv* env); |
| 53 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 53 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 54 |
| 54 private: | 55 private: |
| 55 virtual ~NewTabPagePrefs(); | 56 virtual ~RecentTabsPagePrefs(); |
| 56 | 57 |
| 57 Profile* profile_; // weak | 58 Profile* profile_; // weak |
| 58 DISALLOW_COPY_AND_ASSIGN(NewTabPagePrefs); | 59 DISALLOW_COPY_AND_ASSIGN(RecentTabsPagePrefs); |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 #endif // CHROME_BROWSER_ANDROID_NTP_NEW_TAB_PAGE_PREFS_H_ | 62 #endif // CHROME_BROWSER_ANDROID_NTP_RECENT_TABS_PAGE_PREFS_H_ |
| OLD | NEW |