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_INFOBARS_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_INFOBARS_INFOBAR_DELEGATE_H_ |
6 #define CHROME_BROWSER_INFOBARS_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_INFOBARS_INFOBAR_DELEGATE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "chrome/browser/infobars/infobar_service.h" | 10 #include "chrome/browser/infobars/infobar_service.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 public: | 35 public: |
36 // The type of the infobar. It controls its appearance, such as its background | 36 // The type of the infobar. It controls its appearance, such as its background |
37 // color. | 37 // color. |
38 enum Type { | 38 enum Type { |
39 WARNING_TYPE, | 39 WARNING_TYPE, |
40 PAGE_ACTION_TYPE, | 40 PAGE_ACTION_TYPE, |
41 }; | 41 }; |
42 | 42 |
43 enum InfoBarAutomationType { | 43 enum InfoBarAutomationType { |
44 CONFIRM_INFOBAR, | 44 CONFIRM_INFOBAR, |
45 ONE_CLICK_LOGIN_INFOBAR, | |
46 PASSWORD_INFOBAR, | 45 PASSWORD_INFOBAR, |
47 RPH_INFOBAR, | 46 RPH_INFOBAR, |
48 UNKNOWN_INFOBAR, | 47 UNKNOWN_INFOBAR, |
49 }; | 48 }; |
50 | 49 |
51 virtual ~InfoBarDelegate(); | 50 virtual ~InfoBarDelegate(); |
52 | 51 |
53 virtual InfoBarAutomationType GetInfoBarAutomationType() const; | 52 virtual InfoBarAutomationType GetInfoBarAutomationType() const; |
54 | 53 |
55 // Called to create the InfoBar. Implementation of this method is | 54 // Called to create the InfoBar. Implementation of this method is |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // opened for. Used to help expire on navigations. | 128 // opened for. Used to help expire on navigations. |
130 int contents_unique_id_; | 129 int contents_unique_id_; |
131 | 130 |
132 // TODO(pkasting): Remove. | 131 // TODO(pkasting): Remove. |
133 InfoBarService* owner_; | 132 InfoBarService* owner_; |
134 | 133 |
135 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); | 134 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); |
136 }; | 135 }; |
137 | 136 |
138 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_DELEGATE_H_ | 137 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_DELEGATE_H_ |
OLD | NEW |