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

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

Issue 1679983003: Set wallpaper from right click menu in Files app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use enum Created 4 years, 10 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
« no previous file with comments | « no previous file | ui/file_manager/externs/chrome_wallpaper.js » ('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 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 "chrome/browser/chromeos/extensions/file_manager/private_api_strings.h" 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_strings.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/sys_info.h" 8 #include "base/sys_info.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/chromeos/file_manager/open_with_browser.h" 10 #include "chrome/browser/chromeos/file_manager/open_with_browser.h"
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 SET_STRING("DOWNLOADS_DIRECTORY_LABEL", 419 SET_STRING("DOWNLOADS_DIRECTORY_LABEL",
420 IDS_FILE_BROWSER_DOWNLOADS_DIRECTORY_LABEL); 420 IDS_FILE_BROWSER_DOWNLOADS_DIRECTORY_LABEL);
421 SET_STRING("DOWNLOADS_DIRECTORY_WARNING", 421 SET_STRING("DOWNLOADS_DIRECTORY_WARNING",
422 IDS_FILE_BROWSER_DOWNLOADS_DIRECTORY_WARNING); 422 IDS_FILE_BROWSER_DOWNLOADS_DIRECTORY_WARNING);
423 SET_STRING("DRAGGING_MULTIPLE_ITEMS", 423 SET_STRING("DRAGGING_MULTIPLE_ITEMS",
424 IDS_FILE_BROWSER_DRAGGING_MULTIPLE_ITEMS); 424 IDS_FILE_BROWSER_DRAGGING_MULTIPLE_ITEMS);
425 SET_STRING("ERROR_CREATING_FOLDER", IDS_FILE_BROWSER_ERROR_CREATING_FOLDER); 425 SET_STRING("ERROR_CREATING_FOLDER", IDS_FILE_BROWSER_ERROR_CREATING_FOLDER);
426 SET_STRING("ERROR_HIDDEN_NAME", IDS_FILE_BROWSER_ERROR_HIDDEN_NAME); 426 SET_STRING("ERROR_HIDDEN_NAME", IDS_FILE_BROWSER_ERROR_HIDDEN_NAME);
427 SET_STRING("ERROR_INVALID_CHARACTER", 427 SET_STRING("ERROR_INVALID_CHARACTER",
428 IDS_FILE_BROWSER_ERROR_INVALID_CHARACTER); 428 IDS_FILE_BROWSER_ERROR_INVALID_CHARACTER);
429 SET_STRING("ERROR_INVALID_WALLPAPER",
430 IDS_WALLPAPER_MANAGER_INVALID_WALLPAPER);
429 SET_STRING("ERROR_LONG_NAME", IDS_FILE_BROWSER_ERROR_LONG_NAME); 431 SET_STRING("ERROR_LONG_NAME", IDS_FILE_BROWSER_ERROR_LONG_NAME);
430 SET_STRING("ERROR_PROGRESS_SUMMARY", IDS_FILE_BROWSER_ERROR_PROGRESS_SUMMARY); 432 SET_STRING("ERROR_PROGRESS_SUMMARY", IDS_FILE_BROWSER_ERROR_PROGRESS_SUMMARY);
431 SET_STRING("ERROR_PROGRESS_SUMMARY_PLURAL", 433 SET_STRING("ERROR_PROGRESS_SUMMARY_PLURAL",
432 IDS_FILE_BROWSER_ERROR_PROGRESS_SUMMARY_PLURAL); 434 IDS_FILE_BROWSER_ERROR_PROGRESS_SUMMARY_PLURAL);
433 SET_STRING("ERROR_RENAMING", IDS_FILE_BROWSER_ERROR_RENAMING); 435 SET_STRING("ERROR_RENAMING", IDS_FILE_BROWSER_ERROR_RENAMING);
434 SET_STRING("ERROR_RESERVED_NAME", IDS_FILE_BROWSER_ERROR_RESERVED_NAME); 436 SET_STRING("ERROR_RESERVED_NAME", IDS_FILE_BROWSER_ERROR_RESERVED_NAME);
435 SET_STRING("ERROR_WHITESPACE_NAME", IDS_FILE_BROWSER_ERROR_WHITESPACE_NAME); 437 SET_STRING("ERROR_WHITESPACE_NAME", IDS_FILE_BROWSER_ERROR_WHITESPACE_NAME);
436 SET_STRING("EXTERNAL_STORAGE_DISABLED_MESSAGE", 438 SET_STRING("EXTERNAL_STORAGE_DISABLED_MESSAGE",
437 IDS_EXTERNAL_STORAGE_DISABLED_MESSAGE); 439 IDS_EXTERNAL_STORAGE_DISABLED_MESSAGE);
438 SET_STRING("FAILED_SPACE_INFO", IDS_FILE_BROWSER_FAILED_SPACE_INFO); 440 SET_STRING("FAILED_SPACE_INFO", IDS_FILE_BROWSER_FAILED_SPACE_INFO);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 SET_STRING("TASKS_BUTTON_LABEL", IDS_FILE_BROWSER_TASKS_BUTTON_LABEL); 536 SET_STRING("TASKS_BUTTON_LABEL", IDS_FILE_BROWSER_TASKS_BUTTON_LABEL);
535 SET_STRING("TOGGLE_HIDDEN_FILES_COMMAND_LABEL", 537 SET_STRING("TOGGLE_HIDDEN_FILES_COMMAND_LABEL",
536 IDS_FILE_BROWSER_TOGGLE_HIDDEN_FILES_COMMAND_LABEL); 538 IDS_FILE_BROWSER_TOGGLE_HIDDEN_FILES_COMMAND_LABEL);
537 SET_STRING("SHARE_BUTTON_LABEL", IDS_FILE_BROWSER_SHARE_BUTTON_LABEL); 539 SET_STRING("SHARE_BUTTON_LABEL", IDS_FILE_BROWSER_SHARE_BUTTON_LABEL);
538 SET_STRING("CHANGE_TO_LISTVIEW_BUTTON_LABEL", 540 SET_STRING("CHANGE_TO_LISTVIEW_BUTTON_LABEL",
539 IDS_FILE_BROWSER_CHANGE_TO_LISTVIEW_BUTTON_LABEL); 541 IDS_FILE_BROWSER_CHANGE_TO_LISTVIEW_BUTTON_LABEL);
540 SET_STRING("CHANGE_TO_THUMBNAILVIEW_BUTTON_LABEL", 542 SET_STRING("CHANGE_TO_THUMBNAILVIEW_BUTTON_LABEL",
541 IDS_FILE_BROWSER_CHANGE_TO_THUMBNAILVIEW_BUTTON_LABEL); 543 IDS_FILE_BROWSER_CHANGE_TO_THUMBNAILVIEW_BUTTON_LABEL);
542 SET_STRING("CANCEL_SELECTION_BUTTON_LABEL", 544 SET_STRING("CANCEL_SELECTION_BUTTON_LABEL",
543 IDS_FILE_BROWSER_CANCEL_SELECTION_BUTTON_LABEL); 545 IDS_FILE_BROWSER_CANCEL_SELECTION_BUTTON_LABEL);
546 SET_STRING("SET_WALLPAPER_BUTTON_LABEL", IDS_SET_WALLPAPER_BUTTON);
544 SET_STRING("SHARE_ERROR", IDS_FILE_BROWSER_SHARE_ERROR); 547 SET_STRING("SHARE_ERROR", IDS_FILE_BROWSER_SHARE_ERROR);
545 548
546 SET_STRING("SIZE_BYTES", IDS_FILE_BROWSER_SIZE_BYTES); 549 SET_STRING("SIZE_BYTES", IDS_FILE_BROWSER_SIZE_BYTES);
547 SET_STRING("SIZE_COLUMN_LABEL", IDS_FILE_BROWSER_SIZE_COLUMN_LABEL); 550 SET_STRING("SIZE_COLUMN_LABEL", IDS_FILE_BROWSER_SIZE_COLUMN_LABEL);
548 SET_STRING("SIZE_GB", IDS_FILE_BROWSER_SIZE_GB); 551 SET_STRING("SIZE_GB", IDS_FILE_BROWSER_SIZE_GB);
549 SET_STRING("SIZE_KB", IDS_FILE_BROWSER_SIZE_KB); 552 SET_STRING("SIZE_KB", IDS_FILE_BROWSER_SIZE_KB);
550 SET_STRING("SIZE_MB", IDS_FILE_BROWSER_SIZE_MB); 553 SET_STRING("SIZE_MB", IDS_FILE_BROWSER_SIZE_MB);
551 SET_STRING("SIZE_PB", IDS_FILE_BROWSER_SIZE_PB); 554 SET_STRING("SIZE_PB", IDS_FILE_BROWSER_SIZE_PB);
552 SET_STRING("SIZE_TB", IDS_FILE_BROWSER_SIZE_TB); 555 SET_STRING("SIZE_TB", IDS_FILE_BROWSER_SIZE_TB);
553 SET_STRING("SPACE_AVAILABLE", IDS_FILE_BROWSER_SPACE_AVAILABLE); 556 SET_STRING("SPACE_AVAILABLE", IDS_FILE_BROWSER_SPACE_AVAILABLE);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber)); 625 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber));
623 dict->SetString("UI_LOCALE", extension_l10n_util::CurrentLocaleOrDefault()); 626 dict->SetString("UI_LOCALE", extension_l10n_util::CurrentLocaleOrDefault());
624 627
625 const std::string& app_locale = g_browser_process->GetApplicationLocale(); 628 const std::string& app_locale = g_browser_process->GetApplicationLocale();
626 webui::SetLoadTimeDataDefaults(app_locale, dict); 629 webui::SetLoadTimeDataDefaults(app_locale, dict);
627 630
628 return true; 631 return true;
629 } 632 }
630 633
631 } // namespace extensions 634 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | ui/file_manager/externs/chrome_wallpaper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698