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

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

Issue 10824295: Rid the world of the last of views::Event types: TouchEvent, GestureEvent, MouseWheelEvent, ScrollE… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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.h" 13 #include "ui/gfx/canvas.h"
14 #include "ui/gfx/image/image.h" 14 #include "ui/gfx/image/image.h"
15 #include "ui/views/controls/button/button.h" 15 #include "ui/views/controls/button/button.h"
16 #include "ui/views/events/event.h"
17 #include "ui/views/widget/widget.h" 16 #include "ui/views/widget/widget.h"
18 17
19 #if defined(OS_WIN) 18 #if defined(OS_WIN)
20 #include "skia/ext/skia_utils_win.h" 19 #include "skia/ext/skia_utils_win.h"
21 #include "ui/base/native_theme/native_theme_win.h" 20 #include "ui/base/native_theme/native_theme_win.h"
22 #include "ui/gfx/platform_font_win.h" 21 #include "ui/gfx/platform_font_win.h"
23 #endif 22 #endif
24 23
25 namespace views { 24 namespace views {
26 25
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 // Windows may paint a dotted focus rect in 863 // Windows may paint a dotted focus rect in
865 // NativeTextButton::OnPaintFocusBorder. To avoid getting two focus 864 // NativeTextButton::OnPaintFocusBorder. To avoid getting two focus
866 // indications (A dotted rect and a highlighted border) only set is_focused on 865 // indications (A dotted rect and a highlighted border) only set is_focused on
867 // non windows platforms. 866 // non windows platforms.
868 params->button.is_focused = HasFocus() && 867 params->button.is_focused = HasFocus() &&
869 (focusable() || IsAccessibilityFocusable()); 868 (focusable() || IsAccessibilityFocusable());
870 #endif 869 #endif
871 } 870 }
872 871
873 } // namespace views 872 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/button/menu_button.cc ('k') | ui/views/controls/combobox/native_combobox_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698