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

Side by Side Diff: ui/views/controls/tabbed_pane/tabbed_pane.h

Issue 2578303003: a11y: Add a11y information to views::Tab and manually ignore its a11y children. (Closed)
Patch Set: Rebase back onto origin/master. Created 3 years, 12 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_ 5 #ifndef UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_
6 #define UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_ 6 #define UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 bool selected() const { return contents_->visible(); } 114 bool selected() const { return contents_->visible(); }
115 void SetSelected(bool selected); 115 void SetSelected(bool selected);
116 116
117 // Overridden from View: 117 // Overridden from View:
118 bool OnMousePressed(const ui::MouseEvent& event) override; 118 bool OnMousePressed(const ui::MouseEvent& event) override;
119 void OnMouseEntered(const ui::MouseEvent& event) override; 119 void OnMouseEntered(const ui::MouseEvent& event) override;
120 void OnMouseExited(const ui::MouseEvent& event) override; 120 void OnMouseExited(const ui::MouseEvent& event) override;
121 void OnGestureEvent(ui::GestureEvent* event) override; 121 void OnGestureEvent(ui::GestureEvent* event) override;
122 gfx::Size GetPreferredSize() const override; 122 gfx::Size GetPreferredSize() const override;
123 const char* GetClassName() const override; 123 const char* GetClassName() const override;
124 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
124 void OnFocus() override; 125 void OnFocus() override;
125 void OnBlur() override; 126 void OnBlur() override;
126 bool OnKeyPressed(const ui::KeyEvent& event) override; 127 bool OnKeyPressed(const ui::KeyEvent& event) override;
127 128
128 protected: 129 protected:
129 Label* title() { return title_; } 130 Label* title() { return title_; }
130 131
131 // Called whenever |tab_state_| changes. 132 // Called whenever |tab_state_| changes.
132 virtual void OnStateChanged(); 133 virtual void OnStateChanged();
133 134
(...skipping 12 matching lines...) Expand all
146 TabState tab_state_; 147 TabState tab_state_;
147 // The content view associated with this tab. 148 // The content view associated with this tab.
148 View* contents_; 149 View* contents_;
149 150
150 DISALLOW_COPY_AND_ASSIGN(Tab); 151 DISALLOW_COPY_AND_ASSIGN(Tab);
151 }; 152 };
152 153
153 } // namespace views 154 } // namespace views
154 155
155 #endif // UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_ 156 #endif // UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/controls/tabbed_pane/tabbed_pane.cc » ('j') | ui/views/controls/tabbed_pane/tabbed_pane.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698