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

Side by Side Diff: chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.h

Issue 2509323003: [Extensions] Fix bookmark drag-and-drop bug (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698