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

Unified Diff: ui/views/window/dialog_client_view.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/widget/native_widget_win.cc ('k') | webkit/glue/webthemeengine_impl_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_client_view.cc
===================================================================
--- ui/views/window/dialog_client_view.cc (revision 137002)
+++ ui/views/window/dialog_client_view.cc (working copy)
@@ -19,10 +19,10 @@
#include "ui/base/hit_test.h"
#include "ui/base/keycodes/keyboard_codes.h"
#include "ui/base/l10n/l10n_util.h"
-#include "ui/base/native_theme/native_theme.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/font.h"
+#include "ui/gfx/native_theme.h"
#include "ui/views/controls/button/text_button.h"
#include "ui/views/layout/layout_constants.h"
#include "ui/views/widget/root_view.h"
@@ -305,8 +305,8 @@
// DialogClientView, View overrides:
void DialogClientView::OnPaint(gfx::Canvas* canvas) {
- SkColor bg_color = ui::NativeTheme::instance()->GetSystemColor(
- ui::NativeTheme::kColorId_DialogBackground);
+ SkColor bg_color = gfx::NativeTheme::instance()->GetSystemColor(
+ gfx::NativeTheme::kColorId_DialogBackground);
canvas->FillRect(GetLocalBounds(), bg_color);
}
@@ -420,9 +420,9 @@
if (GetWidget()->widget_delegate()->CanResize() ||
GetWidget()->widget_delegate()->CanMaximize()) {
#if defined(OS_WIN)
- ui::NativeTheme::ExtraParams extra;
- gfx::Size gripper_size = ui::NativeTheme::instance()->GetPartSize(
- ui::NativeTheme::kWindowResizeGripper, ui::NativeTheme::kNormal,
+ gfx::NativeTheme::ExtraParams extra;
+ gfx::Size gripper_size = gfx::NativeTheme::instance()->GetPartSize(
+ gfx::NativeTheme::kWindowResizeGripper, gfx::NativeTheme::kNormal,
extra);
// TODO(beng): (http://b/1085509) In "classic" rendering mode, there isn't
@@ -433,11 +433,11 @@
size_box_bounds_.set_x(size_box_bounds_.right() - gripper_size.width());
size_box_bounds_.set_y(size_box_bounds_.bottom() - gripper_size.height());
- ui::NativeTheme::instance()->Paint(canvas->sk_canvas(),
- ui::NativeTheme::kWindowResizeGripper,
- ui::NativeTheme::kNormal,
- size_box_bounds_,
- extra);
+ gfx::NativeTheme::instance()->Paint(canvas->sk_canvas(),
+ gfx::NativeTheme::kWindowResizeGripper,
+ gfx::NativeTheme::kNormal,
+ size_box_bounds_,
+ extra);
#else
NOTIMPLEMENTED();
// TODO(port): paint size box
« no previous file with comments | « ui/views/widget/native_widget_win.cc ('k') | webkit/glue/webthemeengine_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698