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

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

Issue 13524005: Cleanup: remove NotifyAccessibilityEvent from views::Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 8 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 | « ui/views/controls/slider.cc ('k') | ui/views/controls/textfield/native_textfield_views.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) 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 #include "ui/views/controls/tabbed_pane/tabbed_pane.h" 5 #include "ui/views/controls/tabbed_pane/tabbed_pane.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/base/accessibility/accessible_view_state.h" 8 #include "ui/base/accessibility/accessible_view_state.h"
9 #include "ui/base/keycodes/keyboard_codes.h" 9 #include "ui/base/keycodes/keyboard_codes.h"
10 #include "ui/gfx/canvas.h" 10 #include "ui/gfx/canvas.h"
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 352
353 std::string TabbedPane::GetClassName() const { 353 std::string TabbedPane::GetClassName() const {
354 return kViewClassName; 354 return kViewClassName;
355 } 355 }
356 356
357 void TabbedPane::OnFocus() { 357 void TabbedPane::OnFocus() {
358 View::OnFocus(); 358 View::OnFocus();
359 359
360 View* selected_tab = GetSelectedTab(); 360 View* selected_tab = GetSelectedTab();
361 if (selected_tab) { 361 if (selected_tab) {
362 selected_tab->GetWidget()->NotifyAccessibilityEvent( 362 selected_tab->NotifyAccessibilityEvent(
363 selected_tab, ui::AccessibilityTypes::EVENT_FOCUS, true); 363 ui::AccessibilityTypes::EVENT_FOCUS, true);
364 } 364 }
365 } 365 }
366 366
367 void TabbedPane::GetAccessibleState(ui::AccessibleViewState* state) { 367 void TabbedPane::GetAccessibleState(ui::AccessibleViewState* state) {
368 state->role = ui::AccessibilityTypes::ROLE_PAGETABLIST; 368 state->role = ui::AccessibilityTypes::ROLE_PAGETABLIST;
369 } 369 }
370 370
371 } // namespace views 371 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/slider.cc ('k') | ui/views/controls/textfield/native_textfield_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698