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

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

Issue 3034021: Use check item for side tab menu. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: " Created 10 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/browser.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_BROWSER_H_ 5 #ifndef CHROME_BROWSER_BROWSER_H_
6 #define CHROME_BROWSER_BROWSER_H_ 6 #define CHROME_BROWSER_BROWSER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 void OpenThemeGalleryTabAndActivate(); 525 void OpenThemeGalleryTabAndActivate();
526 void OpenAutoFillHelpTabAndActivate(); 526 void OpenAutoFillHelpTabAndActivate();
527 void OpenPrivacyDashboardTabAndActivate(); 527 void OpenPrivacyDashboardTabAndActivate();
528 #if defined(OS_CHROMEOS) 528 #if defined(OS_CHROMEOS)
529 void OpenSystemOptionsDialog(); 529 void OpenSystemOptionsDialog();
530 void OpenInternetOptionsDialog(); 530 void OpenInternetOptionsDialog();
531 #endif 531 #endif
532 532
533 virtual void UpdateDownloadShelfVisibility(bool visible); 533 virtual void UpdateDownloadShelfVisibility(bool visible);
534 534
535 // Overridden from TabStripModelDelegate:
536 virtual bool UseVerticalTabs() const;
537
535 ///////////////////////////////////////////////////////////////////////////// 538 /////////////////////////////////////////////////////////////////////////////
536 539
537 // Sets the value of homepage related prefs to new values. Since we do not 540 // Sets the value of homepage related prefs to new values. Since we do not
538 // want to change these values for existing users, we can not change the 541 // want to change these values for existing users, we can not change the
539 // default values under RegisterUserPrefs. Also if user already has an 542 // default values under RegisterUserPrefs. Also if user already has an
540 // existing profile we do not want to override those preferences so we only 543 // existing profile we do not want to override those preferences so we only
541 // set new values if they have not been set already. This method gets called 544 // set new values if they have not been set already. This method gets called
542 // during First Run. 545 // during First Run.
543 static void SetNewHomePagePrefs(PrefService* prefs); 546 static void SetNewHomePagePrefs(PrefService* prefs);
544 547
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 SiteInstance* instance) const; 643 SiteInstance* instance) const;
641 virtual bool CanDuplicateContentsAt(int index); 644 virtual bool CanDuplicateContentsAt(int index);
642 virtual void DuplicateContentsAt(int index); 645 virtual void DuplicateContentsAt(int index);
643 virtual void CloseFrameAfterDragSession(); 646 virtual void CloseFrameAfterDragSession();
644 virtual void CreateHistoricalTab(TabContents* contents); 647 virtual void CreateHistoricalTab(TabContents* contents);
645 virtual bool RunUnloadListenerBeforeClosing(TabContents* contents); 648 virtual bool RunUnloadListenerBeforeClosing(TabContents* contents);
646 virtual bool CanCloseContentsAt(int index); 649 virtual bool CanCloseContentsAt(int index);
647 virtual bool CanBookmarkAllTabs() const; 650 virtual bool CanBookmarkAllTabs() const;
648 virtual void BookmarkAllTabs(); 651 virtual void BookmarkAllTabs();
649 virtual bool CanCloseTab() const; 652 virtual bool CanCloseTab() const;
650 virtual bool UseVerticalTabs() const;
651 virtual void ToggleUseVerticalTabs(); 653 virtual void ToggleUseVerticalTabs();
652 virtual bool CanRestoreTab(); 654 virtual bool CanRestoreTab();
653 virtual void RestoreTab(); 655 virtual void RestoreTab();
654 virtual void SetToolbarVisibility(bool visible); 656 virtual void SetToolbarVisibility(bool visible);
655 657
656 // Overridden from TabStripModelObserver: 658 // Overridden from TabStripModelObserver:
657 virtual void TabInsertedAt(TabContents* contents, 659 virtual void TabInsertedAt(TabContents* contents,
658 int index, 660 int index,
659 bool foreground); 661 bool foreground);
660 virtual void TabClosingAt(TabContents* contents, int index); 662 virtual void TabClosingAt(TabContents* contents, int index);
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 mutable BooleanPrefMember use_vertical_tabs_; 1063 mutable BooleanPrefMember use_vertical_tabs_;
1062 1064
1063 // The profile's tab restore service. The service is owned by the profile, 1065 // The profile's tab restore service. The service is owned by the profile,
1064 // and we install ourselves as an observer. 1066 // and we install ourselves as an observer.
1065 TabRestoreService* tab_restore_service_; 1067 TabRestoreService* tab_restore_service_;
1066 1068
1067 DISALLOW_COPY_AND_ASSIGN(Browser); 1069 DISALLOW_COPY_AND_ASSIGN(Browser);
1068 }; 1070 };
1069 1071
1070 #endif // CHROME_BROWSER_BROWSER_H_ 1072 #endif // CHROME_BROWSER_BROWSER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698