| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "content/public/browser/render_view_host.h" | 32 #include "content/public/browser/render_view_host.h" |
| 33 #include "content/public/browser/web_contents.h" | 33 #include "content/public/browser/web_contents.h" |
| 34 #include "content/public/browser/web_ui.h" | 34 #include "content/public/browser/web_ui.h" |
| 35 #include "extensions/browser/extension_function_dispatcher.h" | 35 #include "extensions/browser/extension_function_dispatcher.h" |
| 36 #include "extensions/browser/view_type_utils.h" | 36 #include "extensions/browser/view_type_utils.h" |
| 37 #include "grit/generated_resources.h" | 37 #include "grit/generated_resources.h" |
| 38 #include "ui/base/dragdrop/drag_drop_types.h" | 38 #include "ui/base/dragdrop/drag_drop_types.h" |
| 39 #include "ui/base/l10n/l10n_util.h" | 39 #include "ui/base/l10n/l10n_util.h" |
| 40 #include "ui/base/webui/web_ui_util.h" | 40 #include "ui/base/webui/web_ui_util.h" |
| 41 | 41 |
| 42 using bookmarks::BookmarkNodeData; |
| 43 |
| 42 namespace extensions { | 44 namespace extensions { |
| 43 | 45 |
| 44 namespace bookmark_keys = bookmark_api_constants; | 46 namespace bookmark_keys = bookmark_api_constants; |
| 45 namespace bookmark_manager_private = api::bookmark_manager_private; | 47 namespace bookmark_manager_private = api::bookmark_manager_private; |
| 46 namespace CanPaste = api::bookmark_manager_private::CanPaste; | 48 namespace CanPaste = api::bookmark_manager_private::CanPaste; |
| 47 namespace Copy = api::bookmark_manager_private::Copy; | 49 namespace Copy = api::bookmark_manager_private::Copy; |
| 48 namespace CreateWithMetaInfo = | 50 namespace CreateWithMetaInfo = |
| 49 api::bookmark_manager_private::CreateWithMetaInfo; | 51 api::bookmark_manager_private::CreateWithMetaInfo; |
| 50 namespace Cut = api::bookmark_manager_private::Cut; | 52 namespace Cut = api::bookmark_manager_private::Cut; |
| 51 namespace Drop = api::bookmark_manager_private::Drop; | 53 namespace Drop = api::bookmark_manager_private::Drop; |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 | 801 |
| 800 RedoInfo::Results::Result result; | 802 RedoInfo::Results::Result result; |
| 801 result.enabled = undo_manager->redo_count() > 0; | 803 result.enabled = undo_manager->redo_count() > 0; |
| 802 result.label = base::UTF16ToUTF8(undo_manager->GetRedoLabel()); | 804 result.label = base::UTF16ToUTF8(undo_manager->GetRedoLabel()); |
| 803 | 805 |
| 804 results_ = RedoInfo::Results::Create(result); | 806 results_ = RedoInfo::Results::Create(result); |
| 805 return true; | 807 return true; |
| 806 } | 808 } |
| 807 | 809 |
| 808 } // namespace extensions | 810 } // namespace extensions |
| OLD | NEW |