| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/folder_header_view.h" | 5 #include "ui/app_list/views/folder_header_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "ui/app_list/app_list_constants.h" | 11 #include "ui/app_list/app_list_constants.h" |
| 12 #include "ui/app_list/app_list_folder_item.h" | 12 #include "ui/app_list/app_list_folder_item.h" |
| 13 #include "ui/app_list/app_list_switches.h" | 13 #include "ui/app_list/app_list_switches.h" |
| 14 #include "ui/app_list/resources/grit/app_list_resources.h" | |
| 15 #include "ui/app_list/views/app_list_folder_view.h" | 14 #include "ui/app_list/views/app_list_folder_view.h" |
| 16 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
| 17 #include "ui/gfx/canvas.h" | 16 #include "ui/gfx/canvas.h" |
| 18 #include "ui/strings/grit/ui_strings.h" | 17 #include "ui/strings/grit/ui_strings.h" |
| 19 #include "ui/views/border.h" | 18 #include "ui/views/border.h" |
| 20 #include "ui/views/controls/button/image_button.h" | 19 #include "ui/views/controls/button/image_button.h" |
| 21 #include "ui/views/controls/textfield/textfield.h" | 20 #include "ui/views/controls/textfield/textfield.h" |
| 22 #include "ui/views/painter.h" | 21 #include "ui/views/painter.h" |
| 23 | 22 |
| 24 namespace app_list { | 23 namespace app_list { |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 void FolderHeaderView::ButtonPressed(views::Button* sender, | 205 void FolderHeaderView::ButtonPressed(views::Button* sender, |
| 207 const ui::Event& event) { | 206 const ui::Event& event) { |
| 208 delegate_->NavigateBack(folder_item_, event); | 207 delegate_->NavigateBack(folder_item_, event); |
| 209 } | 208 } |
| 210 | 209 |
| 211 void FolderHeaderView::ItemNameChanged() { | 210 void FolderHeaderView::ItemNameChanged() { |
| 212 Update(); | 211 Update(); |
| 213 } | 212 } |
| 214 | 213 |
| 215 } // namespace app_list | 214 } // namespace app_list |
| OLD | NEW |