diff options
author | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-20 02:06:16 +0000 |
---|---|---|
committer | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-20 02:06:16 +0000 |
commit | ced90ae1159e8967837cd13b9155956467a811f9 (patch) | |
tree | b052ff281b583fdcc12f6bea883f83db663ae92f /chrome/browser/extensions/extension_dom_ui.h | |
parent | ddf796cffe2f905a36764bc2e46cc8325a560c51 (diff) | |
download | chromium_src-ced90ae1159e8967837cd13b9155956467a811f9.zip chromium_src-ced90ae1159e8967837cd13b9155956467a811f9.tar.gz chromium_src-ced90ae1159e8967837cd13b9155956467a811f9.tar.bz2 |
Bookmark Manager Drag and Drop backend.
This adds the following methods to chrome.experimental.bookmarkManager:
startDrag(idList)
drop(parentId, opt_index)
as well as the following events:
onDragEnter(function(BookmarkDragData))
onDragLeave(function(BookmarkDragData))
onDrop(function(BookmarkDragData))
BUG=32194
TEST=None
Review URL: http://codereview.chromium.org/596105
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39540 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_dom_ui.h')
-rw-r--r-- | chrome/browser/extensions/extension_dom_ui.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_dom_ui.h b/chrome/browser/extensions/extension_dom_ui.h index c7d2b97..59a89a8 100644 --- a/chrome/browser/extensions/extension_dom_ui.h +++ b/chrome/browser/extensions/extension_dom_ui.h @@ -9,6 +9,7 @@ #include "base/scoped_ptr.h" #include "chrome/browser/dom_ui/dom_ui.h" +#include "chrome/browser/extensions/extension_bookmark_manager_api.h" #include "chrome/browser/extensions/extension_function_dispatcher.h" #include "chrome/browser/extensions/extension_popup_host.h" #include "chrome/common/extensions/extension.h" @@ -49,6 +50,11 @@ class ExtensionDOMUI virtual Profile* GetProfile(); virtual gfx::NativeView GetNativeViewOfHost(); + virtual ExtensionBookmarkManagerEventRouter* + extension_bookmark_manager_event_router() { + return extension_bookmark_manager_event_router_.get(); + } + // BrowserURLHandler static bool HandleChromeURLOverride(GURL* url, Profile* profile); @@ -56,9 +62,9 @@ class ExtensionDOMUI // Page names are the keys, and chrome-extension: URLs are the values. // (e.g. { "newtab": "chrome-extension://<id>/my_new_tab.html" } static void RegisterChromeURLOverrides(Profile* profile, - const Extension::URLOverrideMap& overrides); + const Extension::URLOverrideMap& overrides); static void UnregisterChromeURLOverrides(Profile* profile, - const Extension::URLOverrideMap& overrides); + const Extension::URLOverrideMap& overrides); static void UnregisterChromeURLOverride(const std::string& page, Profile* profile, Value* override); @@ -79,7 +85,12 @@ class ExtensionDOMUI // right one, as well as being linked to the correct URL. void ResetExtensionFunctionDispatcher(RenderViewHost* render_view_host); + void ResetExtensionBookmarkManagerEventRouter(); + scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; + + scoped_ptr<ExtensionBookmarkManagerEventRouter> + extension_bookmark_manager_event_router_; }; #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DOM_UI_H_ |