OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIEWS_INFOBARS_INFOBARS_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_INFOBARS_INFOBARS_H_ |
6 #define CHROME_BROWSER_VIEWS_INFOBARS_INFOBARS_H_ | 6 #define CHROME_BROWSER_VIEWS_INFOBARS_INFOBARS_H_ |
7 | 7 |
8 #include "app/animation.h" | 8 #include "app/animation.h" |
9 #include "base/task.h" | 9 #include "base/task.h" |
10 #include "chrome/browser/tab_contents/infobar_delegate.h" | 10 #include "chrome/browser/tab_contents/infobar_delegate.h" |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 // Destroys the external focus tracker, if present. If |restore_focus| is | 126 // Destroys the external focus tracker, if present. If |restore_focus| is |
127 // true, restores focus to the view tracked by the focus tracker before doing | 127 // true, restores focus to the view tracked by the focus tracker before doing |
128 // so. | 128 // so. |
129 void DestroyFocusTracker(bool restore_focus); | 129 void DestroyFocusTracker(bool restore_focus); |
130 | 130 |
131 // Deletes this object (called after a return to the message loop to allow | 131 // Deletes this object (called after a return to the message loop to allow |
132 // the stack in ViewHierarchyChanged to unwind). | 132 // the stack in ViewHierarchyChanged to unwind). |
133 void DeleteSelf(); | 133 void DeleteSelf(); |
134 | 134 |
135 // Storage of string needed for accessibility. | |
136 std::wstring accessible_name_; | |
137 | |
138 // The InfoBar's container | 135 // The InfoBar's container |
139 InfoBarContainer* container_; | 136 InfoBarContainer* container_; |
140 | 137 |
141 // The InfoBar's delegate. | 138 // The InfoBar's delegate. |
142 InfoBarDelegate* delegate_; | 139 InfoBarDelegate* delegate_; |
143 | 140 |
144 // The Close Button at the right edge of the InfoBar. | 141 // The Close Button at the right edge of the InfoBar. |
145 views::ImageButton* close_button_; | 142 views::ImageButton* close_button_; |
146 | 143 |
147 // The animation that runs when the InfoBar is opened or closed. | 144 // The animation that runs when the InfoBar is opened or closed. |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 views::NativeButton* cancel_button_; | 234 views::NativeButton* cancel_button_; |
238 views::Link* link_; | 235 views::Link* link_; |
239 | 236 |
240 bool initialized_; | 237 bool initialized_; |
241 | 238 |
242 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBar); | 239 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBar); |
243 }; | 240 }; |
244 | 241 |
245 | 242 |
246 #endif // CHROME_BROWSER_VIEWS_INFOBARS_INFOBARS_H_ | 243 #endif // CHROME_BROWSER_VIEWS_INFOBARS_INFOBARS_H_ |
OLD | NEW |