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

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

Issue 7033048: Multi-tab: Adding new Notification when tab selection changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing Created 9 years, 6 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_BASE_TAB_STRIP_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/ui/views/tabs/abstract_tab_strip_view.h" 12 #include "chrome/browser/ui/views/tabs/abstract_tab_strip_view.h"
13 #include "chrome/browser/ui/views/tabs/base_tab.h" 13 #include "chrome/browser/ui/views/tabs/base_tab.h"
14 #include "chrome/browser/ui/views/tabs/tab_controller.h" 14 #include "chrome/browser/ui/views/tabs/tab_controller.h"
15 #include "views/animation/bounds_animator.h" 15 #include "views/animation/bounds_animator.h"
16 #include "views/view.h" 16 #include "views/view.h"
17 17
18 class BaseTab; 18 class BaseTab;
19 class DraggedTabController; 19 class DraggedTabController;
20 class TabStripController; 20 class TabStripController;
21 class TabStripSelectionModel;
21 22
22 // Base class for the view tab strip implementations. 23 // Base class for the view tab strip implementations.
23 class BaseTabStrip : public AbstractTabStripView, 24 class BaseTabStrip : public AbstractTabStripView,
24 public TabController { 25 public TabController {
25 public: 26 public:
26 enum Type { 27 enum Type {
27 HORIZONTAL_TAB_STRIP, 28 HORIZONTAL_TAB_STRIP,
28 VERTICAL_TAB_STRIP 29 VERTICAL_TAB_STRIP
29 }; 30 };
30 31
(...skipping 24 matching lines...) Expand all
55 // (the user clicked the tab close button or middle clicked the tab). This is 56 // (the user clicked the tab close button or middle clicked the tab). This is
56 // invoked from Close. Because of unload handlers Close is not always 57 // invoked from Close. Because of unload handlers Close is not always
57 // immediately followed by RemoveTabAt. 58 // immediately followed by RemoveTabAt.
58 virtual void PrepareForCloseAt(int model_index) {} 59 virtual void PrepareForCloseAt(int model_index) {}
59 60
60 // Removes a tab at the specified index. 61 // Removes a tab at the specified index.
61 virtual void RemoveTabAt(int model_index) = 0; 62 virtual void RemoveTabAt(int model_index) = 0;
62 63
63 // Selects a tab at the specified index. |old_model_index| is the selected 64 // Selects a tab at the specified index. |old_model_index| is the selected
64 // index prior to the selection change. 65 // index prior to the selection change.
65 virtual void SelectTabAt(int old_model_index, int new_model_index) = 0; 66 virtual void SetSelection(const TabStripSelectionModel& old_selection,
67 const TabStripSelectionModel& new_selection) = 0;
66 68
67 // Moves a tab. 69 // Moves a tab.
68 virtual void MoveTab(int from_model_index, int to_model_index); 70 virtual void MoveTab(int from_model_index, int to_model_index);
69 71
70 // Invoked when the title of a tab changes and the tab isn't loading. 72 // Invoked when the title of a tab changes and the tab isn't loading.
71 virtual void TabTitleChangedNotLoading(int model_index) = 0; 73 virtual void TabTitleChangedNotLoading(int model_index) = 0;
72 74
73 // Sets the tab data at the specified model index. 75 // Sets the tab data at the specified model index.
74 virtual void SetTabData(int model_index, const TabRendererData& data); 76 virtual void SetTabData(int model_index, const TabRendererData& data);
75 77
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // model. 270 // model.
269 bool attaching_dragged_tab_; 271 bool attaching_dragged_tab_;
270 272
271 views::BoundsAnimator bounds_animator_; 273 views::BoundsAnimator bounds_animator_;
272 274
273 // Size we last layed out at. 275 // Size we last layed out at.
274 gfx::Size last_layout_size_; 276 gfx::Size last_layout_size_;
275 }; 277 };
276 278
277 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_ 279 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/tabs/browser_tab_strip_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698