OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_H_ |
6 #define CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_H_ | 6 #define CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_H_ |
7 | 7 |
8 #include "chrome/browser/views/tab_contents/native_tab_contents_container.h" | 8 #include "chrome/browser/views/tab_contents/native_tab_contents_container.h" |
9 #include "chrome/common/notification_registrar.h" | 9 #include "chrome/common/notification_registrar.h" |
10 #include "views/view.h" | 10 #include "views/view.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 // so performance is better. | 34 // so performance is better. |
35 void SetFastResize(bool fast_resize); | 35 void SetFastResize(bool fast_resize); |
36 | 36 |
37 // Overridden from NotificationObserver: | 37 // Overridden from NotificationObserver: |
38 virtual void Observe(NotificationType type, | 38 virtual void Observe(NotificationType type, |
39 const NotificationSource& source, | 39 const NotificationSource& source, |
40 const NotificationDetails& details); | 40 const NotificationDetails& details); |
41 | 41 |
42 // Overridden from views::View: | 42 // Overridden from views::View: |
43 virtual void Layout(); | 43 virtual void Layout(); |
| 44 virtual bool GetAccessibleName(std::wstring* name); |
| 45 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); |
| 46 virtual void SetAccessibleName(const std::wstring& name); |
44 | 47 |
45 protected: | 48 protected: |
46 // Overridden from views::View: | 49 // Overridden from views::View: |
47 virtual void ViewHierarchyChanged(bool is_add, views::View* parent, | 50 virtual void ViewHierarchyChanged(bool is_add, views::View* parent, |
48 views::View* child); | 51 views::View* child); |
49 | 52 |
50 private: | 53 private: |
51 // Add or remove observers for events that we care about. | 54 // Add or remove observers for events that we care about. |
52 void AddObservers(); | 55 void AddObservers(); |
53 void RemoveObservers(); | 56 void RemoveObservers(); |
(...skipping 11 matching lines...) Expand all Loading... |
65 // An instance of a NativeTabContentsContainer object that holds the native | 68 // An instance of a NativeTabContentsContainer object that holds the native |
66 // view handle associated with the attached TabContents. | 69 // view handle associated with the attached TabContents. |
67 NativeTabContentsContainer* native_container_; | 70 NativeTabContentsContainer* native_container_; |
68 | 71 |
69 // The attached TabContents. | 72 // The attached TabContents. |
70 TabContents* tab_contents_; | 73 TabContents* tab_contents_; |
71 | 74 |
72 // Handles registering for our notifications. | 75 // Handles registering for our notifications. |
73 NotificationRegistrar registrar_; | 76 NotificationRegistrar registrar_; |
74 | 77 |
| 78 // Storage of strings needed for accessibility. |
| 79 std::wstring accessible_name_; |
| 80 |
75 DISALLOW_COPY_AND_ASSIGN(TabContentsContainer); | 81 DISALLOW_COPY_AND_ASSIGN(TabContentsContainer); |
76 }; | 82 }; |
77 | 83 |
78 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_H_ | 84 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_H_ |
OLD | NEW |