| 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.h" | 5 #include "chrome/browser/ui/browser.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <shellapi.h> | 9 #include <shellapi.h> |
| 10 #endif // OS_WIN | 10 #endif // OS_WIN |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 #endif // OS_WIN | 199 #endif // OS_WIN |
| 200 | 200 |
| 201 #if defined(OS_MACOSX) | 201 #if defined(OS_MACOSX) |
| 202 #include "ui/base/cocoa/find_pasteboard.h" | 202 #include "ui/base/cocoa/find_pasteboard.h" |
| 203 #endif | 203 #endif |
| 204 | 204 |
| 205 #if defined(OS_CHROMEOS) | 205 #if defined(OS_CHROMEOS) |
| 206 #include "chrome/browser/chromeos/boot_times_loader.h" | 206 #include "chrome/browser/chromeos/boot_times_loader.h" |
| 207 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | 207 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" |
| 208 #include "chrome/browser/chromeos/dbus/power_manager_client.h" | 208 #include "chrome/browser/chromeos/dbus/power_manager_client.h" |
| 209 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_helper.h" | 209 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" |
| 210 #if defined(USE_AURA) | 210 #if defined(USE_AURA) |
| 211 #include "chrome/browser/extensions/api/terminal/terminal_extension_helper.h" | 211 #include "chrome/browser/extensions/api/terminal/terminal_extension_helper.h" |
| 212 #endif | 212 #endif |
| 213 #include "chrome/browser/ui/webui/chromeos/active_downloads_ui.h" | 213 #include "chrome/browser/ui/webui/chromeos/active_downloads_ui.h" |
| 214 #endif | 214 #endif |
| 215 | 215 |
| 216 #if defined(USE_ASH) | 216 #if defined(USE_ASH) |
| 217 #include "ash/ash_switches.h" | 217 #include "ash/ash_switches.h" |
| 218 #include "ash/shell.h" | 218 #include "ash/shell.h" |
| 219 #include "chrome/browser/ui/views/ash/panel_view_aura.h" | 219 #include "chrome/browser/ui/views/ash/panel_view_aura.h" |
| (...skipping 2279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2499 content::RecordAction(UserMetricsAction("OpenFileManager")); | 2499 content::RecordAction(UserMetricsAction("OpenFileManager")); |
| 2500 OpenURL(OpenURLParams(GURL(chrome::kChromeUIFileManagerURL), Referrer(), | 2500 OpenURL(OpenURLParams(GURL(chrome::kChromeUIFileManagerURL), Referrer(), |
| 2501 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false)); | 2501 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false)); |
| 2502 } | 2502 } |
| 2503 #endif | 2503 #endif |
| 2504 | 2504 |
| 2505 #if defined(OS_CHROMEOS) | 2505 #if defined(OS_CHROMEOS) |
| 2506 void Browser::LockScreen() { | 2506 void Browser::LockScreen() { |
| 2507 content::RecordAction(UserMetricsAction("LockScreen")); | 2507 content::RecordAction(UserMetricsAction("LockScreen")); |
| 2508 // Never lock the screen for kiosk mode. | 2508 // Never lock the screen for kiosk mode. |
| 2509 if (chromeos::KioskModeHelper::IsKioskModeEnabled()) | 2509 if (chromeos::KioskModeSettings::IsKioskModeEnabled()) |
| 2510 return; | 2510 return; |
| 2511 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> | 2511 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> |
| 2512 NotifyScreenLockRequested(); | 2512 NotifyScreenLockRequested(); |
| 2513 } | 2513 } |
| 2514 | 2514 |
| 2515 void Browser::Shutdown() { | 2515 void Browser::Shutdown() { |
| 2516 content::RecordAction(UserMetricsAction("Shutdown")); | 2516 content::RecordAction(UserMetricsAction("Shutdown")); |
| 2517 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> | 2517 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()-> |
| 2518 RequestShutdown(); | 2518 RequestShutdown(); |
| 2519 } | 2519 } |
| (...skipping 3128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5648 } else { | 5648 } else { |
| 5649 LoginUIServiceFactory::GetForProfile( | 5649 LoginUIServiceFactory::GetForProfile( |
| 5650 profile()->GetOriginalProfile())->ShowLoginUI(false); | 5650 profile()->GetOriginalProfile())->ShowLoginUI(false); |
| 5651 } | 5651 } |
| 5652 #endif | 5652 #endif |
| 5653 } | 5653 } |
| 5654 | 5654 |
| 5655 void Browser::ToggleSpeechInput() { | 5655 void Browser::ToggleSpeechInput() { |
| 5656 GetSelectedWebContents()->GetRenderViewHost()->ToggleSpeechInput(); | 5656 GetSelectedWebContents()->GetRenderViewHost()->ToggleSpeechInput(); |
| 5657 } | 5657 } |
| OLD | NEW |