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

Side by Side Diff: chrome/browser/tabs/tab_strip_model.h

Issue 6693054: Get rid of extensions dependency from content\browser. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
« no previous file with comments | « chrome/browser/tabs/pinned_tab_codec.cc ('k') | chrome/browser/tabs/tab_strip_model.cc » ('j') | 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) 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_TABS_TAB_STRIP_MODEL_H_ 5 #ifndef CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_
6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ 6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 23 matching lines...) Expand all
34 // Each tab may be any one of the following states: 34 // Each tab may be any one of the following states:
35 // . Mini-tab. Mini tabs are locked to the left side of the tab strip and 35 // . Mini-tab. Mini tabs are locked to the left side of the tab strip and
36 // rendered differently (small tabs with only a favicon). The model makes 36 // rendered differently (small tabs with only a favicon). The model makes
37 // sure all mini-tabs are at the beginning of the tab strip. For example, 37 // sure all mini-tabs are at the beginning of the tab strip. For example,
38 // if a non-mini tab is added it is forced to be with non-mini tabs. Requests 38 // if a non-mini tab is added it is forced to be with non-mini tabs. Requests
39 // to move tabs outside the range of the tab type are ignored. For example, 39 // to move tabs outside the range of the tab type are ignored. For example,
40 // a request to move a mini-tab after non-mini-tabs is ignored. 40 // a request to move a mini-tab after non-mini-tabs is ignored.
41 // You'll notice there is no explcit api for making a tab a mini-tab, rather 41 // You'll notice there is no explcit api for making a tab a mini-tab, rather
42 // there are two tab types that are implicitly mini-tabs: 42 // there are two tab types that are implicitly mini-tabs:
43 // . App. Corresponds to an extension that wants an app tab. App tabs are 43 // . App. Corresponds to an extension that wants an app tab. App tabs are
44 // identified by TabContents::is_app(). App tabs are always pinneded (you 44 // identified by TabContentsWrapper::extension_tab_helper()::is_app().
45 // can't unpin them). 45 // App tabs are always pinneded (you can't unpin them).
46 // . Pinned. Any tab can be pinned. Non-app tabs whose pinned state is changed 46 // . Pinned. Any tab can be pinned. Non-app tabs whose pinned state is changed
47 // are moved to be with other mini-tabs or non-mini tabs. 47 // are moved to be with other mini-tabs or non-mini tabs.
48 // 48 //
49 // A TabStripModel has one delegate that it relies on to perform certain tasks 49 // A TabStripModel has one delegate that it relies on to perform certain tasks
50 // like creating new TabStripModels (probably hosted in Browser windows) when 50 // like creating new TabStripModels (probably hosted in Browser windows) when
51 // required. See TabStripDelegate above for more information. 51 // required. See TabStripDelegate above for more information.
52 // 52 //
53 // A TabStripModel also has N observers (see TabStripModelObserver above), 53 // A TabStripModel also has N observers (see TabStripModelObserver above),
54 // which can be registered via Add/RemoveObserver. An Observer is notified of 54 // which can be registered via Add/RemoveObserver. An Observer is notified of
55 // tab creations, removals, moves, and other interesting events. The 55 // tab creations, removals, moves, and other interesting events. The
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 631
632 // A scoped container for notification registries. 632 // A scoped container for notification registries.
633 NotificationRegistrar registrar_; 633 NotificationRegistrar registrar_;
634 634
635 TabStripSelectionModel selection_model_; 635 TabStripSelectionModel selection_model_;
636 636
637 DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel); 637 DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel);
638 }; 638 };
639 639
640 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ 640 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/tabs/pinned_tab_codec.cc ('k') | chrome/browser/tabs/tab_strip_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698