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_NEW_TAB_PAGE_PREFS_H_ |
6 #define CHROME_BROWSER_ANDROID_NTP_NEW_TAB_PAGE_PREFS_H_ | 6 #define CHROME_BROWSER_ANDROID_NTP_NEW_TAB_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 NewTabPagePrefs { |
15 public: | 15 public: |
16 explicit NewTabPagePrefs(Profile* profile); | 16 explicit NewTabPagePrefs(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 GetCurrentlyOpenTabsCollapsed( | |
20 JNIEnv* env, | |
21 const base::android::JavaParamRef<jobject>& obj); | |
22 void SetCurrentlyOpenTabsCollapsed( | |
23 JNIEnv* env, | |
24 const base::android::JavaParamRef<jobject>& obj, | |
25 jboolean is_collapsed); | |
26 | |
27 jboolean GetSnapshotDocumentCollapsed( | 19 jboolean GetSnapshotDocumentCollapsed( |
28 JNIEnv* env, | 20 JNIEnv* env, |
29 const base::android::JavaParamRef<jobject>& obj); | 21 const base::android::JavaParamRef<jobject>& obj); |
30 void SetSnapshotDocumentCollapsed( | 22 void SetSnapshotDocumentCollapsed( |
31 JNIEnv* env, | 23 JNIEnv* env, |
32 const base::android::JavaParamRef<jobject>& obj, | 24 const base::android::JavaParamRef<jobject>& obj, |
33 jboolean is_collapsed); | 25 jboolean is_collapsed); |
34 | 26 |
35 jboolean GetRecentlyClosedTabsCollapsed( | 27 jboolean GetRecentlyClosedTabsCollapsed( |
36 JNIEnv* env, | 28 JNIEnv* env, |
(...skipping 23 matching lines...) Expand all Loading... |
60 static bool RegisterNewTabPagePrefs(JNIEnv* env); | 52 static bool RegisterNewTabPagePrefs(JNIEnv* env); |
61 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 53 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
62 private: | 54 private: |
63 virtual ~NewTabPagePrefs(); | 55 virtual ~NewTabPagePrefs(); |
64 | 56 |
65 Profile* profile_; // weak | 57 Profile* profile_; // weak |
66 DISALLOW_COPY_AND_ASSIGN(NewTabPagePrefs); | 58 DISALLOW_COPY_AND_ASSIGN(NewTabPagePrefs); |
67 }; | 59 }; |
68 | 60 |
69 #endif // CHROME_BROWSER_ANDROID_NTP_NEW_TAB_PAGE_PREFS_H_ | 61 #endif // CHROME_BROWSER_ANDROID_NTP_NEW_TAB_PAGE_PREFS_H_ |
OLD | NEW |