| 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_TOOLBAR_VIEW_H__ | 5 #ifndef CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H__ |
| 6 #define CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H__ | 6 #define CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H__ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 // Assigns an accessible string name. | 97 // Assigns an accessible string name. |
| 98 void SetAccessibleName(const std::wstring& name); | 98 void SetAccessibleName(const std::wstring& name); |
| 99 | 99 |
| 100 // Returns the index of the next view of the toolbar, starting from the given | 100 // Returns the index of the next view of the toolbar, starting from the given |
| 101 // view index (skipping the location bar), in the given navigation direction | 101 // view index (skipping the location bar), in the given navigation direction |
| 102 // (nav_left true means navigation right to left, and vice versa). -1 finds | 102 // (nav_left true means navigation right to left, and vice versa). -1 finds |
| 103 // first accessible child, based on the above policy. | 103 // first accessible child, based on the above policy. |
| 104 int GetNextAccessibleViewIndex(int view_index, bool nav_left); | 104 int GetNextAccessibleViewIndex(int view_index, bool nav_left); |
| 105 | 105 |
| 106 views::View* GetAccFocusedChildView() { | 106 views::View* acc_focused_view() { |
| 107 return acc_focused_view_; | 107 return acc_focused_view_; |
| 108 } | 108 } |
| 109 | 109 |
| 110 void set_acc_focused_view(views::View* acc_focused_view) { |
| 111 acc_focused_view_ = acc_focused_view; |
| 112 } |
| 113 |
| 110 // Returns the selected tab. | 114 // Returns the selected tab. |
| 111 virtual TabContents* GetTabContents(); | 115 virtual TabContents* GetTabContents(); |
| 112 | 116 |
| 113 Browser* browser() { return browser_; } | 117 Browser* browser() { return browser_; } |
| 114 | 118 |
| 115 private: | 119 private: |
| 116 // NotificationObserver | 120 // NotificationObserver |
| 117 virtual void Observe(NotificationType type, | 121 virtual void Observe(NotificationType type, |
| 118 const NotificationSource& source, | 122 const NotificationSource& source, |
| 119 const NotificationDetails& details); | 123 const NotificationDetails& details); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 scoped_refptr<GetProfilesHelper> profiles_helper_; | 197 scoped_refptr<GetProfilesHelper> profiles_helper_; |
| 194 | 198 |
| 195 // Controls whether or not a home button should be shown on the toolbar. | 199 // Controls whether or not a home button should be shown on the toolbar. |
| 196 BooleanPrefMember show_home_button_; | 200 BooleanPrefMember show_home_button_; |
| 197 | 201 |
| 198 // The display mode used when laying out the toolbar. | 202 // The display mode used when laying out the toolbar. |
| 199 DisplayMode display_mode_; | 203 DisplayMode display_mode_; |
| 200 }; | 204 }; |
| 201 | 205 |
| 202 #endif // CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H__ | 206 #endif // CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H__ |
| OLD | NEW |