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

Side by Side Diff: ui/app_list/views/app_list_folder_view.cc

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Fix test Created 4 years, 1 month 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
« no previous file with comments | « ui/app_list/views/app_list_folder_view.h ('k') | ui/app_list/views/app_list_item_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/app_list/views/app_list_folder_view.h" 5 #include "ui/app_list/views/app_list_folder_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ui/accessibility/ax_view_state.h" 9 #include "ui/accessibility/ax_node_data.h"
10 #include "ui/app_list/app_list_constants.h" 10 #include "ui/app_list/app_list_constants.h"
11 #include "ui/app_list/app_list_folder_item.h" 11 #include "ui/app_list/app_list_folder_item.h"
12 #include "ui/app_list/app_list_model.h" 12 #include "ui/app_list/app_list_model.h"
13 #include "ui/app_list/views/app_list_item_view.h" 13 #include "ui/app_list/views/app_list_item_view.h"
14 #include "ui/app_list/views/app_list_main_view.h" 14 #include "ui/app_list/views/app_list_main_view.h"
15 #include "ui/app_list/views/apps_container_view.h" 15 #include "ui/app_list/views/apps_container_view.h"
16 #include "ui/app_list/views/apps_grid_view.h" 16 #include "ui/app_list/views/apps_grid_view.h"
17 #include "ui/app_list/views/contents_view.h" 17 #include "ui/app_list/views/contents_view.h"
18 #include "ui/app_list/views/folder_background_view.h" 18 #include "ui/app_list/views/folder_background_view.h"
19 #include "ui/app_list/views/folder_header_view.h" 19 #include "ui/app_list/views/folder_header_view.h"
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 } 323 }
324 324
325 bool AppListFolderView::IsOEMFolder() const { 325 bool AppListFolderView::IsOEMFolder() const {
326 return folder_item_->folder_type() == AppListFolderItem::FOLDER_TYPE_OEM; 326 return folder_item_->folder_type() == AppListFolderItem::FOLDER_TYPE_OEM;
327 } 327 }
328 328
329 void AppListFolderView::SetRootLevelDragViewVisible(bool visible) { 329 void AppListFolderView::SetRootLevelDragViewVisible(bool visible) {
330 container_view_->apps_grid_view()->SetDragViewVisible(visible); 330 container_view_->apps_grid_view()->SetDragViewVisible(visible);
331 } 331 }
332 332
333 void AppListFolderView::GetAccessibleState(ui::AXViewState* state) { 333 void AppListFolderView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
334 state->role = ui::AX_ROLE_BUTTON; 334 node_data->role = ui::AX_ROLE_BUTTON;
335 state->name = accessible_name_; 335 node_data->SetName(accessible_name_);
336 } 336 }
337 337
338 void AppListFolderView::NavigateBack(AppListFolderItem* item, 338 void AppListFolderView::NavigateBack(AppListFolderItem* item,
339 const ui::Event& event_flags) { 339 const ui::Event& event_flags) {
340 CloseFolderPage(); 340 CloseFolderPage();
341 } 341 }
342 342
343 void AppListFolderView::GiveBackFocusToSearchBox() { 343 void AppListFolderView::GiveBackFocusToSearchBox() {
344 app_list_main_view_->search_box_view()->search_box()->RequestFocus(); 344 app_list_main_view_->search_box_view()->search_box()->RequestFocus();
345 } 345 }
346 346
347 void AppListFolderView::SetItemName(AppListFolderItem* item, 347 void AppListFolderView::SetItemName(AppListFolderItem* item,
348 const std::string& name) { 348 const std::string& name) {
349 model_->SetItemName(item, name); 349 model_->SetItemName(item, name);
350 } 350 }
351 351
352 } // namespace app_list 352 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_folder_view.h ('k') | ui/app_list/views/app_list_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698