root/chrome/browser/android/new_tab_page_prefs.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_PREFS_H_
#define CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_PREFS_H_

#include <jni.h>

#include "chrome/browser/profiles/profile.h"

class NewTabPagePrefs {
 public:
  explicit NewTabPagePrefs(Profile* profile);
  void Destroy(JNIEnv* env, jobject obj);

  jboolean GetSnapshotDocumentCollapsed(JNIEnv* env, jobject obj);
  void SetSnapshotDocumentCollapsed(JNIEnv* env,
                                    jobject obj,
                                    jboolean is_collapsed);

  jboolean GetRecentlyClosedTabsCollapsed(JNIEnv* env, jobject obj);
  void SetRecentlyClosedTabsCollapsed(JNIEnv* env,
                                      jobject obj,
                                      jboolean is_collapsed);

  jboolean GetSyncPromoCollapsed(JNIEnv* env, jobject obj);
  void SetSyncPromoCollapsed(JNIEnv* env,
                             jobject obj,
                             jboolean is_collapsed);

  jboolean GetForeignSessionCollapsed(JNIEnv* env,
                                      jobject obj,
                                      jstring session_tag);
  void SetForeignSessionCollapsed(JNIEnv* env, jobject obj,
                                  jstring session_tag,
                                  jboolean is_collapsed);

  static bool RegisterNewTabPagePrefs(JNIEnv* env);
  static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
 private:
  virtual ~NewTabPagePrefs();

  Profile* profile_;  // weak
  DISALLOW_COPY_AND_ASSIGN(NewTabPagePrefs);
};

#endif  // CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_PREFS_H_

/* [<][>][^][v][top][bottom][index][help] */