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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/select_file_dialog_util.cc

Issue 23945002: file_manager: Move non-binding code to c/b/chromeos/file_manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/extensions/file_manager/select_file_dialog_uti l.h"
6
7 #include "grit/generated_resources.h"
8 #include "ui/base/l10n/l10n_util.h"
9
10 namespace file_manager {
11 namespace util {
12
13 string16 GetSelectFileDialogTitle(ui::SelectFileDialog::Type dialog_type) {
14 string16 title;
15 switch (dialog_type) {
16 case ui::SelectFileDialog::SELECT_NONE:
17 // Full page file manager doesn't need a title.
18 break;
19
20 case ui::SelectFileDialog::SELECT_FOLDER:
21 title = l10n_util::GetStringUTF16(
22 IDS_FILE_BROWSER_SELECT_FOLDER_TITLE);
23 break;
24
25 case ui::SelectFileDialog::SELECT_UPLOAD_FOLDER:
26 title = l10n_util::GetStringUTF16(
27 IDS_FILE_BROWSER_SELECT_UPLOAD_FOLDER_TITLE);
28 break;
29
30 case ui::SelectFileDialog::SELECT_SAVEAS_FILE:
31 title = l10n_util::GetStringUTF16(
32 IDS_FILE_BROWSER_SELECT_SAVEAS_FILE_TITLE);
33 break;
34
35 case ui::SelectFileDialog::SELECT_OPEN_FILE:
36 title = l10n_util::GetStringUTF16(
37 IDS_FILE_BROWSER_SELECT_OPEN_FILE_TITLE);
38 break;
39
40 case ui::SelectFileDialog::SELECT_OPEN_MULTI_FILE:
41 title = l10n_util::GetStringUTF16(
42 IDS_FILE_BROWSER_SELECT_OPEN_MULTI_FILE_TITLE);
43 break;
44
45 default:
46 NOTREACHED();
47 }
48
49 return title;
50 }
51
52 } // namespace util
53 } // namespace file_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698