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

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

Issue 2976008: Bar (Closed)
Patch Set: rebase 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 | « chrome/app/nibs/MainMenu.xib ('k') | chrome/browser/cocoa/bookmark_bar_controller.h » ('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 #include "chrome/browser/browser.h" 5 #include "chrome/browser/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <shellapi.h> 8 #include <shellapi.h>
9 #include <windows.h> 9 #include <windows.h>
10 #endif // OS_WIN 10 #endif // OS_WIN
(...skipping 3201 matching lines...) Expand 10 before | Expand all | Expand 10 after
3212 command_updater_.UpdateCommandEnabled(IDC_MOVE_TAB_PREVIOUS, normal_window); 3212 command_updater_.UpdateCommandEnabled(IDC_MOVE_TAB_PREVIOUS, normal_window);
3213 command_updater_.UpdateCommandEnabled(IDC_SELECT_TAB_0, normal_window); 3213 command_updater_.UpdateCommandEnabled(IDC_SELECT_TAB_0, normal_window);
3214 command_updater_.UpdateCommandEnabled(IDC_SELECT_TAB_1, normal_window); 3214 command_updater_.UpdateCommandEnabled(IDC_SELECT_TAB_1, normal_window);
3215 command_updater_.UpdateCommandEnabled(IDC_SELECT_TAB_2, normal_window); 3215 command_updater_.UpdateCommandEnabled(IDC_SELECT_TAB_2, normal_window);
3216 command_updater_.UpdateCommandEnabled(IDC_SELECT_TAB_3, normal_window); 3216 command_updater_.UpdateCommandEnabled(IDC_SELECT_TAB_3, normal_window);
3217 command_updater_.UpdateCommandEnabled(IDC_SELECT_TAB_4, normal_window); 3217 command_updater_.UpdateCommandEnabled(IDC_SELECT_TAB_4, normal_window);
3218 command_updater_.UpdateCommandEnabled(IDC_SELECT_TAB_5, normal_window); 3218 command_updater_.UpdateCommandEnabled(IDC_SELECT_TAB_5, normal_window);
3219 command_updater_.UpdateCommandEnabled(IDC_SELECT_TAB_6, normal_window); 3219 command_updater_.UpdateCommandEnabled(IDC_SELECT_TAB_6, normal_window);
3220 command_updater_.UpdateCommandEnabled(IDC_SELECT_TAB_7, normal_window); 3220 command_updater_.UpdateCommandEnabled(IDC_SELECT_TAB_7, normal_window);
3221 command_updater_.UpdateCommandEnabled(IDC_SELECT_LAST_TAB, normal_window); 3221 command_updater_.UpdateCommandEnabled(IDC_SELECT_LAST_TAB, normal_window);
3222 command_updater_.UpdateCommandEnabled(IDC_TABPOSE, normal_window);
3222 3223
3223 // Page-related commands 3224 // Page-related commands
3224 command_updater_.UpdateCommandEnabled(IDC_BOOKMARK_PAGE, normal_window); 3225 command_updater_.UpdateCommandEnabled(IDC_BOOKMARK_PAGE, normal_window);
3225 3226
3226 // Clipboard commands 3227 // Clipboard commands
3227 command_updater_.UpdateCommandEnabled(IDC_COPY_URL, non_devtools_window); 3228 command_updater_.UpdateCommandEnabled(IDC_COPY_URL, non_devtools_window);
3228 3229
3229 // Find-in-page 3230 // Find-in-page
3230 command_updater_.UpdateCommandEnabled(IDC_FIND, non_devtools_window); 3231 command_updater_.UpdateCommandEnabled(IDC_FIND, non_devtools_window);
3231 command_updater_.UpdateCommandEnabled(IDC_FIND_NEXT, non_devtools_window); 3232 command_updater_.UpdateCommandEnabled(IDC_FIND_NEXT, non_devtools_window);
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
4044 } 4045 }
4045 4046
4046 bool Browser::IsPinned(TabContents* source) { 4047 bool Browser::IsPinned(TabContents* source) {
4047 int index = tabstrip_model_.GetIndexOfTabContents(source); 4048 int index = tabstrip_model_.GetIndexOfTabContents(source);
4048 if (index == TabStripModel::kNoTab) { 4049 if (index == TabStripModel::kNoTab) {
4049 NOTREACHED() << "IsPinned called for tab not in our strip"; 4050 NOTREACHED() << "IsPinned called for tab not in our strip";
4050 return false; 4051 return false;
4051 } 4052 }
4052 return tabstrip_model_.IsTabPinned(index); 4053 return tabstrip_model_.IsTabPinned(index);
4053 } 4054 }
OLDNEW
« no previous file with comments | « chrome/app/nibs/MainMenu.xib ('k') | chrome/browser/cocoa/bookmark_bar_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698