| 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 "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // "Would you like to do X? [Yes] [No] _Learn More_ [x]" | 23 // "Would you like to do X? [Yes] [No] _Learn More_ [x]" |
| 24 class ConfirmInfoBar : public InfoBarView, | 24 class ConfirmInfoBar : public InfoBarView, |
| 25 public views::LinkListener { | 25 public views::LinkListener { |
| 26 public: | 26 public: |
| 27 ConfirmInfoBar(TabContentsWrapper* owner, ConfirmInfoBarDelegate* delegate); | 27 ConfirmInfoBar(TabContentsWrapper* owner, ConfirmInfoBarDelegate* delegate); |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 virtual ~ConfirmInfoBar(); | 30 virtual ~ConfirmInfoBar(); |
| 31 | 31 |
| 32 // InfoBarView: | 32 // InfoBarView: |
| 33 virtual void Layout(); | 33 virtual void Layout() OVERRIDE; |
| 34 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); | 34 virtual void ViewHierarchyChanged(bool is_add, |
| 35 virtual void ButtonPressed(views::Button* sender, const views::Event& event); | 35 View* parent, |
| 36 virtual int ContentMinimumWidth() const; | 36 View* child) OVERRIDE; |
| 37 virtual void ButtonPressed(views::Button* sender, |
| 38 const views::Event& event) OVERRIDE; |
| 39 virtual int ContentMinimumWidth() const OVERRIDE; |
| 40 virtual void CancelMenu() OVERRIDE; |
| 37 | 41 |
| 38 // views::LinkListener: | 42 // views::LinkListener: |
| 39 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 43 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
| 40 | 44 |
| 41 ConfirmInfoBarDelegate* GetDelegate(); | 45 ConfirmInfoBarDelegate* GetDelegate(); |
| 42 | 46 |
| 43 views::Label* label_; | 47 views::Label* label_; |
| 44 views::TextButton* ok_button_; | 48 views::TextButton* ok_button_; |
| 45 views::TextButton* cancel_button_; | 49 views::TextButton* cancel_button_; |
| 46 views::Link* link_; | 50 views::Link* link_; |
| 47 | 51 |
| 48 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBar); | 52 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBar); |
| 49 }; | 53 }; |
| 50 | 54 |
| 51 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_CONFIRM_INFOBAR_H_ | 55 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_CONFIRM_INFOBAR_H_ |
| OLD | NEW |