| 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 CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/infobars/infobar.h" | 10 #include "chrome/browser/infobars/infobar.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class MenuButton; | 28 class MenuButton; |
| 29 class MenuButtonListener; | 29 class MenuButtonListener; |
| 30 class MenuRunner; | 30 class MenuRunner; |
| 31 } // namespace views | 31 } // namespace views |
| 32 | 32 |
| 33 class InfoBarView : public InfoBar, | 33 class InfoBarView : public InfoBar, |
| 34 public views::View, | 34 public views::View, |
| 35 public views::ButtonListener, | 35 public views::ButtonListener, |
| 36 public views::ExternalFocusTracker { | 36 public views::ExternalFocusTracker { |
| 37 public: | 37 public: |
| 38 InfoBarView(InfoBarService* owner, InfoBarDelegate* delegate); | 38 explicit InfoBarView(scoped_ptr<InfoBarDelegate> delegate); |
| 39 | 39 |
| 40 const SkPath& fill_path() const { return fill_path_; } | 40 const SkPath& fill_path() const { return fill_path_; } |
| 41 const SkPath& stroke_path() const { return stroke_path_; } | 41 const SkPath& stroke_path() const { return stroke_path_; } |
| 42 | 42 |
| 43 protected: | 43 protected: |
| 44 static const int kButtonButtonSpacing; | 44 static const int kButtonButtonSpacing; |
| 45 static const int kEndOfLabelSpacing; | 45 static const int kEndOfLabelSpacing; |
| 46 | 46 |
| 47 virtual ~InfoBarView(); | 47 virtual ~InfoBarView(); |
| 48 | 48 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 SkPath fill_path_; | 125 SkPath fill_path_; |
| 126 SkPath stroke_path_; | 126 SkPath stroke_path_; |
| 127 | 127 |
| 128 // Used to run the menu. | 128 // Used to run the menu. |
| 129 scoped_ptr<views::MenuRunner> menu_runner_; | 129 scoped_ptr<views::MenuRunner> menu_runner_; |
| 130 | 130 |
| 131 DISALLOW_COPY_AND_ASSIGN(InfoBarView); | 131 DISALLOW_COPY_AND_ASSIGN(InfoBarView); |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ | 134 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ |
| OLD | NEW |