Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: chrome/browser/views/toolbar_view.h

Issue 27175: Fix toolbar keyboard focus (shift-alt-t), which was broken by me, and toolbar... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/views/frame/browser_view.cc ('k') | chrome/browser/views/toolbar_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 GoButton* GetGoButton() { return go_; } 80 GoButton* GetGoButton() { return go_; }
81 81
82 LocationBarView* GetLocationBarView() const { return location_bar_; } 82 LocationBarView* GetLocationBarView() const { return location_bar_; }
83 83
84 // Updates the toolbar (and transitively the location bar) with the states of 84 // Updates the toolbar (and transitively the location bar) with the states of
85 // the specified |tab|. If |should_restore_state| is true, we're switching 85 // the specified |tab|. If |should_restore_state| is true, we're switching
86 // (back?) to this tab and should restore any previous location bar state 86 // (back?) to this tab and should restore any previous location bar state
87 // (such as user editing) as well. 87 // (such as user editing) as well.
88 void Update(TabContents* tab, bool should_restore_state); 88 void Update(TabContents* tab, bool should_restore_state);
89 89
90 void OnInputInProgress(bool in_progress); 90 virtual void OnInputInProgress(bool in_progress);
91
92 // Returns a brief, identifying string, containing a unique, readable name.
93 virtual bool GetAccessibleName(std::wstring* name);
91 94
92 // Returns the MSAA role of the current view. The role is what assistive 95 // Returns the MSAA role of the current view. The role is what assistive
93 // technologies (ATs) use to determine what behavior to expect from a given 96 // technologies (ATs) use to determine what behavior to expect from a given
94 // control. 97 // control.
95 bool GetAccessibleRole(VARIANT* role); 98 virtual bool GetAccessibleRole(VARIANT* role);
96
97 // Returns a brief, identifying string, containing a unique, readable name.
98 bool GetAccessibleName(std::wstring* name);
99 99
100 // Assigns an accessible string name. 100 // Assigns an accessible string name.
101 void SetAccessibleName(const std::wstring& name); 101 virtual void SetAccessibleName(const std::wstring& name);
102
103 virtual View* GetAccFocusedChildView() { return acc_focused_view_; }
102 104
103 // Returns the index of the next view of the toolbar, starting from the given 105 // Returns the index of the next view of the toolbar, starting from the given
104 // view index (skipping the location bar), in the given navigation direction 106 // view index (skipping the location bar), in the given navigation direction
105 // (nav_left true means navigation right to left, and vice versa). -1 finds 107 // (nav_left true means navigation right to left, and vice versa). -1 finds
106 // first accessible child, based on the above policy. 108 // first accessible child, based on the above policy.
107 int GetNextAccessibleViewIndex(int view_index, bool nav_left); 109 int GetNextAccessibleViewIndex(int view_index, bool nav_left);
108 110
109 views::View* acc_focused_view() {
110 return acc_focused_view_;
111 }
112
113 void set_acc_focused_view(views::View* acc_focused_view) { 111 void set_acc_focused_view(views::View* acc_focused_view) {
114 acc_focused_view_ = acc_focused_view; 112 acc_focused_view_ = acc_focused_view;
115 } 113 }
116 114
117 // Returns the selected tab. 115 // Returns the selected tab.
118 virtual TabContents* GetTabContents(); 116 virtual TabContents* GetTabContents();
119 117
120 Browser* browser() { return browser_; } 118 Browser* browser() { return browser_; }
121 119
122 // Overridden from CommandUpdater::CommandObserver: 120 // Overridden from CommandUpdater::CommandObserver:
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 scoped_refptr<GetProfilesHelper> profiles_helper_; 205 scoped_refptr<GetProfilesHelper> profiles_helper_;
208 206
209 // Controls whether or not a home button should be shown on the toolbar. 207 // Controls whether or not a home button should be shown on the toolbar.
210 BooleanPrefMember show_home_button_; 208 BooleanPrefMember show_home_button_;
211 209
212 // The display mode used when laying out the toolbar. 210 // The display mode used when laying out the toolbar.
213 DisplayMode display_mode_; 211 DisplayMode display_mode_;
214 }; 212 };
215 213
216 #endif // CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H_ 214 #endif // CHROME_BROWSER_VIEWS_TOOLBAR_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/browser_view.cc ('k') | chrome/browser/views/toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698