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

Side by Side Diff: Source/WebKit/chromium/src/DragClientImpl.h

Issue 16715002: Refactor WebCore::DragImage. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: merge upstream changes, some changes per jamesr Created 7 years, 6 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
« no previous file with comments | « no previous file | Source/WebKit/chromium/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 19 matching lines...) Expand all
30 30
31 #ifndef DragClientImpl_h 31 #ifndef DragClientImpl_h
32 #define DragClientImpl_h 32 #define DragClientImpl_h
33 33
34 #include "core/page/DragActions.h" 34 #include "core/page/DragActions.h"
35 #include "core/page/DragClient.h" 35 #include "core/page/DragClient.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 class ClipBoard; 38 class ClipBoard;
39 class DragData; 39 class DragData;
40 class DragImage;
40 class IntPoint; 41 class IntPoint;
41 class KURL; 42 class KURL;
42 } 43 }
43 44
44 namespace WebKit { 45 namespace WebKit {
45 class WebViewImpl; 46 class WebViewImpl;
46 47
47 class DragClientImpl : public WebCore::DragClient { 48 class DragClientImpl : public WebCore::DragClient {
48 public: 49 public:
49 DragClientImpl(WebViewImpl* webView) : m_webView(webView) { } 50 DragClientImpl(WebViewImpl* webView) : m_webView(webView) { }
50 51
51 virtual WebCore::DragDestinationAction actionMaskForDrag(WebCore::DragData*) ; 52 virtual WebCore::DragDestinationAction actionMaskForDrag(WebCore::DragData*) ;
52 virtual void startDrag( 53 virtual void startDrag(
53 WebCore::DragImageRef dragImage, 54 WebCore::DragImage*,
54 const WebCore::IntPoint& dragImageOrigin, 55 const WebCore::IntPoint& dragImageOrigin,
55 const WebCore::IntPoint& eventPos, 56 const WebCore::IntPoint& eventPos,
56 WebCore::Clipboard* clipboard, 57 WebCore::Clipboard* clipboard,
57 WebCore::Frame* frame, 58 WebCore::Frame* frame,
58 bool isLinkDrag = false); 59 bool isLinkDrag = false);
59 60
60 private: 61 private:
61 WebViewImpl* m_webView; 62 WebViewImpl* m_webView;
62 }; 63 };
63 64
64 } // namespace WebKit 65 } // namespace WebKit
65 66
66 #endif 67 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/WebKit/chromium/src/DragClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698