| 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 "ash/shell/shell_delegate_impl.h" | 5 #include "ash/shell/shell_delegate_impl.h" |
| 6 | 6 |
| 7 #include "ash/accessibility_delegate.h" | 7 #include "ash/accessibility_delegate.h" |
| 8 #include "ash/caps_lock_delegate_stub.h" | 8 #include "ash/caps_lock_delegate_stub.h" |
| 9 #include "ash/default_accessibility_delegate.h" | 9 #include "ash/default_accessibility_delegate.h" |
| 10 #include "ash/default_user_wallpaper_delegate.h" | 10 #include "ash/default_user_wallpaper_delegate.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 void ShellDelegateImpl::PreInit() { | 82 void ShellDelegateImpl::PreInit() { |
| 83 } | 83 } |
| 84 | 84 |
| 85 void ShellDelegateImpl::Shutdown() { | 85 void ShellDelegateImpl::Shutdown() { |
| 86 } | 86 } |
| 87 | 87 |
| 88 void ShellDelegateImpl::Exit() { | 88 void ShellDelegateImpl::Exit() { |
| 89 base::MessageLoopForUI::current()->Quit(); | 89 base::MessageLoopForUI::current()->Quit(); |
| 90 } | 90 } |
| 91 | 91 |
| 92 void ShellDelegateImpl::ToggleFullscreen() { | |
| 93 // TODO(oshima): Remove this when crbug.com/309837 is implemented. | |
| 94 wm::WindowState* window_state = wm::GetActiveWindowState(); | |
| 95 if (window_state) | |
| 96 window_state->ToggleMaximized(); | |
| 97 } | |
| 98 | |
| 99 keyboard::KeyboardControllerProxy* | 92 keyboard::KeyboardControllerProxy* |
| 100 ShellDelegateImpl::CreateKeyboardControllerProxy() { | 93 ShellDelegateImpl::CreateKeyboardControllerProxy() { |
| 101 return new KeyboardControllerProxyStub(); | 94 return new KeyboardControllerProxyStub(); |
| 102 } | 95 } |
| 103 | 96 |
| 104 content::BrowserContext* ShellDelegateImpl::GetCurrentBrowserContext() { | 97 content::BrowserContext* ShellDelegateImpl::GetCurrentBrowserContext() { |
| 105 return Shell::GetInstance()->browser_context(); | 98 return Shell::GetInstance()->browser_context(); |
| 106 } | 99 } |
| 107 | 100 |
| 108 app_list::AppListViewDelegate* ShellDelegateImpl::CreateAppListViewDelegate() { | 101 app_list::AppListViewDelegate* ShellDelegateImpl::CreateAppListViewDelegate() { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 RootWindowHostFactory* ShellDelegateImpl::CreateRootWindowHostFactory() { | 155 RootWindowHostFactory* ShellDelegateImpl::CreateRootWindowHostFactory() { |
| 163 return RootWindowHostFactory::Create(); | 156 return RootWindowHostFactory::Create(); |
| 164 } | 157 } |
| 165 | 158 |
| 166 base::string16 ShellDelegateImpl::GetProductName() const { | 159 base::string16 ShellDelegateImpl::GetProductName() const { |
| 167 return base::string16(); | 160 return base::string16(); |
| 168 } | 161 } |
| 169 | 162 |
| 170 } // namespace shell | 163 } // namespace shell |
| 171 } // namespace ash | 164 } // namespace ash |
| OLD | NEW |