| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/views/controls/button/native_button.h" | 5 #include "chrome/views/controls/button/native_button.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" |
| 7 #include "base/logging.h" | 8 #include "base/logging.h" |
| 8 #include "chrome/common/l10n_util.h" | |
| 9 | 9 |
| 10 namespace views { | 10 namespace views { |
| 11 | 11 |
| 12 static int kButtonBorderHWidth = 8; | 12 static int kButtonBorderHWidth = 8; |
| 13 | 13 |
| 14 // static | 14 // static |
| 15 const char NativeButton::kViewClassName[] = "chrome/views/NativeButton"; | 15 const char NativeButton::kViewClassName[] = "chrome/views/NativeButton"; |
| 16 | 16 |
| 17 //////////////////////////////////////////////////////////////////////////////// | 17 //////////////////////////////////////////////////////////////////////////////// |
| 18 // NativeButton, public: | 18 // NativeButton, public: |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 native_wrapper_->UpdateLabel(); | 169 native_wrapper_->UpdateLabel(); |
| 170 native_wrapper_->UpdateEnabled(); | 170 native_wrapper_->UpdateEnabled(); |
| 171 } | 171 } |
| 172 | 172 |
| 173 void NativeButton::InitBorder() { | 173 void NativeButton::InitBorder() { |
| 174 set_border(Border::CreateEmptyBorder(0, kButtonBorderHWidth, 0, | 174 set_border(Border::CreateEmptyBorder(0, kButtonBorderHWidth, 0, |
| 175 kButtonBorderHWidth)); | 175 kButtonBorderHWidth)); |
| 176 } | 176 } |
| 177 | 177 |
| 178 } // namespace views | 178 } // namespace views |
| OLD | NEW |