Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Unified Diff: chrome/browser/chromeos/extensions/wallpaper_manager_api.cc

Issue 10453032: Add wallpaper experimental api framework and add a simple category list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/extensions/wallpaper_manager_api.cc
diff --git a/chrome/browser/chromeos/extensions/wallpaper_manager_api.cc b/chrome/browser/chromeos/extensions/wallpaper_manager_api.cc
new file mode 100644
index 0000000000000000000000000000000000000000..31595141b1b16fc7cb055caaf3c1d5695eb1e3ff
--- /dev/null
+++ b/chrome/browser/chromeos/extensions/wallpaper_manager_api.cc
@@ -0,0 +1,25 @@
+// Copyright (c) 2012 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/extensions/wallpaper_manager_api.h"
+#include "grit/generated_resources.h"
+#include "ui/base/l10n/l10n_util.h"
+
+bool WallpaperManagerStringsFunction::RunImpl() {
+ result_.reset(new DictionaryValue());
+ DictionaryValue* dict = reinterpret_cast<DictionaryValue*>(result_.get());
+
+#define SET_STRING(ns, id) \
+ dict->SetString(#id, l10n_util::GetStringUTF16(ns##_##id))
+
+ SET_STRING(IDS_WALLPAPER_MANAGER, FEATURED_LABEL);
+ SET_STRING(IDS_WALLPAPER_MANAGER, NATURE_LABEL);
+ SET_STRING(IDS_WALLPAPER_MANAGER, ABSTRACT_LABEL);
+ SET_STRING(IDS_WALLPAPER_MANAGER, URBAN_LABEL);
+ SET_STRING(IDS_WALLPAPER_MANAGER, COLORS_LABEL);
+ SET_STRING(IDS_WALLPAPER_MANAGER, CUSTOM_LABEL);
+#undef SET_STRING
+
+ return true;
+}

Powered by Google App Engine
This is Rietveld 408576698