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

Side by Side Diff: ash/shell/shell_delegate_impl.cc

Issue 42353002: Introduce WindowStateDelegate::ToggleFullscreen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: exclude accelerator_commands_browsertest on win Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « ash/shell/shell_delegate_impl.h ('k') | ash/shell_delegate.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) 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
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
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
OLDNEW
« no previous file with comments | « ash/shell/shell_delegate_impl.h ('k') | ash/shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698