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 #if defined(OS_LINUX) | 7 #if defined(OS_LINUX) |
8 #include <gdk/gdkkeysyms.h> | 8 #include <gdk/gdkkeysyms.h> |
9 #include "views/screen.h" | 9 #include "views/screen.h" |
10 #endif | 10 #endif |
11 | 11 |
12 #include "app/l10n_util.h" | |
13 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
14 #include "base/keyboard_codes.h" | 13 #include "base/keyboard_codes.h" |
15 #include "base/logging.h" | 14 #include "base/logging.h" |
16 #include "views/controls/native/native_view_host.h" | 15 #include "views/controls/native/native_view_host.h" |
17 | 16 |
18 namespace views { | 17 namespace views { |
19 | 18 |
20 #if defined(OS_WIN) | 19 #if defined(OS_WIN) |
21 // The min size in DLUs comes from | 20 // The min size in DLUs comes from |
22 // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwue/html/c
h14e.asp | 21 // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwue/html/c
h14e.asp |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 native_wrapper->UpdateEnabled(); | 225 native_wrapper->UpdateEnabled(); |
227 return native_wrapper; | 226 return native_wrapper; |
228 } | 227 } |
229 | 228 |
230 void NativeButton::InitBorder() { | 229 void NativeButton::InitBorder() { |
231 set_border(Border::CreateEmptyBorder(0, kButtonBorderHWidth, 0, | 230 set_border(Border::CreateEmptyBorder(0, kButtonBorderHWidth, 0, |
232 kButtonBorderHWidth)); | 231 kButtonBorderHWidth)); |
233 } | 232 } |
234 | 233 |
235 } // namespace views | 234 } // namespace views |
OLD | NEW |