diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-04 23:55:52 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-04 23:55:52 +0000 |
commit | 920562c8e9bb77cf2c6fa999eeec3a63cab07d7b (patch) | |
tree | baeb69cb6214bc8646b4f4e7e21b10cd70ad5139 /chrome/browser/cocoa/tab_strip_controller.h | |
parent | 5e4ec9729f5cf5b9cf8ccefad966337ee26b3170 (diff) | |
download | chromium_src-920562c8e9bb77cf2c6fa999eeec3a63cab07d7b.zip chromium_src-920562c8e9bb77cf2c6fa999eeec3a63cab07d7b.tar.gz chromium_src-920562c8e9bb77cf2c6fa999eeec3a63cab07d7b.tar.bz2 |
Mac: implement drag-and-drop of URLs to tabs/tab strip.
Not yet implemented: visual feedback, dropping multiple URLs/files, perhaps key modifiers (?).
Doing the visual feedback right (making the tabs move around, etc.) will require a fairly hefty work on the tabs code, so I'm splitting up the work.
BUG=25405
TEST=Test dragging and dropping URLs/links, files, plain text (with a possibly-poorly-formed URL), etc. on the tab and on the empty part of the tab strip; web page should load in tab or in new tab, and that tab should be selected.
Review URL: http://codereview.chromium.org/337055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33890 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/tab_strip_controller.h')
-rw-r--r-- | chrome/browser/cocoa/tab_strip_controller.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/tab_strip_controller.h b/chrome/browser/cocoa/tab_strip_controller.h index a3b4048..afc16e1 100644 --- a/chrome/browser/cocoa/tab_strip_controller.h +++ b/chrome/browser/cocoa/tab_strip_controller.h @@ -177,6 +177,13 @@ class ToolbarModel; // Default height for tabs. + (CGFloat)defaultTabHeight; +// Effectively an implementation of the |URLDropTargetWindowController| +// protocol, which the |BrowserWindowController| just reflects to us. This +// needed for dropping URLs on the tab strip. +- (void)dropURLs:(NSArray*)urls at:(NSPoint)location; +- (void)indicateDropURLsAt:(NSPoint)location; +- (void)hideDropURLsIndicator; + // Returns the (lazily created) window sheet controller of this window. Used // for the per-tab sheets. - (GTMWindowSheetController*)sheetController; |