| 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 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/task.h" | 9 #include "base/task.h" |
| 10 #include "chrome/browser/ui/views/infobars/infobar.h" | 10 #include "chrome/browser/tab_contents/infobar.h" |
| 11 #include "chrome/browser/tab_contents/infobar_container.h" |
| 11 #include "chrome/browser/ui/views/infobars/infobar_background.h" | 12 #include "chrome/browser/ui/views/infobars/infobar_background.h" |
| 12 #include "chrome/browser/ui/views/infobars/infobar_container.h" | |
| 13 #include "views/controls/button/button.h" | 13 #include "views/controls/button/button.h" |
| 14 #include "views/focus/focus_manager.h" | 14 #include "views/focus/focus_manager.h" |
| 15 | 15 |
| 16 class SkPath; | 16 class SkPath; |
| 17 | 17 |
| 18 namespace views { | 18 namespace views { |
| 19 class ExternalFocusTracker; | 19 class ExternalFocusTracker; |
| 20 class ImageButton; | 20 class ImageButton; |
| 21 class ImageView; | 21 class ImageView; |
| 22 class Label; | 22 class Label; |
| 23 class Link; | 23 class Link; |
| 24 class LinkListener; | 24 class LinkListener; |
| 25 class MenuButton; | 25 class MenuButton; |
| 26 class TextButton; | 26 class TextButton; |
| 27 class ViewMenuDelegate; | 27 class ViewMenuDelegate; |
| 28 } | 28 } |
| 29 | 29 |
| 30 class InfoBarView : public InfoBar, | 30 class InfoBarView : public InfoBar, |
| 31 public views::View, | 31 public views::View, |
| 32 public views::ButtonListener, | 32 public views::ButtonListener, |
| 33 public views::FocusChangeListener { | 33 public views::FocusChangeListener { |
| 34 public: | 34 public: |
| 35 explicit InfoBarView(InfoBarDelegate* delegate); | 35 InfoBarView(TabContentsWrapper* owner, InfoBarDelegate* delegate); |
| 36 | 36 |
| 37 SkPath* fill_path() const { return fill_path_.get(); } | 37 SkPath* fill_path() const { return fill_path_.get(); } |
| 38 SkPath* stroke_path() const { return stroke_path_.get(); } | 38 SkPath* stroke_path() const { return stroke_path_.get(); } |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 static const int kButtonButtonSpacing; | 41 static const int kButtonButtonSpacing; |
| 42 static const int kEndOfLabelSpacing; | 42 static const int kEndOfLabelSpacing; |
| 43 | 43 |
| 44 virtual ~InfoBarView(); | 44 virtual ~InfoBarView(); |
| 45 | 45 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 // The paths for the InfoBarBackground to draw, sized according to the heights | 126 // The paths for the InfoBarBackground to draw, sized according to the heights |
| 127 // above. | 127 // above. |
| 128 scoped_ptr<SkPath> fill_path_; | 128 scoped_ptr<SkPath> fill_path_; |
| 129 scoped_ptr<SkPath> stroke_path_; | 129 scoped_ptr<SkPath> stroke_path_; |
| 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 |