| 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_CONFIRM_INFOBAR_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_CONFIRM_INFOBAR_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_CONFIRM_INFOBAR_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_CONFIRM_INFOBAR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/ui/views/infobars/infobar_view.h" | 9 #include "chrome/browser/ui/views/infobars/infobar_view.h" |
| 10 #include "views/controls/link.h" | 10 #include "views/controls/link.h" |
| 11 | 11 |
| 12 class ConfirmInfoBarDelegate; | 12 class ConfirmInfoBarDelegate; |
| 13 class InfoBarTextButton; | |
| 14 namespace views { | 13 namespace views { |
| 15 class Label; | 14 class Label; |
| 15 class TextButton; |
| 16 } | 16 } |
| 17 | 17 |
| 18 // TODO(pkasting): This class will die soon. | 18 // TODO(pkasting): This class will die soon. |
| 19 class AlertInfoBar : public InfoBarView { | 19 class AlertInfoBar : public InfoBarView { |
| 20 public: | 20 public: |
| 21 explicit AlertInfoBar(ConfirmInfoBarDelegate* delegate); | 21 explicit AlertInfoBar(ConfirmInfoBarDelegate* delegate); |
| 22 virtual ~AlertInfoBar(); | 22 virtual ~AlertInfoBar(); |
| 23 | 23 |
| 24 // Overridden from views::View: | 24 // Overridden from views::View: |
| 25 virtual void Layout(); | 25 virtual void Layout(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 52 virtual void Layout(); | 52 virtual void Layout(); |
| 53 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); | 53 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); |
| 54 virtual int GetAvailableWidth() const; | 54 virtual int GetAvailableWidth() const; |
| 55 virtual void ButtonPressed(views::Button* sender, const views::Event& event); | 55 virtual void ButtonPressed(views::Button* sender, const views::Event& event); |
| 56 | 56 |
| 57 // views::LinkController: | 57 // views::LinkController: |
| 58 virtual void LinkActivated(views::Link* source, int event_flags); | 58 virtual void LinkActivated(views::Link* source, int event_flags); |
| 59 | 59 |
| 60 ConfirmInfoBarDelegate* GetDelegate(); | 60 ConfirmInfoBarDelegate* GetDelegate(); |
| 61 | 61 |
| 62 InfoBarTextButton* ok_button_; | 62 views::TextButton* ok_button_; |
| 63 InfoBarTextButton* cancel_button_; | 63 views::TextButton* cancel_button_; |
| 64 views::Link* link_; | 64 views::Link* link_; |
| 65 | 65 |
| 66 bool initialized_; | 66 bool initialized_; |
| 67 | 67 |
| 68 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBar); | 68 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBar); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_CONFIRM_INFOBAR_H_ | 71 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_CONFIRM_INFOBAR_H_ |
| OLD | NEW |