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

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

Issue 6913026: Compact Navigation prototype (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Clang build fix. After commit/revert. Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 class BaseTab; 9 class BaseTab;
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Ends dragging a Tab. |canceled| is true if the drag was aborted in a way 58 // Ends dragging a Tab. |canceled| is true if the drag was aborted in a way
59 // other than the user releasing the mouse. Returns whether the tab has been 59 // other than the user releasing the mouse. Returns whether the tab has been
60 // destroyed. 60 // destroyed.
61 virtual bool EndDrag(bool canceled) = 0; 61 virtual bool EndDrag(bool canceled) = 0;
62 62
63 // Returns the tab that contains the specified coordinates, in terms of |tab|, 63 // Returns the tab that contains the specified coordinates, in terms of |tab|,
64 // or NULL if there is no tab that contains the specified point. 64 // or NULL if there is no tab that contains the specified point.
65 virtual BaseTab* GetTabAt(BaseTab* tab, 65 virtual BaseTab* GetTabAt(BaseTab* tab,
66 const gfx::Point& tab_in_tab_coordinates) = 0; 66 const gfx::Point& tab_in_tab_coordinates) = 0;
67 67
68 // Informs that an active tab is selected when already active (ie - clicked
69 // when already active/foreground).
70 virtual void ClickActiveTab(const BaseTab* tab) const = 0;
71
68 protected: 72 protected:
69 virtual ~TabController() {} 73 virtual ~TabController() {}
70 }; 74 };
71 75
72 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ 76 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc ('k') | chrome/browser/ui/views/tabs/tab_strip_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698