Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_INFOBAR_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_INFOBARS_INFOBAR_CONTAINER_H_ |
| 6 #define CHROME_BROWSER_VIEWS_INFOBARS_INFOBAR_CONTAINER_H_ | 6 #define CHROME_BROWSER_VIEWS_INFOBARS_INFOBAR_CONTAINER_H_ |
| 7 | 7 |
| 8 #include "chrome/common/notification_registrar.h" | 8 #include "chrome/common/notification_registrar.h" |
| 9 #include "views/view.h" | 9 #include "views/view.h" |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 29 void InfoBarAnimated(bool completed); | 29 void InfoBarAnimated(bool completed); |
| 30 | 30 |
| 31 // Remove the specified InfoBarDelegate from the selected TabContents. This | 31 // Remove the specified InfoBarDelegate from the selected TabContents. This |
| 32 // will notify us back and cause us to close the View. This is called from | 32 // will notify us back and cause us to close the View. This is called from |
| 33 // the InfoBar's close button handler. | 33 // the InfoBar's close button handler. |
| 34 void RemoveDelegate(InfoBarDelegate* delegate); | 34 void RemoveDelegate(InfoBarDelegate* delegate); |
| 35 | 35 |
| 36 // Overridden from views::View: | 36 // Overridden from views::View: |
| 37 virtual gfx::Size GetPreferredSize(); | 37 virtual gfx::Size GetPreferredSize(); |
| 38 virtual void Layout(); | 38 virtual void Layout(); |
| 39 virtual bool GetAccessibleName(std::wstring* name); | |
| 40 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); | |
| 41 virtual void SetAccessibleName(const std::wstring& name); | |
| 39 protected: | 42 protected: |
|
jcampan
2009/07/14 16:44:24
Nit: Add a blank line above "protected:"
| |
| 40 virtual void ViewHierarchyChanged(bool is_add, | 43 virtual void ViewHierarchyChanged(bool is_add, |
| 41 views::View* parent, | 44 views::View* parent, |
| 42 views::View* child); | 45 views::View* child); |
| 43 | 46 |
| 44 private: | 47 private: |
| 45 // Overridden from NotificationObserver: | 48 // Overridden from NotificationObserver: |
| 46 virtual void Observe(NotificationType type, | 49 virtual void Observe(NotificationType type, |
| 47 const NotificationSource& source, | 50 const NotificationSource& source, |
| 48 const NotificationDetails& details); | 51 const NotificationDetails& details); |
| 49 | 52 |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 62 void RemoveInfoBar(InfoBarDelegate* delegate); | 65 void RemoveInfoBar(InfoBarDelegate* delegate); |
| 63 | 66 |
| 64 NotificationRegistrar registrar_; | 67 NotificationRegistrar registrar_; |
| 65 | 68 |
| 66 // The BrowserView that hosts this InfoBarContainer. | 69 // The BrowserView that hosts this InfoBarContainer. |
| 67 BrowserView* browser_view_; | 70 BrowserView* browser_view_; |
| 68 | 71 |
| 69 // The TabContents for which we are currently showing InfoBars. | 72 // The TabContents for which we are currently showing InfoBars. |
| 70 TabContents* tab_contents_; | 73 TabContents* tab_contents_; |
| 71 | 74 |
| 75 // Storage of strings needed for accessibility. | |
|
jcampan
2009/07/14 16:44:24
Nit: strings -> the string
| |
| 76 std::wstring accessible_name_; | |
| 77 | |
| 72 DISALLOW_COPY_AND_ASSIGN(InfoBarContainer); | 78 DISALLOW_COPY_AND_ASSIGN(InfoBarContainer); |
| 73 }; | 79 }; |
| 74 | 80 |
| 75 #endif // #ifndef CHROME_BROWSER_VIEWS_INFOBARS_INFOBAR_CONTAINER_H_ | 81 #endif // #ifndef CHROME_BROWSER_VIEWS_INFOBARS_INFOBAR_CONTAINER_H_ |
| OLD | NEW |