diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-18 21:40:29 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-18 21:40:29 +0000 |
commit | cb513e788189fa2a9db29e8a143a3c621c6e07ee (patch) | |
tree | 5e4e9762fe307196d85424adfdff81d035ecda6a /chrome | |
parent | 68d5fd6f9db79d77c968c63c1b4a92c8ad5a3f97 (diff) | |
download | chromium_src-cb513e788189fa2a9db29e8a143a3c621c6e07ee.zip chromium_src-cb513e788189fa2a9db29e8a143a3c621c6e07ee.tar.gz chromium_src-cb513e788189fa2a9db29e8a143a3c621c6e07ee.tar.bz2 |
Clean up typedefed enums in ThemeService class.
They don't need to be typedefed in C++.
BUG=80197
R=akalin@chromium.org
Review URL: http://codereview.chromium.org/8960009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118155 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/themes/theme_service.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/chrome/browser/themes/theme_service.h b/chrome/browser/themes/theme_service.h index 912d514..66dfc99 100644 --- a/chrome/browser/themes/theme_service.h +++ b/chrome/browser/themes/theme_service.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// 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. @@ -128,21 +128,21 @@ class ThemeService : public base::NonThreadSafe, }; // A bitfield mask for alignments. - typedef enum { - ALIGN_CENTER = 0x0, - ALIGN_LEFT = 0x1, - ALIGN_TOP = 0x2, - ALIGN_RIGHT = 0x4, - ALIGN_BOTTOM = 0x8, - } AlignmentMasks; + enum Alignment { + ALIGN_CENTER = 0, + ALIGN_LEFT = 1 << 0, + ALIGN_TOP = 1 << 1, + ALIGN_RIGHT = 1 << 2, + ALIGN_BOTTOM = 1 << 3, + }; // Background tiling choices. - typedef enum { + enum Tiling { NO_REPEAT = 0, REPEAT_X = 1, REPEAT_Y = 2, REPEAT = 3 - } Tiling; + }; // Returns a cross platform image for an id. // @@ -208,11 +208,11 @@ class ThemeService : public base::NonThreadSafe, void OnInfobarDestroyed(); // Convert a bitfield alignment into a string like "top left". Public so that - // it can be used to generate CSS values. Takes a bitfield of AlignmentMasks. + // it can be used to generate CSS values. Takes a bitmask of Alignment. static std::string AlignmentToString(int alignment); - // Parse alignments from something like "top left" into a bitfield of - // AlignmentMasks + // Parse alignments from something like "top left" into a bitmask of + // Alignment. static int StringToAlignment(const std::string& alignment); // Convert a tiling value into a string like "no-repeat". Public |