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

Unified Diff: chrome/browser/tab_contents/tab_contents_view_mac.h

Issue 160083: Enable dragging of images to desktop (Finder), Preview, etc. (on Mac).... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/cocoa/web_drag_source.mm ('k') | chrome/browser/tab_contents/tab_contents_view_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents_view_mac.h
===================================================================
--- chrome/browser/tab_contents/tab_contents_view_mac.h (revision 21834)
+++ chrome/browser/tab_contents/tab_contents_view_mac.h (working copy)
@@ -7,6 +7,8 @@
#import <Cocoa/Cocoa.h>
+#include <string>
+
#include "base/gfx/size.h"
#include "base/scoped_ptr.h"
#include "base/scoped_nsobject.h"
@@ -14,16 +16,22 @@
#include "chrome/browser/tab_contents/tab_contents_view.h"
#include "chrome/common/notification_registrar.h"
+class FilePath;
class FindBarMac;
@class SadTabView;
class TabContentsViewMac;
+@class WebDragSource;
@class WebDropTarget;
@interface TabContentsViewCocoa : BaseView {
@private
TabContentsViewMac* tabContentsView_; // WEAK; owns us
+ scoped_nsobject<WebDragSource> dragSource_;
scoped_nsobject<WebDropTarget> dropTarget_;
}
+
+// Expose this, since sometimes one needs both the NSView and the TabContents.
+- (TabContents*)tabContents;
@end
// Mac-specific implementation of the TabContentsView. It owns an NSView that
@@ -35,7 +43,6 @@
// lifetime. This doesn't need to be the case, but is this way currently
// because that's what was easiest when they were split.
explicit TabContentsViewMac(TabContents* web_contents);
- virtual ~TabContentsViewMac();
// TabContentsView implementation --------------------------------------------
@@ -75,10 +82,6 @@
const NotificationDetails& details);
private:
- // Returns a drag pasteboard filled with the appropriate data. The types are
- // populated in decending order of richness.
- NSPasteboard* FillDragData(const WebDropData& drop_data);
-
// The Cocoa NSView that lives in the view hierarchy.
scoped_nsobject<TabContentsViewCocoa> cocoa_view_;
« no previous file with comments | « chrome/browser/cocoa/web_drag_source.mm ('k') | chrome/browser/tab_contents/tab_contents_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698