| 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 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_MANAGER_EXTENSION_API_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_MANAGER_EXTENSION_API_H_ |
| 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MANAGER_EXTENSION_API_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MANAGER_EXTENSION_API_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/bookmarks/bookmark_extension_api.h" | 9 #include "chrome/browser/bookmarks/bookmark_extension_api.h" |
| 10 #include "chrome/browser/bookmarks/bookmark_node_data.h" | 10 #include "chrome/browser/bookmarks/bookmark_node_data.h" |
| 11 #include "chrome/browser/extensions/extension_function.h" | 11 #include "chrome/browser/extensions/extension_function.h" |
| 12 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" | 12 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" |
| 13 | 13 |
| 14 struct BookmarkNodeData; | 14 struct BookmarkNodeData; |
| 15 class Profile; | 15 class Profile; |
| 16 class TabContentsWrapper; | 16 class TabContents; |
| 17 typedef TabContents TabContentsWrapper; |
| 17 | 18 |
| 18 namespace base { | 19 namespace base { |
| 19 class ListValue; | 20 class ListValue; |
| 20 } | 21 } |
| 21 | 22 |
| 22 // Class that handles the chrome.experimental.bookmarkManager events. | 23 // Class that handles the chrome.experimental.bookmarkManager events. |
| 23 class BookmarkManagerExtensionEventRouter | 24 class BookmarkManagerExtensionEventRouter |
| 24 : public BookmarkTabHelper::BookmarkDrag { | 25 : public BookmarkTabHelper::BookmarkDrag { |
| 25 public: | 26 public: |
| 26 BookmarkManagerExtensionEventRouter(Profile* profile, | 27 BookmarkManagerExtensionEventRouter(Profile* profile, |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bookmarkManager.recordLaunch") | 176 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bookmarkManager.recordLaunch") |
| 176 | 177 |
| 177 protected: | 178 protected: |
| 178 virtual ~RecordLaunchBookmarkFunction() {} | 179 virtual ~RecordLaunchBookmarkFunction() {} |
| 179 | 180 |
| 180 // ExtensionFunction: | 181 // ExtensionFunction: |
| 181 virtual bool RunImpl() OVERRIDE; | 182 virtual bool RunImpl() OVERRIDE; |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MANAGER_EXTENSION_API_H_ | 185 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MANAGER_EXTENSION_API_H_ |
| OLD | NEW |