OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/bookmarks/bookmark_manager_extension_api.h" | 5 #include "chrome/browser/bookmarks/bookmark_manager_extension_api.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 localized_strings->SetString("name_input_placeholder", | 347 localized_strings->SetString("name_input_placeholder", |
348 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_NAME_INPUT_PLACE_HOLDER)); | 348 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_NAME_INPUT_PLACE_HOLDER)); |
349 localized_strings->SetString("url_input_placeholder", | 349 localized_strings->SetString("url_input_placeholder", |
350 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_URL_INPUT_PLACE_HOLDER)); | 350 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_URL_INPUT_PLACE_HOLDER)); |
351 localized_strings->SetString("invalid_url", | 351 localized_strings->SetString("invalid_url", |
352 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_INVALID_URL)); | 352 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_INVALID_URL)); |
353 localized_strings->SetString("recent", | 353 localized_strings->SetString("recent", |
354 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_RECENT)); | 354 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_RECENT)); |
355 localized_strings->SetString("search", | 355 localized_strings->SetString("search", |
356 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_SEARCH)); | 356 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_SEARCH)); |
| 357 localized_strings->SetString("bookmark_all_tabs", |
| 358 l10n_util::GetStringUTF16(IDS_BOOKMARK_MANAGER_BOOKMARK_ALL_TABS)); |
| 359 localized_strings->SetString("save", |
| 360 l10n_util::GetStringUTF16(IDS_SAVE)); |
| 361 localized_strings->SetString("cancel", |
| 362 l10n_util::GetStringUTF16(IDS_CANCEL)); |
357 | 363 |
358 ChromeURLDataManager::DataSource::SetFontAndTextDirection(localized_strings); | 364 ChromeURLDataManager::DataSource::SetFontAndTextDirection(localized_strings); |
359 | 365 |
360 result_.reset(localized_strings); | 366 result_.reset(localized_strings); |
361 SendResponse(true); | 367 SendResponse(true); |
362 return true; | 368 return true; |
363 } | 369 } |
364 | 370 |
365 bool StartDragBookmarkManagerFunction::RunImpl() { | 371 bool StartDragBookmarkManagerFunction::RunImpl() { |
366 if (!EditBookmarksEnabled()) | 372 if (!EditBookmarksEnabled()) |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 bool CanEditBookmarkManagerFunction::RunImpl() { | 484 bool CanEditBookmarkManagerFunction::RunImpl() { |
479 result_.reset(Value::CreateBooleanValue( | 485 result_.reset(Value::CreateBooleanValue( |
480 profile_->GetPrefs()->GetBoolean(prefs::kEditBookmarksEnabled))); | 486 profile_->GetPrefs()->GetBoolean(prefs::kEditBookmarksEnabled))); |
481 return true; | 487 return true; |
482 } | 488 } |
483 | 489 |
484 bool RecordLaunchBookmarkFunction::RunImpl() { | 490 bool RecordLaunchBookmarkFunction::RunImpl() { |
485 bookmark_utils::RecordBookmarkLaunch(bookmark_utils::LAUNCH_MANAGER); | 491 bookmark_utils::RecordBookmarkLaunch(bookmark_utils::LAUNCH_MANAGER); |
486 return true; | 492 return true; |
487 } | 493 } |
OLD | NEW |