OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ | 5 #ifndef VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ |
6 #define VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ | 6 #define VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 IconPlacement icon_placement() { return icon_placement_; } | 341 IconPlacement icon_placement() { return icon_placement_; } |
342 void set_icon_placement(IconPlacement icon_placement) { | 342 void set_icon_placement(IconPlacement icon_placement) { |
343 icon_placement_ = icon_placement; | 343 icon_placement_ = icon_placement; |
344 } | 344 } |
345 | 345 |
346 void set_ignore_minimum_size(bool ignore_minimum_size); | 346 void set_ignore_minimum_size(bool ignore_minimum_size); |
347 | 347 |
348 // Overridden from View: | 348 // Overridden from View: |
349 virtual gfx::Size GetPreferredSize() OVERRIDE; | 349 virtual gfx::Size GetPreferredSize() OVERRIDE; |
350 virtual std::string GetClassName() const OVERRIDE; | 350 virtual std::string GetClassName() const OVERRIDE; |
| 351 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; |
351 | 352 |
352 // Overridden from TextButtonBase: | 353 // Overridden from TextButtonBase: |
353 virtual void PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) OVERRIDE; | 354 virtual void PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) OVERRIDE; |
354 | 355 |
355 protected: | 356 protected: |
356 SkBitmap icon() const { return icon_; } | 357 SkBitmap icon() const { return icon_; } |
357 | 358 |
358 virtual const SkBitmap& GetImageToPaint() const; | 359 virtual const SkBitmap& GetImageToPaint() const; |
359 | 360 |
360 // Overridden from NativeThemeDelegate: | 361 // Overridden from NativeThemeDelegate: |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 // Overridden from TextButton: | 421 // Overridden from TextButton: |
421 virtual void GetExtraParams( | 422 virtual void GetExtraParams( |
422 gfx::NativeTheme::ExtraParams* params) const OVERRIDE; | 423 gfx::NativeTheme::ExtraParams* params) const OVERRIDE; |
423 | 424 |
424 DISALLOW_COPY_AND_ASSIGN(NativeTextButton); | 425 DISALLOW_COPY_AND_ASSIGN(NativeTextButton); |
425 }; | 426 }; |
426 | 427 |
427 } // namespace views | 428 } // namespace views |
428 | 429 |
429 #endif // VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ | 430 #endif // VIEWS_CONTROLS_BUTTON_TEXT_BUTTON_H_ |
OLD | NEW |