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

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

Issue 12389083: cros: Add app mode restrictions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for comments in #3 Created 7 years, 9 months 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 <limits>
8
7 #include "ash/caps_lock_delegate_stub.h" 9 #include "ash/caps_lock_delegate_stub.h"
8 #include "ash/host/root_window_host_factory.h" 10 #include "ash/host/root_window_host_factory.h"
11 #include "ash/shell/context_menu.h"
9 #include "ash/shell/example_factory.h" 12 #include "ash/shell/example_factory.h"
10 #include "ash/shell/launcher_delegate_impl.h" 13 #include "ash/shell/launcher_delegate_impl.h"
11 #include "ash/shell/context_menu.h"
12 #include "ash/shell/toplevel_window.h" 14 #include "ash/shell/toplevel_window.h"
13 #include "ash/shell_window_ids.h" 15 #include "ash/shell_window_ids.h"
14 #include "ash/wm/window_util.h" 16 #include "ash/wm/window_util.h"
15 #include "base/message_loop.h" 17 #include "base/message_loop.h"
16 #include "ui/aura/window.h" 18 #include "ui/aura/window.h"
17 19
18 namespace ash { 20 namespace ash {
19 namespace shell { 21 namespace shell {
20 22
21 ShellDelegateImpl::ShellDelegateImpl() 23 ShellDelegateImpl::ShellDelegateImpl()
(...skipping 20 matching lines...) Expand all
42 } 44 }
43 45
44 bool ShellDelegateImpl::IsSessionStarted() const { 46 bool ShellDelegateImpl::IsSessionStarted() const {
45 return true; 47 return true;
46 } 48 }
47 49
48 bool ShellDelegateImpl::IsFirstRunAfterBoot() const { 50 bool ShellDelegateImpl::IsFirstRunAfterBoot() const {
49 return false; 51 return false;
50 } 52 }
51 53
54 bool ShellDelegateImpl::IsRunningInForcedAppMode() const {
55 return false;
56 }
57
52 bool ShellDelegateImpl::CanLockScreen() const { 58 bool ShellDelegateImpl::CanLockScreen() const {
53 return true; 59 return true;
54 } 60 }
55 61
56 void ShellDelegateImpl::LockScreen() { 62 void ShellDelegateImpl::LockScreen() {
57 ash::shell::CreateLockScreen(); 63 ash::shell::CreateLockScreen();
58 locked_ = true; 64 locked_ = true;
59 ash::Shell::GetInstance()->UpdateShelfVisibility(); 65 ash::Shell::GetInstance()->UpdateShelfVisibility();
60 } 66 }
61 67
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 RootWindowHostFactory* ShellDelegateImpl::CreateRootWindowHostFactory() { 223 RootWindowHostFactory* ShellDelegateImpl::CreateRootWindowHostFactory() {
218 return RootWindowHostFactory::Create(); 224 return RootWindowHostFactory::Create();
219 } 225 }
220 226
221 string16 ShellDelegateImpl::GetProductName() const { 227 string16 ShellDelegateImpl::GetProductName() const {
222 return string16(); 228 return string16();
223 } 229 }
224 230
225 } // namespace shell 231 } // namespace shell
226 } // namespace ash 232 } // 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