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

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

Issue 6913026: Compact Navigation prototype (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 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_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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 void SelectNextTab(); 404 void SelectNextTab();
405 void SelectPreviousTab(); 405 void SelectPreviousTab();
406 406
407 // Selects the last tab in the tab strip. 407 // Selects the last tab in the tab strip.
408 void SelectLastTab(); 408 void SelectLastTab();
409 409
410 // Swap adjacent tabs. 410 // Swap adjacent tabs.
411 void MoveTabNext(); 411 void MoveTabNext();
412 void MoveTabPrevious(); 412 void MoveTabPrevious();
413 413
414 // Notifies the observers that the active/foreground tab at |index| was
415 // reselected (ie - it was already active and was clicked again).
416 void TabReselected(int index);
417
414 // View API ////////////////////////////////////////////////////////////////// 418 // View API //////////////////////////////////////////////////////////////////
415 419
416 // Context menu functions. 420 // Context menu functions.
417 enum ContextMenuCommand { 421 enum ContextMenuCommand {
418 CommandFirst = 0, 422 CommandFirst = 0,
419 CommandNewTab, 423 CommandNewTab,
420 CommandReload, 424 CommandReload,
421 CommandDuplicate, 425 CommandDuplicate,
422 CommandCloseTab, 426 CommandCloseTab,
423 CommandCloseOtherTabs, 427 CommandCloseOtherTabs,
424 CommandCloseTabsToRight, 428 CommandCloseTabsToRight,
425 CommandRestoreTab, 429 CommandRestoreTab,
426 CommandTogglePinned, 430 CommandTogglePinned,
427 CommandBookmarkAllTabs, 431 CommandBookmarkAllTabs,
428 CommandUseVerticalTabs, 432 CommandUseVerticalTabs,
433 CommandUseCompactNavigationBar,
429 CommandSelectByDomain, 434 CommandSelectByDomain,
430 CommandSelectByOpener, 435 CommandSelectByOpener,
431 CommandLast 436 CommandLast
432 }; 437 };
433 438
434 // Returns true if the specified command is enabled. If |context_index| is 439 // Returns true if the specified command is enabled. If |context_index| is
435 // selected the response applies to all selected tabs. 440 // selected the response applies to all selected tabs.
436 bool IsContextMenuCommandEnabled(int context_index, 441 bool IsContextMenuCommandEnabled(int context_index,
437 ContextMenuCommand command_id) const; 442 ContextMenuCommand command_id) const;
438 443
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 634
630 // A scoped container for notification registries. 635 // A scoped container for notification registries.
631 NotificationRegistrar registrar_; 636 NotificationRegistrar registrar_;
632 637
633 TabStripSelectionModel selection_model_; 638 TabStripSelectionModel selection_model_;
634 639
635 DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel); 640 DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel);
636 }; 641 };
637 642
638 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ 643 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698