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

Unified Diff: ui/app_list/app_list_constants.cc

Issue 645853013: Remove some platform specific stuff from views. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « ui/app_list/app_list_constants.h ('k') | ui/app_list/app_list_export.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/app_list_constants.cc
diff --git a/ui/app_list/app_list_constants.cc b/ui/app_list/app_list_constants.cc
deleted file mode 100644
index 0ce093a8834a78a56fe529cf1c30a74c4f22c224..0000000000000000000000000000000000000000
--- a/ui/app_list/app_list_constants.cc
+++ /dev/null
@@ -1,107 +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.
-
-#include "ui/app_list/app_list_constants.h"
-
-namespace app_list {
-
-const SkColor kContentsBackgroundColor = SkColorSetRGB(0xFA, 0xFA, 0xFA);
-const SkColor kSearchBoxBackground = SK_ColorWHITE;
-const SkColor kTopSeparatorColor = SkColorSetRGB(0xC0, 0xC0, 0xC0);
-const SkColor kBottomSeparatorColor = SkColorSetRGB(0xC0, 0xC0, 0xC0);
-
-// The color of the separator used inside dialogs in the app list.
-const SkColor kDialogSeparatorColor = SkColorSetRGB(0xD1, 0xD1, 0xD1);
-
-// 6% black over kContentsBackgroundColor
-const SkColor kHighlightedColor = SkColorSetRGB(0xEB, 0xEB, 0xEB);
-// 10% black over kContentsBackgroundColor
-const SkColor kSelectedColor = SkColorSetRGB(0xE1, 0xE1, 0xE1);
-
-const SkColor kPagerHoverColor = SkColorSetRGB(0xB4, 0xB4, 0xB4);
-const SkColor kPagerNormalColor = SkColorSetRGB(0xE2, 0xE2, 0xE2);
-const SkColor kPagerSelectedColor = SkColorSetRGB(0x46, 0x8F, 0xFC);
-
-const SkColor kResultBorderColor = SkColorSetRGB(0xE5, 0xE5, 0xE5);
-const SkColor kResultDefaultTextColor = SkColorSetRGB(0x33, 0x33, 0x33);
-const SkColor kResultDimmedTextColor = SkColorSetRGB(0x96, 0x96, 0x96);
-const SkColor kResultURLTextColor = SkColorSetRGB(0x00, 0x99, 0x33);
-
-const SkColor kGridTitleColor = SkColorSetRGB(0x33, 0x33, 0x33);
-const SkColor kGridTitleHoverColor = kGridTitleColor;
-
-const SkColor kFolderTitleColor = SkColorSetRGB(0x33, 0x33, 0x33);
-const SkColor kFolderTitleHintTextColor = SkColorSetRGB(0xA0, 0xA0, 0xA0);
-// Color of the folder ink bubble.
-const SkColor kFolderBubbleColor = SkColorSetRGB(0xD7, 0xD7, 0xD7);
-
-// Duration in milliseconds for page transition.
-const int kPageTransitionDurationInMs = 180;
-
-// Duration in milliseconds for over scroll page transition.
-const int kOverscrollPageTransitionDurationMs = 50;
-
-// Duration in milliseconds for fading in the target page when opening
-// or closing a folder, and the duration for the top folder icon animation
-// for flying in or out the folder.
-const int kFolderTransitionInDurationMs = 400;
-
-// Duration in milliseconds for fading out the old page when opening or closing
-// a folder.
-const int kFolderTransitionOutDurationMs = 30;
-
-// Animation curve used for fading in the target page when opening or closing
-// a folder.
-const gfx::Tween::Type kFolderFadeInTweenType = gfx::Tween::EASE_IN_2;
-
-// Animation curve used for fading out the target page when opening or closing
-// a folder.
-const gfx::Tween::Type kFolderFadeOutTweenType = gfx::Tween::FAST_OUT_LINEAR_IN;
-
-// Preferred number of columns and rows in apps grid.
-const int kPreferredCols = 4;
-const int kPreferredRows = 4;
-const int kGridIconDimension = 48;
-
-// Preferred search result icon sizes.
-const int kListIconSize = 32;
-const int kTileIconSize = 48;
-
-// Preferred number of columns and rows in the centered app list apps grid.
-const int kCenteredPreferredCols = 6;
-const int kCenteredPreferredRows = 3;
-
-// Preferred number of columns and rows in the experimental app list apps grid.
-const int kExperimentalPreferredCols = 6;
-const int kExperimentalPreferredRows = 4;
-
-// Radius of the circle, in which if entered, show re-order preview.
-const int kReorderDroppingCircleRadius = 35;
-
-// The padding around the outside of the experimental app list (top and sides).
-const int kExperimentalWindowPadding = 23;
-
-// Max items allowed in a folder.
-size_t kMaxFolderItems = 16;
-
-// Number of the top items in a folder, which are shown inside the folder icon
-// and animated when opening and closing a folder.
-const size_t kNumFolderTopItems = 4;
-
-// Maximum length of the folder name in chars.
-const size_t kMaxFolderNameChars = 40;
-
-// Font style for app item labels.
-const ui::ResourceBundle::FontStyle kItemTextFontStyle =
- ui::ResourceBundle::SmallBoldFont;
-
-#if defined(OS_LINUX)
-#if defined(GOOGLE_CHROME_BUILD)
-const char kAppListWMClass[] = "chrome_app_list";
-#else // CHROMIUM_BUILD
-const char kAppListWMClass[] = "chromium_app_list";
-#endif
-#endif
-
-} // namespace app_list
« no previous file with comments | « ui/app_list/app_list_constants.h ('k') | ui/app_list/app_list_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698