| OLD | NEW |
| 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 #ifndef UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ | 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ |
| 6 #define UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ | 6 #define UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 // | 394 // |
| 395 //////////////////////////////////////////////////////////////////////////////// | 395 //////////////////////////////////////////////////////////////////////////////// |
| 396 class VIEWS_EXPORT NativeTextButton : public TextButton { | 396 class VIEWS_EXPORT NativeTextButton : public TextButton { |
| 397 public: | 397 public: |
| 398 // The button's class name. | 398 // The button's class name. |
| 399 static const char kViewClassName[]; | 399 static const char kViewClassName[]; |
| 400 | 400 |
| 401 explicit NativeTextButton(ButtonListener* listener); | 401 explicit NativeTextButton(ButtonListener* listener); |
| 402 NativeTextButton(ButtonListener* listener, const string16& text); | 402 NativeTextButton(ButtonListener* listener, const string16& text); |
| 403 | 403 |
| 404 // Overridden from View: |
| 405 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; |
| 406 |
| 404 // Overridden from TextButton: | 407 // Overridden from TextButton: |
| 405 virtual gfx::Size GetMinimumSize() OVERRIDE; | 408 virtual gfx::Size GetMinimumSize() OVERRIDE; |
| 406 virtual std::string GetClassName() const OVERRIDE; | 409 virtual std::string GetClassName() const OVERRIDE; |
| 407 | 410 |
| 408 private: | 411 private: |
| 409 void Init(); | 412 void Init(); |
| 410 | 413 |
| 411 // Overridden from View: | |
| 412 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; | |
| 413 | |
| 414 // Overridden from TextButton: | 414 // Overridden from TextButton: |
| 415 virtual void GetExtraParams( | 415 virtual void GetExtraParams( |
| 416 ui::NativeTheme::ExtraParams* params) const OVERRIDE; | 416 ui::NativeTheme::ExtraParams* params) const OVERRIDE; |
| 417 | 417 |
| 418 DISALLOW_COPY_AND_ASSIGN(NativeTextButton); | 418 DISALLOW_COPY_AND_ASSIGN(NativeTextButton); |
| 419 }; | 419 }; |
| 420 | 420 |
| 421 } // namespace views | 421 } // namespace views |
| 422 | 422 |
| 423 #endif // UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ | 423 #endif // UI_VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ |
| OLD | NEW |