| 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 #ifndef UI_APP_LIST_VIEWS_FOLDER_HEADER_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_FOLDER_HEADER_VIEW_H_ |
| 6 #define UI_APP_LIST_VIEWS_FOLDER_HEADER_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_FOLDER_HEADER_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ui/app_list/app_list_export.h" | 10 #include "ui/app_list/app_list_export.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // Overridden from views::View: | 43 // Overridden from views::View: |
| 44 virtual gfx::Size GetPreferredSize() OVERRIDE; | 44 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 class FolderNameView; | 47 class FolderNameView; |
| 48 friend class test::FolderHeaderViewTest; | 48 friend class test::FolderHeaderViewTest; |
| 49 | 49 |
| 50 // Updates UI. | 50 // Updates UI. |
| 51 void Update(); | 51 void Update(); |
| 52 | 52 |
| 53 // Updates the accessible name of the folder name control. |
| 54 void UpdateFolderNameAccessibleName(); |
| 55 |
| 53 // Gets and sets the folder name for test. | 56 // Gets and sets the folder name for test. |
| 54 const base::string16& GetFolderNameForTest(); | 57 const base::string16& GetFolderNameForTest(); |
| 55 void SetFolderNameForTest(const base::string16& name); | 58 void SetFolderNameForTest(const base::string16& name); |
| 56 | 59 |
| 57 // Returns true if folder name is enabled, only for testing use. | 60 // Returns true if folder name is enabled, only for testing use. |
| 58 bool IsFolderNameEnabledForTest() const; | 61 bool IsFolderNameEnabledForTest() const; |
| 59 | 62 |
| 60 // views::View overrides: | 63 // views::View overrides: |
| 61 virtual void Layout() OVERRIDE; | 64 virtual void Layout() OVERRIDE; |
| 62 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 65 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 87 FolderHeaderViewDelegate* delegate_; | 90 FolderHeaderViewDelegate* delegate_; |
| 88 | 91 |
| 89 bool folder_name_visible_; | 92 bool folder_name_visible_; |
| 90 | 93 |
| 91 DISALLOW_COPY_AND_ASSIGN(FolderHeaderView); | 94 DISALLOW_COPY_AND_ASSIGN(FolderHeaderView); |
| 92 }; | 95 }; |
| 93 | 96 |
| 94 } // namespace app_list | 97 } // namespace app_list |
| 95 | 98 |
| 96 #endif // UI_APP_LIST_VIEWS_FOLDER_HEADER_VIEW_H_ | 99 #endif // UI_APP_LIST_VIEWS_FOLDER_HEADER_VIEW_H_ |
| OLD | NEW |