| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/extensions/api/bookmark_manager_private/bookmark_manage
r_private_api.h" | 5 #include "chrome/browser/extensions/api/bookmark_manager_private/bookmark_manage
r_private_api.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "chrome/browser/undo/bookmark_undo_service_factory.h" | 28 #include "chrome/browser/undo/bookmark_undo_service_factory.h" |
| 29 #include "chrome/common/extensions/api/bookmark_manager_private.h" | 29 #include "chrome/common/extensions/api/bookmark_manager_private.h" |
| 30 #include "chrome/grit/generated_resources.h" | 30 #include "chrome/grit/generated_resources.h" |
| 31 #include "components/bookmarks/browser/bookmark_model.h" | 31 #include "components/bookmarks/browser/bookmark_model.h" |
| 32 #include "components/bookmarks/browser/bookmark_node_data.h" | 32 #include "components/bookmarks/browser/bookmark_node_data.h" |
| 33 #include "components/bookmarks/browser/bookmark_utils.h" | 33 #include "components/bookmarks/browser/bookmark_utils.h" |
| 34 #include "components/bookmarks/browser/scoped_group_bookmark_actions.h" | 34 #include "components/bookmarks/browser/scoped_group_bookmark_actions.h" |
| 35 #include "components/bookmarks/common/bookmark_pref_names.h" | 35 #include "components/bookmarks/common/bookmark_pref_names.h" |
| 36 #include "components/bookmarks/managed/managed_bookmark_service.h" | 36 #include "components/bookmarks/managed/managed_bookmark_service.h" |
| 37 #include "components/prefs/pref_service.h" | 37 #include "components/prefs/pref_service.h" |
| 38 #include "components/strings/grit/components_strings.h" |
| 38 #include "components/undo/bookmark_undo_service.h" | 39 #include "components/undo/bookmark_undo_service.h" |
| 39 #include "components/user_prefs/user_prefs.h" | 40 #include "components/user_prefs/user_prefs.h" |
| 40 #include "content/public/browser/render_view_host.h" | 41 #include "content/public/browser/render_view_host.h" |
| 41 #include "content/public/browser/web_contents.h" | 42 #include "content/public/browser/web_contents.h" |
| 42 #include "content/public/browser/web_ui.h" | 43 #include "content/public/browser/web_ui.h" |
| 43 #include "extensions/browser/extension_function_dispatcher.h" | 44 #include "extensions/browser/extension_function_dispatcher.h" |
| 44 #include "extensions/browser/view_type_utils.h" | 45 #include "extensions/browser/view_type_utils.h" |
| 45 #include "grit/components_strings.h" | |
| 46 #include "ui/base/dragdrop/drag_drop_types.h" | 46 #include "ui/base/dragdrop/drag_drop_types.h" |
| 47 #include "ui/base/l10n/l10n_util.h" | 47 #include "ui/base/l10n/l10n_util.h" |
| 48 #include "ui/base/webui/web_ui_util.h" | 48 #include "ui/base/webui/web_ui_util.h" |
| 49 | 49 |
| 50 using bookmarks::BookmarkModel; | 50 using bookmarks::BookmarkModel; |
| 51 using bookmarks::BookmarkNode; | 51 using bookmarks::BookmarkNode; |
| 52 using bookmarks::BookmarkNodeData; | 52 using bookmarks::BookmarkNodeData; |
| 53 using content::WebContents; | 53 using content::WebContents; |
| 54 | 54 |
| 55 namespace extensions { | 55 namespace extensions { |
| (...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 859 | 859 |
| 860 RedoInfo::Results::Result result; | 860 RedoInfo::Results::Result result; |
| 861 result.enabled = undo_manager->redo_count() > 0; | 861 result.enabled = undo_manager->redo_count() > 0; |
| 862 result.label = base::UTF16ToUTF8(undo_manager->GetRedoLabel()); | 862 result.label = base::UTF16ToUTF8(undo_manager->GetRedoLabel()); |
| 863 | 863 |
| 864 results_ = RedoInfo::Results::Create(result); | 864 results_ = RedoInfo::Results::Create(result); |
| 865 return true; | 865 return true; |
| 866 } | 866 } |
| 867 | 867 |
| 868 } // namespace extensions | 868 } // namespace extensions |
| OLD | NEW |