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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_PREFS_H_
6 #define CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_PREFS_H_
10 #include "chrome/browser/profiles/profile.h"
12 class NewTabPagePrefs
{
14 explicit NewTabPagePrefs(Profile
* profile
);
15 void Destroy(JNIEnv
* env
, jobject obj
);
17 jboolean
GetSnapshotDocumentCollapsed(JNIEnv
* env
, jobject obj
);
18 void SetSnapshotDocumentCollapsed(JNIEnv
* env
,
20 jboolean is_collapsed
);
22 jboolean
GetRecentlyClosedTabsCollapsed(JNIEnv
* env
, jobject obj
);
23 void SetRecentlyClosedTabsCollapsed(JNIEnv
* env
,
25 jboolean is_collapsed
);
27 jboolean
GetSyncPromoCollapsed(JNIEnv
* env
, jobject obj
);
28 void SetSyncPromoCollapsed(JNIEnv
* env
,
30 jboolean is_collapsed
);
32 jboolean
GetForeignSessionCollapsed(JNIEnv
* env
,
35 void SetForeignSessionCollapsed(JNIEnv
* env
, jobject obj
,
37 jboolean is_collapsed
);
39 static bool RegisterNewTabPagePrefs(JNIEnv
* env
);
40 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable
* registry
);
42 virtual ~NewTabPagePrefs();
44 Profile
* profile_
; // weak
45 DISALLOW_COPY_AND_ASSIGN(NewTabPagePrefs
);
48 #endif // CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_PREFS_H_