Lines Matching defs:TabStripModel

133 class TabStripModel::WebContentsData : public content::WebContentsObserver {
135 WebContentsData(TabStripModel* tab_strip_model, WebContents* a_contents);
169 // The TabStripModel containing this WebContents.
170 TabStripModel* tab_strip_model_;
207 TabStripModel::WebContentsData::WebContentsData(TabStripModel* tab_strip_model,
220 void TabStripModel::WebContentsData::SetWebContents(WebContents* contents) {
225 void TabStripModel::WebContentsData::WebContentsDestroyed() {
231 DCHECK_NE(TabStripModel::kNoTab, index);
236 // TabStripModel, public:
238 TabStripModel::TabStripModel(TabStripModelDelegate* delegate, Profile* profile)
248 TabStripModel::~TabStripModel() {
255 void TabStripModel::AddObserver(TabStripModelObserver* observer) {
259 void TabStripModel::RemoveObserver(TabStripModelObserver* observer) {
263 bool TabStripModel::ContainsIndex(int index) const {
267 void TabStripModel::AppendWebContents(WebContents* contents,
274 void TabStripModel::InsertWebContentsAt(int index,
338 WebContents* TabStripModel::ReplaceWebContentsAt(int index,
367 WebContents* TabStripModel::DiscardWebContentsAt(int index) {
391 WebContents* TabStripModel::DetachWebContentsAt(int index) {
445 void TabStripModel::ActivateTabAt(int index, bool user_gesture) {
453 void TabStripModel::AddTabAtToSelection(int index) {
461 void TabStripModel::MoveWebContentsAt(int index,
479 void TabStripModel::MoveSelectedTabsTo(int index) {
512 WebContents* TabStripModel::GetActiveWebContents() const {
516 WebContents* TabStripModel::GetWebContentsAt(int index) const {
522 int TabStripModel::GetIndexOfWebContents(const WebContents* contents) const {
530 void TabStripModel::UpdateWebContentsStateAt(int index,
538 void TabStripModel::CloseAllTabs() {
549 bool TabStripModel::CloseWebContentsAt(int index, uint32 close_types) {
556 bool TabStripModel::TabsAreLoading() const {
565 WebContents* TabStripModel::GetOpenerOfWebContentsAt(int index) {
570 void TabStripModel::SetOpenerOfWebContentsAt(int index,
577 int TabStripModel::GetIndexOfNextWebContentsOpenedBy(const WebContents* opener,
596 int TabStripModel::GetIndexOfLastWebContentsOpenedBy(const WebContents* opener,
608 void TabStripModel::TabNavigating(WebContents* contents,
630 void TabStripModel::ForgetAllOpeners() {
638 void TabStripModel::ForgetGroup(WebContents* contents) {
645 bool TabStripModel::ShouldResetGroupOnSelect(WebContents* contents) const {
651 void TabStripModel::SetTabBlocked(int index, bool blocked) {
662 void TabStripModel::SetTabPinned(int index, bool pinned) {
700 bool TabStripModel::IsTabPinned(int index) const {
705 bool TabStripModel::IsMiniTab(int index) const {
709 bool TabStripModel::IsAppTab(int index) const {
714 bool TabStripModel::IsTabBlocked(int index) const {
718 bool TabStripModel::IsTabDiscarded(int index) const {
722 int TabStripModel::IndexOfFirstNonMiniTab() const {
731 int TabStripModel::ConstrainInsertionIndex(int index, bool mini_tab) {
736 void TabStripModel::ExtendSelectionTo(int index) {
744 void TabStripModel::ToggleSelectionAt(int index) {
767 void TabStripModel::AddSelectionFromAnchorTo(int index) {
774 bool TabStripModel::IsTabSelected(int index) const {
779 void TabStripModel::SetSelectionFromModel(
785 void TabStripModel::AddWebContents(WebContents* contents,
845 void TabStripModel::CloseSelectedTabs() {
850 void TabStripModel::SelectNextTab() {
854 void TabStripModel::SelectPreviousTab() {
858 void TabStripModel::SelectLastTab() {
862 void TabStripModel::MoveTabNext() {
868 void TabStripModel::MoveTabPrevious() {
875 bool TabStripModel::IsContextMenuCommandEnabled(
946 void TabStripModel::ExecuteContextMenuCommand(
953 TabStripModel::NEW_TAB_CONTEXT_MENU,
954 TabStripModel::NEW_TAB_ENUM_COUNT);
1081 std::vector<int> TabStripModel::GetIndicesClosedByCommand(
1107 bool TabStripModel::WillContextMenuPin(int index) {
1119 bool TabStripModel::ContextMenuCommandToBrowserCommand(int cmd_id,
1149 // TabStripModel, private:
1151 std::vector<WebContents*> TabStripModel::GetWebContentsFromIndices(
1159 void TabStripModel::GetIndicesWithSameDomain(int index,
1172 void TabStripModel::GetIndicesWithSameOpener(int index,
1191 std::vector<int> TabStripModel::GetIndicesForCommand(int index) const {
1200 bool TabStripModel::IsNewTabAtEndOfTabStrip(WebContents* contents) const {
1208 bool TabStripModel::InternalCloseTabs(const std::vector<int>& indices,
1215 base::WeakPtr<TabStripModel> ref(weak_factory_.GetWeakPtr());
1282 void TabStripModel::InternalCloseTab(WebContents* contents,
1298 WebContents* TabStripModel::GetWebContentsAtImpl(int index) const {
1304 void TabStripModel::NotifyIfTabDeactivated(WebContents* contents) {
1311 void TabStripModel::NotifyIfActiveTabChanged(WebContents* old_contents,
1331 void TabStripModel::NotifyIfActiveOrSelectionChanged(
1343 void TabStripModel::SetSelection(
1355 void TabStripModel::SelectRelativeTab(bool next) {
1367 void TabStripModel::MoveWebContentsAtImpl(int index,
1386 void TabStripModel::MoveSelectedTabsToImpl(int index,
1423 bool TabStripModel::OpenerMatches(const WebContentsData* data,
1429 void TabStripModel::ForgetOpenersAndGroupsReferencing(