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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_strip_controller.h

Issue 68133020: Fix dragging supported files to tab strip. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved logic to BrowserTabStripController Created 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "chrome/browser/ui/views/tabs/tab_strip_types.h" 9 #include "chrome/browser/ui/views/tabs/tab_strip_types.h"
10 #include "ui/base/ui_base_types.h" 10 #include "ui/base/ui_base_types.h"
11 11
12 class GURL; 12 class GURL;
13 class Tab; 13 class Tab;
14 class TabStrip; 14 class TabStrip;
15 15
16 namespace gfx { 16 namespace gfx {
17 class Point; 17 class Point;
18 } 18 }
19 19
20 namespace ui { 20 namespace ui {
21 class ListSelectionModel; 21 class ListSelectionModel;
22 } 22 }
23 23
24 class Profile;
asanka 2013/11/25 22:35:05 Nit: unneeded?
michaelpg 2013/11/25 23:02:35 right, thanks!
25
24 // Model/Controller for the TabStrip. 26 // Model/Controller for the TabStrip.
25 // NOTE: All indices used by this class are in model coordinates. 27 // NOTE: All indices used by this class are in model coordinates.
26 class TabStripController { 28 class TabStripController {
27 public: 29 public:
28 virtual ~TabStripController() {} 30 virtual ~TabStripController() {}
29 31
30 // Returns the selection model of the tabstrip. 32 // Returns the selection model of the tabstrip.
31 virtual const ui::ListSelectionModel& GetSelectionModel() = 0; 33 virtual const ui::ListSelectionModel& GetSelectionModel() = 0;
32 34
33 // Returns the number of tabs in the model. 35 // Returns the number of tabs in the model.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // Invoked if the layout type might have changed. 107 // Invoked if the layout type might have changed.
106 virtual void LayoutTypeMaybeChanged() = 0; 108 virtual void LayoutTypeMaybeChanged() = 0;
107 109
108 // Notifies controller that the user started dragging this tabstrip's tabs. 110 // Notifies controller that the user started dragging this tabstrip's tabs.
109 virtual void OnStartedDraggingTabs() = 0; 111 virtual void OnStartedDraggingTabs() = 0;
110 112
111 // Notifies controller that the user stopped dragging this tabstrip's tabs. 113 // Notifies controller that the user stopped dragging this tabstrip's tabs.
112 // This is also called when the tabs that the user is dragging were detached 114 // This is also called when the tabs that the user is dragging were detached
113 // from this tabstrip but the user is still dragging the tabs. 115 // from this tabstrip but the user is still dragging the tabs.
114 virtual void OnStoppedDraggingTabs() = 0; 116 virtual void OnStoppedDraggingTabs() = 0;
117
118 // Determines whether the file specified by the URL is supported. Should
119 // invoke TabStrip::FileSupported to report the result.
120 virtual void CheckFileSupported(GURL url) = 0;
115 }; 121 };
116 122
117 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ 123 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698