| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARK_MANAGER_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARK_MANAGER_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARK_MANAGER_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARK_MANAGER_API_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/bookmarks/bookmark_drag_data.h" | 9 #include "chrome/browser/bookmarks/bookmark_drag_data.h" |
| 10 #include "chrome/browser/extensions/extension_bookmarks_module.h" | 10 #include "chrome/browser/extensions/extension_bookmarks_module.h" |
| 11 #include "chrome/browser/extensions/extension_function.h" | 11 #include "chrome/browser/extensions/extension_function.h" |
| 12 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 12 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
| 13 | 13 |
| 14 struct BookmarkDragData; | 14 struct BookmarkDragData; |
| 15 class BookmarkNode; | |
| 16 class ListValue; | 15 class ListValue; |
| 17 class Profile; | 16 class Profile; |
| 18 class TabContents; | 17 class TabContents; |
| 19 | 18 |
| 20 // Class that handles the chrome.experimental.bookmarkManager events. | 19 // Class that handles the chrome.experimental.bookmarkManager events. |
| 21 class ExtensionBookmarkManagerEventRouter | 20 class ExtensionBookmarkManagerEventRouter |
| 22 : public RenderViewHostDelegate::BookmarkDrag { | 21 : public RenderViewHostDelegate::BookmarkDrag { |
| 23 public: | 22 public: |
| 24 ExtensionBookmarkManagerEventRouter(Profile* profile, | 23 ExtensionBookmarkManagerEventRouter(Profile* profile, |
| 25 TabContents* tab_contents); | 24 TabContents* tab_contents); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 class GetSubtreeBookmarkManagerFunction : public BookmarksFunction { | 134 class GetSubtreeBookmarkManagerFunction : public BookmarksFunction { |
| 136 public: | 135 public: |
| 137 // Override BookmarksFunction | 136 // Override BookmarksFunction |
| 138 virtual bool RunImpl(); | 137 virtual bool RunImpl(); |
| 139 | 138 |
| 140 private: | 139 private: |
| 141 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bookmarkManager.getSubtree"); | 140 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bookmarkManager.getSubtree"); |
| 142 }; | 141 }; |
| 143 | 142 |
| 144 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARK_MANAGER_API_H_ | 143 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARK_MANAGER_API_H_ |
| OLD | NEW |