| 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_EXTENSIONS_API_BOOKMARK_MANAGER_PRIVATE_BOOKMARK_MANAGER_
PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_BOOKMARK_MANAGER_PRIVATE_BOOKMARK_MANAGER_
PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_BOOKMARK_MANAGER_PRIVATE_BOOKMARK_MANAGER_
PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_BOOKMARK_MANAGER_PRIVATE_BOOKMARK_MANAGER_
PRIVATE_API_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // events. This class has one instance per bookmark manager tab. | 95 // events. This class has one instance per bookmark manager tab. |
| 96 class BookmarkManagerPrivateDragEventRouter | 96 class BookmarkManagerPrivateDragEventRouter |
| 97 : public BookmarkTabHelper::BookmarkDrag, | 97 : public BookmarkTabHelper::BookmarkDrag, |
| 98 public content::WebContentsUserData< | 98 public content::WebContentsUserData< |
| 99 BookmarkManagerPrivateDragEventRouter> { | 99 BookmarkManagerPrivateDragEventRouter> { |
| 100 public: | 100 public: |
| 101 explicit BookmarkManagerPrivateDragEventRouter( | 101 explicit BookmarkManagerPrivateDragEventRouter( |
| 102 content::WebContents* web_contents); | 102 content::WebContents* web_contents); |
| 103 ~BookmarkManagerPrivateDragEventRouter() override; | 103 ~BookmarkManagerPrivateDragEventRouter() override; |
| 104 | 104 |
| 105 static void MaybeCreateForWebContents(content::WebContents* web_contents); | |
| 106 | |
| 107 // BookmarkTabHelper::BookmarkDrag interface | 105 // BookmarkTabHelper::BookmarkDrag interface |
| 108 void OnDragEnter(const bookmarks::BookmarkNodeData& data) override; | 106 void OnDragEnter(const bookmarks::BookmarkNodeData& data) override; |
| 109 void OnDragOver(const bookmarks::BookmarkNodeData& data) override; | 107 void OnDragOver(const bookmarks::BookmarkNodeData& data) override; |
| 110 void OnDragLeave(const bookmarks::BookmarkNodeData& data) override; | 108 void OnDragLeave(const bookmarks::BookmarkNodeData& data) override; |
| 111 void OnDrop(const bookmarks::BookmarkNodeData& data) override; | 109 void OnDrop(const bookmarks::BookmarkNodeData& data) override; |
| 112 | 110 |
| 113 // The bookmark drag and drop data. This gets set after a drop was done on | 111 // The bookmark drag and drop data. This gets set after a drop was done on |
| 114 // the page. This returns NULL if no data is available. | 112 // the page. This returns NULL if no data is available. |
| 115 const bookmarks::BookmarkNodeData* GetBookmarkNodeData(); | 113 const bookmarks::BookmarkNodeData* GetBookmarkNodeData(); |
| 116 | 114 |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 protected: | 404 protected: |
| 407 ~BookmarkManagerPrivateGetRedoInfoFunction() override {} | 405 ~BookmarkManagerPrivateGetRedoInfoFunction() override {} |
| 408 | 406 |
| 409 // ExtensionFunction: | 407 // ExtensionFunction: |
| 410 bool RunOnReady() override; | 408 bool RunOnReady() override; |
| 411 }; | 409 }; |
| 412 | 410 |
| 413 } // namespace extensions | 411 } // namespace extensions |
| 414 | 412 |
| 415 #endif // CHROME_BROWSER_EXTENSIONS_API_BOOKMARK_MANAGER_PRIVATE_BOOKMARK_MANAG
ER_PRIVATE_API_H_ | 413 #endif // CHROME_BROWSER_EXTENSIONS_API_BOOKMARK_MANAGER_PRIVATE_BOOKMARK_MANAG
ER_PRIVATE_API_H_ |
| OLD | NEW |