Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(670)

Side by Side Diff: chrome/browser/bookmarks/bookmark_manager_extension_api.h

Issue 8374023: Move bookmarks extension api implementation to bookmarks dir (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix deps, rebase Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARK_MANAGER_API_H_ 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_MANAGER_EXTENSION_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARK_MANAGER_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_node_data.h" 10 #include "chrome/browser/bookmarks/bookmark_node_data.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/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 TabContentsWrapper;
17 17
18 namespace base { 18 namespace base {
19 class ListValue; 19 class ListValue;
20 } 20 }
21 21
22 // Class that handles the chrome.experimental.bookmarkManager events. 22 // Class that handles the chrome.experimental.bookmarkManager events.
23 // TODO(aa): Rename this
23 class ExtensionBookmarkManagerEventRouter 24 class ExtensionBookmarkManagerEventRouter
24 : public BookmarkTabHelper::BookmarkDrag { 25 : public BookmarkTabHelper::BookmarkDrag {
25 public: 26 public:
26 ExtensionBookmarkManagerEventRouter(Profile* profile, 27 ExtensionBookmarkManagerEventRouter(Profile* profile,
27 TabContentsWrapper* tab); 28 TabContentsWrapper* tab);
28 virtual ~ExtensionBookmarkManagerEventRouter(); 29 virtual ~ExtensionBookmarkManagerEventRouter();
29 30
30 // RenderViewHostDelegate::BookmarkDrag interface 31 // RenderViewHostDelegate::BookmarkDrag interface
31 virtual void OnDragEnter(const BookmarkNodeData& data); 32 virtual void OnDragEnter(const BookmarkNodeData& data);
32 virtual void OnDragOver(const BookmarkNodeData& data); 33 virtual void OnDragOver(const BookmarkNodeData& data);
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 }; 140 };
140 141
141 class RecordLaunchBookmarkFunction : public BookmarksFunction { 142 class RecordLaunchBookmarkFunction : public BookmarksFunction {
142 public: 143 public:
143 virtual bool RunImpl() OVERRIDE; 144 virtual bool RunImpl() OVERRIDE;
144 145
145 private: 146 private:
146 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bookmarkManager.recordLaunch") 147 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bookmarkManager.recordLaunch")
147 }; 148 };
148 149
149 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARK_MANAGER_API_H_ 150 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MANAGER_EXTENSION_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698