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

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

Issue 74133003: linux-aura: Restore middle-click on new-tab button behaviour. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-nit 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
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/ui/views/tabs/tab_strip_types.h" 9 #include "chrome/browser/ui/views/tabs/tab_strip_types.h"
9 #include "ui/base/ui_base_types.h" 10 #include "ui/base/ui_base_types.h"
10 11
11 class GURL; 12 class GURL;
12 class Tab; 13 class Tab;
13 class TabStrip; 14 class TabStrip;
14 15
15 namespace gfx { 16 namespace gfx {
16 class Point; 17 class Point;
17 } 18 }
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Performs a drop at the specified location. 87 // Performs a drop at the specified location.
87 virtual void PerformDrop(bool drop_before, int index, const GURL& url) = 0; 88 virtual void PerformDrop(bool drop_before, int index, const GURL& url) = 0;
88 89
89 // Return true if this tab strip is compatible with the provided tab strip. 90 // Return true if this tab strip is compatible with the provided tab strip.
90 // Compatible tab strips can transfer tabs during drag and drop. 91 // Compatible tab strips can transfer tabs during drag and drop.
91 virtual bool IsCompatibleWith(TabStrip* other) const = 0; 92 virtual bool IsCompatibleWith(TabStrip* other) const = 0;
92 93
93 // Creates the new tab. 94 // Creates the new tab.
94 virtual void CreateNewTab() = 0; 95 virtual void CreateNewTab() = 0;
95 96
97 // Creates a new tab, and loads |location| in the tab. If |location| is a
98 // valid URL, then simply loads the URL, otherwise this can open a
99 // search-result page for |location|.
100 virtual void CreateNewTabWithLocation(const base::string16& location) = 0;
101
96 // Returns true if the tab strip is in an incognito window. 102 // Returns true if the tab strip is in an incognito window.
97 virtual bool IsIncognito() = 0; 103 virtual bool IsIncognito() = 0;
98 104
99 // Invoked if the layout type might have changed. 105 // Invoked if the layout type might have changed.
100 virtual void LayoutTypeMaybeChanged() = 0; 106 virtual void LayoutTypeMaybeChanged() = 0;
101 107
102 // Notifies controller that the user started dragging this tabstrip's tabs. 108 // Notifies controller that the user started dragging this tabstrip's tabs.
103 virtual void OnStartedDraggingTabs() = 0; 109 virtual void OnStartedDraggingTabs() = 0;
104 110
105 // Notifies controller that the user stopped dragging this tabstrip's tabs. 111 // Notifies controller that the user stopped dragging this tabstrip's tabs.
106 // This is also called when the tabs that the user is dragging were detached 112 // This is also called when the tabs that the user is dragging were detached
107 // from this tabstrip but the user is still dragging the tabs. 113 // from this tabstrip but the user is still dragging the tabs.
108 virtual void OnStoppedDraggingTabs() = 0; 114 virtual void OnStoppedDraggingTabs() = 0;
109 }; 115 };
110 116
111 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ 117 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698