summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos
diff options
context:
space:
mode:
authordhg@chromium.org <dhg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-09 20:35:31 +0000
committerdhg@chromium.org <dhg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-09 20:35:31 +0000
commit2fd822f98d6f41efe6051d74a3be89593e1385b0 (patch)
tree771138b983109d5d36381a32c046f9bf7cd0b184 /chrome/browser/chromeos
parent78ae9edc5547acbb762886aa7d3c29d5e6c7808b (diff)
downloadchromium_src-2fd822f98d6f41efe6051d74a3be89593e1385b0.zip
chromium_src-2fd822f98d6f41efe6051d74a3be89593e1385b0.tar.gz
chromium_src-2fd822f98d6f41efe6051d74a3be89593e1385b0.tar.bz2
Adding support for sub pages and adding the sync page.
BUG=none TEST=none Review URL: http://codereview.chromium.org/2812043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52007 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos')
-rw-r--r--chrome/browser/chromeos/dom_ui/sync_options_handler.cc49
-rw-r--r--chrome/browser/chromeos/dom_ui/sync_options_handler.h23
2 files changed, 72 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/dom_ui/sync_options_handler.cc b/chrome/browser/chromeos/dom_ui/sync_options_handler.cc
new file mode 100644
index 0000000..073b8d4f
--- /dev/null
+++ b/chrome/browser/chromeos/dom_ui/sync_options_handler.cc
@@ -0,0 +1,49 @@
+// Copyright (c) 2010 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.
+
+#include "chrome/browser/chromeos/dom_ui/sync_options_handler.h"
+
+#include "app/l10n_util.h"
+#include "app/resource_bundle.h"
+#include "base/basictypes.h"
+#include "base/callback.h"
+#include "base/i18n/time_formatting.h"
+#include "base/stl_util-inl.h"
+#include "base/time.h"
+#include "base/utf_string_conversions.h"
+#include "base/values.h"
+#include "chrome/common/notification_service.h"
+#include "grit/browser_resources.h"
+#include "grit/chromium_strings.h"
+#include "grit/generated_resources.h"
+#include "grit/locale_settings.h"
+#include "grit/theme_resources.h"
+
+SyncOptionsHandler::SyncOptionsHandler() {}
+
+SyncOptionsHandler::~SyncOptionsHandler() {}
+
+void SyncOptionsHandler::GetLocalizedValues(
+ DictionaryValue* localized_strings) {
+ DCHECK(localized_strings);
+ // Sync page - ChromeOS
+ localized_strings->SetString(L"syncPage",
+ l10n_util::GetString(IDS_SYNC_NTP_SYNC_SECTION_TITLE));
+ localized_strings->SetString(L"sync_title",
+ l10n_util::GetString(IDS_CUSTOMIZE_SYNC_DESCRIPTION));
+ localized_strings->SetString(L"syncsettings",
+ l10n_util::GetString(IDS_SYNC_DATATYPE_PREFERENCES));
+ localized_strings->SetString(L"syncbookmarks",
+ l10n_util::GetString(IDS_SYNC_DATATYPE_BOOKMARKS));
+ localized_strings->SetString(L"synctypedurls",
+ l10n_util::GetString(IDS_SYNC_DATATYPE_TYPED_URLS));
+ localized_strings->SetString(L"syncpasswords",
+ l10n_util::GetString(IDS_SYNC_DATATYPE_PASSWORDS));
+ localized_strings->SetString(L"syncextensions",
+ l10n_util::GetString(IDS_SYNC_DATATYPE_EXTENSIONS));
+ localized_strings->SetString(L"syncautofill",
+ l10n_util::GetString(IDS_SYNC_DATATYPE_AUTOFILL));
+ localized_strings->SetString(L"syncthemes",
+ l10n_util::GetString(IDS_SYNC_DATATYPE_THEMES));
+}
diff --git a/chrome/browser/chromeos/dom_ui/sync_options_handler.h b/chrome/browser/chromeos/dom_ui/sync_options_handler.h
new file mode 100644
index 0000000..a58c583
--- /dev/null
+++ b/chrome/browser/chromeos/dom_ui/sync_options_handler.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2010 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_CHROMEOS_DOM_UI_SYNC_OPTIONS_HANDLER_H_
+#define CHROME_BROWSER_CHROMEOS_DOM_UI_SYNC_OPTIONS_HANDLER_H_
+
+#include "chrome/browser/dom_ui/options_ui.h"
+
+// ChromeOS system options page UI handler.
+class SyncOptionsHandler : public OptionsPageUIHandler {
+ public:
+ SyncOptionsHandler();
+ virtual ~SyncOptionsHandler();
+
+ // OptionsUIHandler implementation.
+ virtual void GetLocalizedValues(DictionaryValue* localized_strings);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(SyncOptionsHandler);
+};
+
+#endif // CHROME_BROWSER_CHROMEOS_DOM_UI_SYNC_OPTIONS_HANDLER_H_