| 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 "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "chrome/app/chrome_command_ids.h" | 8 #include "chrome/app/chrome_command_ids.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/defaults.h" | 10 #include "chrome/browser/defaults.h" |
| (...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 command_updater_.UpdateCommandEnabled(IDC_RELOAD_CLEARING_CACHE, true); | 804 command_updater_.UpdateCommandEnabled(IDC_RELOAD_CLEARING_CACHE, true); |
| 805 | 805 |
| 806 // Window management commands | 806 // Window management commands |
| 807 command_updater_.UpdateCommandEnabled(IDC_CLOSE_WINDOW, true); | 807 command_updater_.UpdateCommandEnabled(IDC_CLOSE_WINDOW, true); |
| 808 command_updater_.UpdateCommandEnabled(IDC_NEW_TAB, true); | 808 command_updater_.UpdateCommandEnabled(IDC_NEW_TAB, true); |
| 809 command_updater_.UpdateCommandEnabled(IDC_CLOSE_TAB, true); | 809 command_updater_.UpdateCommandEnabled(IDC_CLOSE_TAB, true); |
| 810 command_updater_.UpdateCommandEnabled(IDC_DUPLICATE_TAB, true); | 810 command_updater_.UpdateCommandEnabled(IDC_DUPLICATE_TAB, true); |
| 811 command_updater_.UpdateCommandEnabled(IDC_RESTORE_TAB, false); | 811 command_updater_.UpdateCommandEnabled(IDC_RESTORE_TAB, false); |
| 812 command_updater_.UpdateCommandEnabled(IDC_EXIT, true); | 812 command_updater_.UpdateCommandEnabled(IDC_EXIT, true); |
| 813 command_updater_.UpdateCommandEnabled(IDC_DEBUG_FRAME_TOGGLE, true); | 813 command_updater_.UpdateCommandEnabled(IDC_DEBUG_FRAME_TOGGLE, true); |
| 814 #if defined(OS_WIN) && defined(USE_ASH) | 814 #if defined(OS_WIN) && defined(USE_ASH) && !defined(NDEBUG) |
| 815 if (base::win::GetVersion() < base::win::VERSION_WIN8 && | 815 if (base::win::GetVersion() < base::win::VERSION_WIN8 && |
| 816 chrome::HOST_DESKTOP_TYPE_NATIVE != chrome::HOST_DESKTOP_TYPE_ASH) | 816 chrome::HOST_DESKTOP_TYPE_NATIVE != chrome::HOST_DESKTOP_TYPE_ASH) |
| 817 command_updater_.UpdateCommandEnabled(IDC_TOGGLE_ASH_DESKTOP, true); | 817 command_updater_.UpdateCommandEnabled(IDC_TOGGLE_ASH_DESKTOP, true); |
| 818 #endif | 818 #endif |
| 819 | 819 |
| 820 // Page-related commands | 820 // Page-related commands |
| 821 command_updater_.UpdateCommandEnabled(IDC_EMAIL_PAGE_LOCATION, true); | 821 command_updater_.UpdateCommandEnabled(IDC_EMAIL_PAGE_LOCATION, true); |
| 822 command_updater_.UpdateCommandEnabled(IDC_ENCODING_AUTO_DETECT, true); | 822 command_updater_.UpdateCommandEnabled(IDC_ENCODING_AUTO_DETECT, true); |
| 823 command_updater_.UpdateCommandEnabled(IDC_ENCODING_UTF8, true); | 823 command_updater_.UpdateCommandEnabled(IDC_ENCODING_UTF8, true); |
| 824 command_updater_.UpdateCommandEnabled(IDC_ENCODING_UTF16LE, true); | 824 command_updater_.UpdateCommandEnabled(IDC_ENCODING_UTF16LE, true); |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1231 | 1231 |
| 1232 BrowserWindow* BrowserCommandController::window() { | 1232 BrowserWindow* BrowserCommandController::window() { |
| 1233 return browser_->window(); | 1233 return browser_->window(); |
| 1234 } | 1234 } |
| 1235 | 1235 |
| 1236 Profile* BrowserCommandController::profile() { | 1236 Profile* BrowserCommandController::profile() { |
| 1237 return browser_->profile(); | 1237 return browser_->profile(); |
| 1238 } | 1238 } |
| 1239 | 1239 |
| 1240 } // namespace chrome | 1240 } // namespace chrome |
| OLD | NEW |