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

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

Issue 15896023: Makes TabStripModel deal handle the case of the TabStripModel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate Avi's feedback Created 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/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) 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_TABS_TAB_STRIP_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_
6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_ 6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 452
453 private: 453 private:
454 // Used when making selection notifications. 454 // Used when making selection notifications.
455 enum NotifyTypes { 455 enum NotifyTypes {
456 NOTIFY_DEFAULT, 456 NOTIFY_DEFAULT,
457 457
458 // The selection is changing from a user gesture. 458 // The selection is changing from a user gesture.
459 NOTIFY_USER_GESTURE, 459 NOTIFY_USER_GESTURE,
460 }; 460 };
461 461
462 // Convenience for converting a vector of indices into a vector of
463 // WebContents.
464 std::vector<content::WebContents*> GetWebContentsFromIndices(
465 const std::vector<int>& indices) const;
466
462 // Gets the set of tab indices whose domain matches the tab at |index|. 467 // Gets the set of tab indices whose domain matches the tab at |index|.
463 void GetIndicesWithSameDomain(int index, std::vector<int>* indices); 468 void GetIndicesWithSameDomain(int index, std::vector<int>* indices);
464 469
465 // Gets the set of tab indices that have the same opener as the tab at 470 // Gets the set of tab indices that have the same opener as the tab at
466 // |index|. 471 // |index|.
467 void GetIndicesWithSameOpener(int index, std::vector<int>* indices); 472 void GetIndicesWithSameOpener(int index, std::vector<int>* indices);
468 473
469 // If |index| is selected all the selected indices are returned, otherwise a 474 // If |index| is selected all the selected indices are returned, otherwise a
470 // vector with |index| is returned. This is used when executing commands to 475 // vector with |index| is returned. This is used when executing commands to
471 // determine which indices the command applies to. 476 // determine which indices the command applies to.
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 639
635 // A scoped container for notification registries. 640 // A scoped container for notification registries.
636 content::NotificationRegistrar registrar_; 641 content::NotificationRegistrar registrar_;
637 642
638 ui::ListSelectionModel selection_model_; 643 ui::ListSelectionModel selection_model_;
639 644
640 DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel); 645 DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel);
641 }; 646 };
642 647
643 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_ 648 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/tabs/tab_strip_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698