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

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

Issue 596105: Bookmark Manager Drag and Drop backend.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 ContextMenuParams; 20 struct ContextMenuParams;
20 class FilePath; 21 class FilePath;
21 class GURL; 22 class GURL;
22 class Value; 23 class Value;
23 struct NativeWebKeyboardEvent; 24 struct NativeWebKeyboardEvent;
24 class NavigationEntry; 25 class NavigationEntry;
26 class OSExchangeData;
25 class Profile; 27 class Profile;
26 struct RendererPreferences; 28 struct RendererPreferences;
27 class RenderProcessHost; 29 class RenderProcessHost;
28 class RenderViewHost; 30 class RenderViewHost;
29 class ResourceRedirectDetails; 31 class ResourceRedirectDetails;
30 class ResourceRequestDetails; 32 class ResourceRequestDetails;
31 class SkBitmap; 33 class SkBitmap;
32 class TabContents; 34 class TabContents;
33 struct ThumbnailScore; 35 struct ThumbnailScore;
34 struct ViewHostMsg_DidPrintPage_Params; 36 struct ViewHostMsg_DidPrintPage_Params;
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 const std::vector<webkit_glue::FormFieldValues>& forms) = 0; 400 const std::vector<webkit_glue::FormFieldValues>& forms) = 0;
399 401
400 // Called to retrieve a list of AutoFill suggestions from the web database 402 // Called to retrieve a list of AutoFill suggestions from the web database
401 // given the name of the field and what the user has already typed in the 403 // given the name of the field and what the user has already typed in the
402 // field. Returns true to indicate that 404 // field. Returns true to indicate that
403 // RenderViewHost::AutoFillSuggestionsReturned has been called. 405 // RenderViewHost::AutoFillSuggestionsReturned has been called.
404 virtual bool GetAutoFillSuggestions( 406 virtual bool GetAutoFillSuggestions(
405 int query_id, const webkit_glue::FormField& field) = 0; 407 int query_id, const webkit_glue::FormField& field) = 0;
406 }; 408 };
407 409
410 // BookmarkDrag --------------------------------------------------------------
411 // Interface for forwarding bookmark drag and drop to extenstions.
412
413 class BookmarkDrag {
414 public:
415
416 #if defined(TOOLKIT_VIEWS)
417 typedef OSExchangeData DragData;
418 #elif defined(OS_LINUX)
419 // TODO(arv): GtkSelectionData?
420 class DragData {};
421 #else
422 // TODO(arv): NSDraggingInfo?
423 class DragData {};
424 #endif
425
426 virtual void OnDragEnter(const DragData* data) = 0;
427 virtual void OnDragOver(const DragData* data) = 0;
428 virtual void OnDragLeave(const DragData* data) = 0;
429 virtual void OnDrop(const DragData* data) = 0;
430 };
431
408 // --------------------------------------------------------------------------- 432 // ---------------------------------------------------------------------------
409 433
410 // Returns the current delegate associated with a feature. May return NULL if 434 // Returns the current delegate associated with a feature. May return NULL if
411 // there is no corresponding delegate. 435 // there is no corresponding delegate.
412 virtual View* GetViewDelegate(); 436 virtual View* GetViewDelegate();
413 virtual RendererManagement* GetRendererManagementDelegate(); 437 virtual RendererManagement* GetRendererManagementDelegate();
414 virtual BrowserIntegration* GetBrowserIntegrationDelegate(); 438 virtual BrowserIntegration* GetBrowserIntegrationDelegate();
415 virtual Resource* GetResourceDelegate(); 439 virtual Resource* GetResourceDelegate();
416 virtual Save* GetSaveDelegate(); 440 virtual Save* GetSaveDelegate();
417 virtual Printing* GetPrintingDelegate(); 441 virtual Printing* GetPrintingDelegate();
418 virtual FavIcon* GetFavIconDelegate(); 442 virtual FavIcon* GetFavIconDelegate();
419 virtual FormFieldHistory* GetFormFieldHistoryDelegate(); 443 virtual FormFieldHistory* GetFormFieldHistoryDelegate();
420 virtual AutoFill* GetAutoFillDelegate(); 444 virtual AutoFill* GetAutoFillDelegate();
445 virtual BookmarkDrag* GetBookmarkDragDelegate();
421 446
422 // Gets the URL that is currently being displayed, if there is one. 447 // Gets the URL that is currently being displayed, if there is one.
423 virtual const GURL& GetURL() const; 448 virtual const GURL& GetURL() const;
424 449
425 // Return this object cast to a TabContents, if it is one. If the object is 450 // Return this object cast to a TabContents, if it is one. If the object is
426 // not a TabContents, returns NULL. 451 // not a TabContents, returns NULL.
427 virtual TabContents* GetAsTabContents(); 452 virtual TabContents* GetAsTabContents();
428 453
429 // Return id number of browser window which this object is attached to. If no 454 // Return id number of browser window which this object is attached to. If no
430 // browser window is attached to, just return -1. 455 // browser window is attached to, just return -1.
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 virtual bool IsExternalTabContainer() const; 622 virtual bool IsExternalTabContainer() const;
598 623
599 // The RenderView has inserted one css file into page. 624 // The RenderView has inserted one css file into page.
600 virtual void DidInsertCSS() {} 625 virtual void DidInsertCSS() {}
601 626
602 // A different node in the page got focused. 627 // A different node in the page got focused.
603 virtual void FocusedNodeChanged() {} 628 virtual void FocusedNodeChanged() {}
604 }; 629 };
605 630
606 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 631 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698