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

Side by Side Diff: ui/app_list/views/folder_header_view.h

Issue 253833004: Add vox support for reading unnamed folder description and fix a focus bug when app launcher is ope… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a commnent. Created 6 years, 7 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/app_list/views/apps_container_view.cc ('k') | ui/app_list/views/folder_header_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 (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
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
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_
OLDNEW
« no previous file with comments | « ui/app_list/views/apps_container_view.cc ('k') | ui/app_list/views/folder_header_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698