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 | 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/ui/views/infobars/infobar_view.h" | 10 #include "chrome/browser/ui/views/infobars/infobar_view.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 private: | 28 private: |
29 virtual ~ConfirmInfoBar(); | 29 virtual ~ConfirmInfoBar(); |
30 | 30 |
31 // InfoBarView: | 31 // InfoBarView: |
32 virtual void Layout() OVERRIDE; | 32 virtual void Layout() OVERRIDE; |
33 virtual void ViewHierarchyChanged( | 33 virtual void ViewHierarchyChanged( |
34 const ViewHierarchyChangedDetails& details) OVERRIDE; | 34 const ViewHierarchyChangedDetails& details) OVERRIDE; |
35 virtual void ButtonPressed(views::Button* sender, | 35 virtual void ButtonPressed(views::Button* sender, |
36 const ui::Event& event) OVERRIDE; | 36 const ui::Event& event) OVERRIDE; |
37 virtual int ContentMinimumWidth() OVERRIDE; | 37 virtual int ContentMinimumWidth() const OVERRIDE; |
38 | 38 |
39 // views::LinkListener: | 39 // views::LinkListener: |
40 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 40 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
41 | 41 |
42 ConfirmInfoBarDelegate* GetDelegate(); | 42 ConfirmInfoBarDelegate* GetDelegate(); |
43 | 43 |
44 // Returns the width of all content other than the label and link. Layout() | 44 // Returns the width of all content other than the label and link. Layout() |
45 // uses this to determine how much space the label and link can take. | 45 // uses this to determine how much space the label and link can take. |
46 int NonLabelWidth() const; | 46 int NonLabelWidth() const; |
47 | 47 |
48 views::Label* label_; | 48 views::Label* label_; |
49 views::LabelButton* ok_button_; | 49 views::LabelButton* ok_button_; |
50 views::LabelButton* cancel_button_; | 50 views::LabelButton* cancel_button_; |
51 views::Link* link_; | 51 views::Link* link_; |
52 scoped_ptr<ElevationIconSetter> elevation_icon_setter_; | 52 scoped_ptr<ElevationIconSetter> elevation_icon_setter_; |
53 | 53 |
54 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBar); | 54 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBar); |
55 }; | 55 }; |
56 | 56 |
57 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_CONFIRM_INFOBAR_H_ | 57 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_CONFIRM_INFOBAR_H_ |
OLD | NEW |