OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "views/controls/button/native_button.h" | 5 #include "views/controls/button/native_button.h" |
6 | 6 |
7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
8 #include "base/keyboard_codes.h" | 8 #include "base/keyboard_codes.h" |
9 #include "base/logging.h" | |
10 #include "views/controls/native/native_view_host.h" | 9 #include "views/controls/native/native_view_host.h" |
11 | 10 |
12 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
13 #include "gfx/platform_font_win.h" | 12 #include "gfx/platform_font_win.h" |
14 #elif defined(OS_LINUX) | 13 #elif defined(OS_LINUX) |
15 #include <gdk/gdkkeysyms.h> | 14 #include <gdk/gdkkeysyms.h> |
16 #include "views/screen.h" | 15 #include "views/screen.h" |
17 #endif | 16 #endif |
18 | 17 |
19 | 18 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 native_wrapper->UpdateEnabled(); | 231 native_wrapper->UpdateEnabled(); |
233 return native_wrapper; | 232 return native_wrapper; |
234 } | 233 } |
235 | 234 |
236 void NativeButton::InitBorder() { | 235 void NativeButton::InitBorder() { |
237 set_border(Border::CreateEmptyBorder(0, kButtonBorderHWidth, 0, | 236 set_border(Border::CreateEmptyBorder(0, kButtonBorderHWidth, 0, |
238 kButtonBorderHWidth)); | 237 kButtonBorderHWidth)); |
239 } | 238 } |
240 | 239 |
241 } // namespace views | 240 } // namespace views |
OLD | NEW |