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

Side by Side Diff: ui/views/controls/button/text_button.cc

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/controls/button/text_button.h" 5 #include "ui/views/controls/button/text_button.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "grit/ui_resources.h" 10 #include "grit/ui_resources.h"
11 #include "ui/base/animation/throb_animation.h" 11 #include "ui/base/animation/throb_animation.h"
12 #include "ui/base/resource/resource_bundle.h" 12 #include "ui/base/resource/resource_bundle.h"
13 #include "ui/gfx/canvas_skia.h" 13 #include "ui/gfx/canvas.h"
14 #include "ui/views/controls/button/button.h" 14 #include "ui/views/controls/button/button.h"
15 #include "ui/views/events/event.h" 15 #include "ui/views/events/event.h"
16 #include "ui/views/widget/widget.h" 16 #include "ui/views/widget/widget.h"
17 17
18 #if defined(OS_WIN) 18 #if defined(OS_WIN)
19 #include "skia/ext/skia_utils_win.h" 19 #include "skia/ext/skia_utils_win.h"
20 #include "ui/gfx/native_theme_win.h" 20 #include "ui/gfx/native_theme_win.h"
21 #include "ui/gfx/platform_font_win.h" 21 #include "ui/gfx/platform_font_win.h"
22 #endif 22 #endif
23 23
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 #endif 834 #endif
835 } 835 }
836 836
837 void NativeTextButton::GetExtraParams( 837 void NativeTextButton::GetExtraParams(
838 gfx::NativeTheme::ExtraParams* params) const { 838 gfx::NativeTheme::ExtraParams* params) const {
839 TextButton::GetExtraParams(params); 839 TextButton::GetExtraParams(params);
840 params->button.has_border = true; 840 params->button.has_border = true;
841 } 841 }
842 842
843 } // namespace views 843 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698