| 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_NEW_TAB_PAGE_PREFS_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_PREFS_H_ |
| 6 #define CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_PREFS_H_ | 6 #define CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_PREFS_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 | 11 |
| 12 class NewTabPagePrefs { | 12 class NewTabPagePrefs { |
| 13 public: | 13 public: |
| 14 explicit NewTabPagePrefs(Profile* profile); | 14 explicit NewTabPagePrefs(Profile* profile); |
| 15 void Destroy(JNIEnv* env, jobject obj); | 15 void Destroy(JNIEnv* env, jobject obj); |
| 16 | 16 |
| 17 jboolean GetCurrentlyOpenTabsCollapsed(JNIEnv* env, jobject obj); |
| 18 void SetCurrentlyOpenTabsCollapsed(JNIEnv* env, |
| 19 jobject obj, |
| 20 jboolean is_collapsed); |
| 21 |
| 17 jboolean GetSnapshotDocumentCollapsed(JNIEnv* env, jobject obj); | 22 jboolean GetSnapshotDocumentCollapsed(JNIEnv* env, jobject obj); |
| 18 void SetSnapshotDocumentCollapsed(JNIEnv* env, | 23 void SetSnapshotDocumentCollapsed(JNIEnv* env, |
| 19 jobject obj, | 24 jobject obj, |
| 20 jboolean is_collapsed); | 25 jboolean is_collapsed); |
| 21 | 26 |
| 22 jboolean GetRecentlyClosedTabsCollapsed(JNIEnv* env, jobject obj); | 27 jboolean GetRecentlyClosedTabsCollapsed(JNIEnv* env, jobject obj); |
| 23 void SetRecentlyClosedTabsCollapsed(JNIEnv* env, | 28 void SetRecentlyClosedTabsCollapsed(JNIEnv* env, |
| 24 jobject obj, | 29 jobject obj, |
| 25 jboolean is_collapsed); | 30 jboolean is_collapsed); |
| 26 | 31 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 39 static bool RegisterNewTabPagePrefs(JNIEnv* env); | 44 static bool RegisterNewTabPagePrefs(JNIEnv* env); |
| 40 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 45 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 41 private: | 46 private: |
| 42 virtual ~NewTabPagePrefs(); | 47 virtual ~NewTabPagePrefs(); |
| 43 | 48 |
| 44 Profile* profile_; // weak | 49 Profile* profile_; // weak |
| 45 DISALLOW_COPY_AND_ASSIGN(NewTabPagePrefs); | 50 DISALLOW_COPY_AND_ASSIGN(NewTabPagePrefs); |
| 46 }; | 51 }; |
| 47 | 52 |
| 48 #endif // CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_PREFS_H_ | 53 #endif // CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_PREFS_H_ |
| OLD | NEW |