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

Side by Side Diff: chrome/browser/renderer_host/render_view_host_delegate.h

Issue 1029004: GTK: implement extension bookmark manager drag api.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "chrome/common/content_settings_types.h" 13 #include "chrome/common/content_settings_types.h"
14 #include "chrome/common/view_types.h" 14 #include "chrome/common/view_types.h"
15 #include "net/base/load_states.h" 15 #include "net/base/load_states.h"
16 #include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h" 16 #include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h"
17 #include "webkit/glue/window_open_disposition.h" 17 #include "webkit/glue/window_open_disposition.h"
18 18
19 struct BookmarkDragData; 19 struct BookmarkDragData;
20 class BookmarkNode;
20 struct ContextMenuParams; 21 struct ContextMenuParams;
21 class FilePath; 22 class FilePath;
22 class GURL; 23 class GURL;
23 struct NativeWebKeyboardEvent; 24 struct NativeWebKeyboardEvent;
24 class NavigationEntry; 25 class NavigationEntry;
25 class OSExchangeData; 26 class OSExchangeData;
26 class Profile; 27 class Profile;
27 struct RendererPreferences; 28 struct RendererPreferences;
28 class RenderProcessHost; 29 class RenderProcessHost;
29 class RenderViewHost; 30 class RenderViewHost;
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 const webkit_glue::FormData& form, 415 const webkit_glue::FormData& form,
415 const string16& name, 416 const string16& name,
416 const string16& label) = 0; 417 const string16& label) = 0;
417 }; 418 };
418 419
419 // BookmarkDrag -------------------------------------------------------------- 420 // BookmarkDrag --------------------------------------------------------------
420 // Interface for forwarding bookmark drag and drop to extenstions. 421 // Interface for forwarding bookmark drag and drop to extenstions.
421 422
422 class BookmarkDrag { 423 class BookmarkDrag {
423 public: 424 public:
424 425 virtual void OnDragEnter(const BookmarkDragData& data) = 0;
425 #if defined(TOOLKIT_VIEWS) 426 virtual void OnDragOver(const BookmarkDragData& data) = 0;
426 typedef OSExchangeData DragData; 427 virtual void OnDragLeave(const BookmarkDragData& data) = 0;
427 #elif defined(OS_LINUX) 428 virtual void OnDrop(const BookmarkDragData& data) = 0;
428 // TODO(arv): GtkSelectionData?
429 class DragData {};
430 #else
431 // TODO(arv): NSDraggingInfo?
432 class DragData {};
433 #endif
434
435 virtual void OnDragEnter(const DragData* data) = 0;
436 virtual void OnDragOver(const DragData* data) = 0;
437 virtual void OnDragLeave(const DragData* data) = 0;
438 virtual void OnDrop(const DragData* data) = 0;
439 }; 429 };
440 430
441 // --------------------------------------------------------------------------- 431 // ---------------------------------------------------------------------------
442 432
443 // Returns the current delegate associated with a feature. May return NULL if 433 // Returns the current delegate associated with a feature. May return NULL if
444 // there is no corresponding delegate. 434 // there is no corresponding delegate.
445 virtual View* GetViewDelegate(); 435 virtual View* GetViewDelegate();
446 virtual RendererManagement* GetRendererManagementDelegate(); 436 virtual RendererManagement* GetRendererManagementDelegate();
447 virtual BrowserIntegration* GetBrowserIntegrationDelegate(); 437 virtual BrowserIntegration* GetBrowserIntegrationDelegate();
448 virtual Resource* GetResourceDelegate(); 438 virtual Resource* GetResourceDelegate();
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 virtual bool IsExternalTabContainer() const; 621 virtual bool IsExternalTabContainer() const;
632 622
633 // The RenderView has inserted one css file into page. 623 // The RenderView has inserted one css file into page.
634 virtual void DidInsertCSS() {} 624 virtual void DidInsertCSS() {}
635 625
636 // A different node in the page got focused. 626 // A different node in the page got focused.
637 virtual void FocusedNodeChanged() {} 627 virtual void FocusedNodeChanged() {}
638 }; 628 };
639 629
640 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 630 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/download_item_gtk.cc ('k') | chrome/browser/tab_contents/web_drag_dest_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698