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

Unified Diff: ash/desktop_background/desktop_background_resources.h

Issue 11415015: Remove use of index in wallpaper picker code and some refactor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix browser tests Created 8 years, 1 month 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: ash/desktop_background/desktop_background_resources.h
diff --git a/ash/desktop_background/desktop_background_resources.h b/ash/desktop_background/desktop_background_resources.h
deleted file mode 100644
index fe9805f0f828a9cc978689ac4b76847534c89c06..0000000000000000000000000000000000000000
--- a/ash/desktop_background/desktop_background_resources.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// 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.
-
-#ifndef ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_RESOURCES_H_
-#define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_RESOURCES_H_
-
-#include <string>
-
-#include "ash/ash_export.h"
-#include "third_party/skia/include/core/SkColor.h"
-
-namespace ash {
-
-enum WallpaperLayout {
- CENTER,
- CENTER_CROPPED,
- STRETCH,
- TILE,
-};
-
-enum WallpaperResolution {
- LARGE,
- SMALL
-};
-
-// Encapsulates wallpaper infomation needed by desktop background view.
-struct ASH_EXPORT WallpaperViewInfo {
- int id;
- WallpaperLayout layout;
-};
-
-struct ASH_EXPORT WallpaperInfo {
- WallpaperViewInfo large_wallpaper;
- WallpaperViewInfo small_wallpaper;
-};
-
-const SkColor kLoginWallpaperColor = 0xFEFEFE;
-
-ASH_EXPORT int GetDefaultWallpaperIndex();
-ASH_EXPORT int GetGuestWallpaperIndex();
-ASH_EXPORT int GetInvalidWallpaperIndex();
-ASH_EXPORT WallpaperLayout GetLayoutEnum(const std::string& layout);
-ASH_EXPORT int GetSolidColorIndex();
-ASH_EXPORT int GetWallpaperCount();
-ASH_EXPORT const WallpaperInfo& GetWallpaperInfo(int index);
-ASH_EXPORT const WallpaperViewInfo& GetWallpaperViewInfo(int index,
- WallpaperResolution resolution);
-
-} // namespace ash
-
-#endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_RESOURCES_H_
« no previous file with comments | « ash/desktop_background/desktop_background_controller.cc ('k') | ash/desktop_background/desktop_background_resources.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698