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

Side by Side Diff: webkit/api/src/DragClientImpl.h

Issue 341030: Moves webview_impl.cc, webframe_impl.cc and webframeloaderclient_impl.cc into... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « webkit/api/src/ContextMenuClientImpl.cpp ('k') | webkit/api/src/DragClientImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 23 matching lines...) Expand all
34 #include "DragClient.h" 34 #include "DragClient.h"
35 #include "DragActions.h" 35 #include "DragActions.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 class ClipBoard; 38 class ClipBoard;
39 class DragData; 39 class DragData;
40 class IntPoint; 40 class IntPoint;
41 class KURL; 41 class KURL;
42 } 42 }
43 43
44 namespace WebKit {
44 class WebViewImpl; 45 class WebViewImpl;
45 46
46 namespace WebKit {
47
48 class DragClientImpl : public WebCore::DragClient { 47 class DragClientImpl : public WebCore::DragClient {
49 public: 48 public:
50 DragClientImpl(WebViewImpl* webView) : m_webView(webView) { } 49 DragClientImpl(WebViewImpl* webView) : m_webView(webView) { }
51 50
52 virtual void willPerformDragDestinationAction( 51 virtual void willPerformDragDestinationAction(
53 WebCore::DragDestinationAction, WebCore::DragData*); 52 WebCore::DragDestinationAction, WebCore::DragData*);
54 virtual void willPerformDragSourceAction( 53 virtual void willPerformDragSourceAction(
55 WebCore::DragSourceAction, const WebCore::IntPoint&, WebCore::Clipboard*); 54 WebCore::DragSourceAction, const WebCore::IntPoint&, WebCore::Clipboard*);
56 virtual WebCore::DragDestinationAction actionMaskForDrag(WebCore::DragData*); 55 virtual WebCore::DragDestinationAction actionMaskForDrag(WebCore::DragData*);
57 virtual WebCore::DragSourceAction dragSourceActionMaskForPoint( 56 virtual WebCore::DragSourceAction dragSourceActionMaskForPoint(
58 const WebCore::IntPoint& windowPoint); 57 const WebCore::IntPoint& windowPoint);
59 virtual void startDrag( 58 virtual void startDrag(
60 WebCore::DragImageRef dragImage, 59 WebCore::DragImageRef dragImage,
61 const WebCore::IntPoint& dragImageOrigin, 60 const WebCore::IntPoint& dragImageOrigin,
62 const WebCore::IntPoint& eventPos, 61 const WebCore::IntPoint& eventPos,
63 WebCore::Clipboard* clipboard, 62 WebCore::Clipboard* clipboard,
64 WebCore::Frame* frame, 63 WebCore::Frame* frame,
65 bool isLinkDrag = false); 64 bool isLinkDrag = false);
66 virtual WebCore::DragImageRef createDragImageForLink( 65 virtual WebCore::DragImageRef createDragImageForLink(
67 WebCore::KURL&, const WebCore::String& label, WebCore::Frame*); 66 WebCore::KURL&, const WebCore::String& label, WebCore::Frame*);
68 virtual void dragControllerDestroyed(); 67 virtual void dragControllerDestroyed();
69 68
70 private: 69 private:
71 WebViewImpl* m_webView; 70 WebViewImpl* m_webView;
72 }; 71 };
73 72
74 } // namespace WebKit 73 } // namespace WebKit
75 74
76 #endif 75 #endif
OLDNEW
« no previous file with comments | « webkit/api/src/ContextMenuClientImpl.cpp ('k') | webkit/api/src/DragClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698