OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_VIEWS_INFOBARS_INFOBAR_BUTTON_BORDER_H_ |
| 6 #define CHROME_BROWSER_VIEWS_INFOBARS_INFOBAR_BUTTON_BORDER_H_ |
| 7 |
| 8 #include "views/border.h" |
| 9 |
| 10 #include "third_party/skia/include/core/SkBitmap.h" |
| 11 |
| 12 namespace gfx { |
| 13 class Canvas; |
| 14 } |
| 15 namespace views { |
| 16 class View; |
| 17 } |
| 18 |
| 19 // A TextButtonBorder that is dark and also paints the button frame in the |
| 20 // normal state. |
| 21 |
| 22 class InfoBarButtonBorder : public views::Border { |
| 23 public: |
| 24 InfoBarButtonBorder(); |
| 25 virtual ~InfoBarButtonBorder(); |
| 26 |
| 27 // Overriden from Border: |
| 28 virtual void GetInsets(gfx::Insets* insets) const; |
| 29 virtual void Paint(const views::View& view, gfx::Canvas* canvas) const; |
| 30 |
| 31 private: |
| 32 // Images |
| 33 struct MBBImageSet { |
| 34 SkBitmap* top_left; |
| 35 SkBitmap* top; |
| 36 SkBitmap* top_right; |
| 37 SkBitmap* left; |
| 38 SkBitmap* center; |
| 39 SkBitmap* right; |
| 40 SkBitmap* bottom_left; |
| 41 SkBitmap* bottom; |
| 42 SkBitmap* bottom_right; |
| 43 }; |
| 44 |
| 45 MBBImageSet normal_set_; |
| 46 MBBImageSet hot_set_; |
| 47 MBBImageSet pushed_set_; |
| 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(InfoBarButtonBorder); |
| 50 }; |
| 51 |
| 52 #endif // CHROME_BROWSER_VIEWS_INFOBARS_INFOBAR_BUTTON_BORDER_H_ |
OLD | NEW |