| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |