| OLD | NEW |
| 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 #include "chrome/browser/ui/browser_command_controller.h" | 5 #include "chrome/browser/ui/browser_command_controller.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 command_updater_.UpdateCommandEnabled(IDC_RELOAD, true); | 794 command_updater_.UpdateCommandEnabled(IDC_RELOAD, true); |
| 795 command_updater_.UpdateCommandEnabled(IDC_RELOAD_IGNORING_CACHE, true); | 795 command_updater_.UpdateCommandEnabled(IDC_RELOAD_IGNORING_CACHE, true); |
| 796 command_updater_.UpdateCommandEnabled(IDC_RELOAD_CLEARING_CACHE, true); | 796 command_updater_.UpdateCommandEnabled(IDC_RELOAD_CLEARING_CACHE, true); |
| 797 | 797 |
| 798 // Window management commands | 798 // Window management commands |
| 799 command_updater_.UpdateCommandEnabled(IDC_CLOSE_WINDOW, true); | 799 command_updater_.UpdateCommandEnabled(IDC_CLOSE_WINDOW, true); |
| 800 command_updater_.UpdateCommandEnabled(IDC_NEW_TAB, true); | 800 command_updater_.UpdateCommandEnabled(IDC_NEW_TAB, true); |
| 801 command_updater_.UpdateCommandEnabled(IDC_CLOSE_TAB, true); | 801 command_updater_.UpdateCommandEnabled(IDC_CLOSE_TAB, true); |
| 802 command_updater_.UpdateCommandEnabled(IDC_DUPLICATE_TAB, true); | 802 command_updater_.UpdateCommandEnabled(IDC_DUPLICATE_TAB, true); |
| 803 UpdateTabRestoreCommandState(); | 803 UpdateTabRestoreCommandState(); |
| 804 #if defined(OS_WIN) && defined(USE_ASH) | |
| 805 if (browser_->host_desktop_type() != chrome::HOST_DESKTOP_TYPE_ASH) | |
| 806 command_updater_.UpdateCommandEnabled(IDC_EXIT, true); | |
| 807 #else | |
| 808 command_updater_.UpdateCommandEnabled(IDC_EXIT, true); | 804 command_updater_.UpdateCommandEnabled(IDC_EXIT, true); |
| 809 #endif | |
| 810 command_updater_.UpdateCommandEnabled(IDC_DEBUG_FRAME_TOGGLE, true); | 805 command_updater_.UpdateCommandEnabled(IDC_DEBUG_FRAME_TOGGLE, true); |
| 811 #if defined(USE_ASH) | 806 #if defined(USE_ASH) |
| 812 command_updater_.UpdateCommandEnabled(IDC_MINIMIZE_WINDOW, true); | 807 command_updater_.UpdateCommandEnabled(IDC_MINIMIZE_WINDOW, true); |
| 813 #endif | 808 #endif |
| 814 #if defined(OS_CHROMEOS) | 809 #if defined(OS_CHROMEOS) |
| 815 command_updater_.UpdateCommandEnabled(IDC_VISIT_DESKTOP_OF_LRU_USER_2, true); | 810 command_updater_.UpdateCommandEnabled(IDC_VISIT_DESKTOP_OF_LRU_USER_2, true); |
| 816 command_updater_.UpdateCommandEnabled(IDC_VISIT_DESKTOP_OF_LRU_USER_3, true); | 811 command_updater_.UpdateCommandEnabled(IDC_VISIT_DESKTOP_OF_LRU_USER_3, true); |
| 817 #endif | 812 #endif |
| 818 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 813 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 819 command_updater_.UpdateCommandEnabled(IDC_USE_SYSTEM_TITLE_BAR, true); | 814 command_updater_.UpdateCommandEnabled(IDC_USE_SYSTEM_TITLE_BAR, true); |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1270 | 1265 |
| 1271 BrowserWindow* BrowserCommandController::window() { | 1266 BrowserWindow* BrowserCommandController::window() { |
| 1272 return browser_->window(); | 1267 return browser_->window(); |
| 1273 } | 1268 } |
| 1274 | 1269 |
| 1275 Profile* BrowserCommandController::profile() { | 1270 Profile* BrowserCommandController::profile() { |
| 1276 return browser_->profile(); | 1271 return browser_->profile(); |
| 1277 } | 1272 } |
| 1278 | 1273 |
| 1279 } // namespace chrome | 1274 } // namespace chrome |
| OLD | NEW |