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

Unified Diff: chrome/browser/ui/cocoa/web_contents_drag_source.h

Issue 6358008: [Mac] Organize some files into chrome/browser/ui/cocoa/tab_contents/.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
Index: chrome/browser/ui/cocoa/web_contents_drag_source.h
===================================================================
--- chrome/browser/ui/cocoa/web_contents_drag_source.h (revision 71953)
+++ chrome/browser/ui/cocoa/web_contents_drag_source.h (working copy)
@@ -1,62 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_COCOA_WEB_CONTENTS_DRAG_SOURCE_H_
-#define CHROME_BROWSER_UI_COCOA_WEB_CONTENTS_DRAG_SOURCE_H_
-#pragma once
-
-#import <Cocoa/Cocoa.h>
-
-#include "base/scoped_nsobject.h"
-#include "chrome/browser/bookmarks/bookmark_node_data.h"
-
-@class TabContentsViewCocoa;
-
-// A class that handles tracking and event processing for a drag and drop
-// originating from the content area. Subclasses should implement
-// fillClipboard and dragImage.
-@interface WebContentsDragSource : NSObject {
- @private
- // Our tab. Weak reference (owns or co-owns us).
- TabContentsViewCocoa* contentsView_;
-
- // Our pasteboard.
- scoped_nsobject<NSPasteboard> pasteboard_;
-
- // A mask of the allowed drag operations.
- NSDragOperation dragOperationMask_;
-}
-
-// Initialize a DragDataSource object for a drag (originating on the given
-// contentsView and with the given dropData and pboard). Fill the pasteboard
-// with data types appropriate for dropData.
-- (id)initWithContentsView:(TabContentsViewCocoa*)contentsView
- pasteboard:(NSPasteboard*)pboard
- dragOperationMask:(NSDragOperation)dragOperationMask;
-
-// Creates the drag image. Implemented by the subclass.
-- (NSImage*)dragImage;
-
-// Put the data being dragged onto the pasteboard. Implemented by the
-// subclass.
-- (void)fillPasteboard;
-
-// Returns a mask of the allowed drag operations.
-- (NSDragOperation)draggingSourceOperationMaskForLocal:(BOOL)isLocal;
-
-// Start the drag (on the originally provided contentsView); can do this right
-// after -initWithContentsView:....
-- (void)startDrag;
-
-// End the drag and clear the pasteboard; hook up to
-// -draggedImage:endedAt:operation:.
-- (void)endDragAt:(NSPoint)screenPoint
- operation:(NSDragOperation)operation;
-
-// Drag moved; hook up to -draggedImage:movedTo:.
-- (void)moveDragTo:(NSPoint)screenPoint;
-
-@end
-
-#endif // CHROME_BROWSER_UI_COCOA_WEB_CONTENTS_DRAG_SOURCE_H_

Powered by Google App Engine
This is Rietveld 408576698