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

Unified Diff: ui/views/controls/label.cc

Issue 10387121: Revert 136996 - ui: Move NativeTheme files into ui/base/native_theme/ directory. (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
« no previous file with comments | « ui/views/controls/focusable_border.cc ('k') | ui/views/controls/menu/menu_config_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/label.cc
===================================================================
--- ui/views/controls/label.cc (revision 137002)
+++ ui/views/controls/label.cc (working copy)
@@ -15,13 +15,13 @@
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#include "ui/base/accessibility/accessible_view_state.h"
-#include "ui/base/native_theme/native_theme.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/text/text_elider.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/font.h"
#include "ui/gfx/insets.h"
+#include "ui/gfx/native_theme.h"
#include "ui/views/background.h"
namespace views {
@@ -359,12 +359,12 @@
contains_mouse_ = false;
font_ = font;
text_size_valid_ = false;
- requested_enabled_color_ = ui::NativeTheme::instance()->GetSystemColor(
- ui::NativeTheme::kColorId_LabelEnabledColor);
- requested_disabled_color_ = ui::NativeTheme::instance()->GetSystemColor(
- ui::NativeTheme::kColorId_LabelDisabledColor);
- background_color_ = ui::NativeTheme::instance()->GetSystemColor(
- ui::NativeTheme::kColorId_LabelBackgroundColor);
+ requested_enabled_color_ = gfx::NativeTheme::instance()->GetSystemColor(
+ gfx::NativeTheme::kColorId_LabelEnabledColor);
+ requested_disabled_color_ = gfx::NativeTheme::instance()->GetSystemColor(
+ gfx::NativeTheme::kColorId_LabelDisabledColor);
+ background_color_ = gfx::NativeTheme::instance()->GetSystemColor(
+ gfx::NativeTheme::kColorId_LabelBackgroundColor);
auto_color_readability_ = true;
RecalculateColors();
horiz_alignment_ = ALIGN_CENTER;
« no previous file with comments | « ui/views/controls/focusable_border.cc ('k') | ui/views/controls/menu/menu_config_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698