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

Side by Side Diff: chrome/browser/ui/ash/chrome_shell_delegate.h

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
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 #ifndef CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_
6 #define CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_
7 7
8 #include <string>
9
8 #include "ash/launcher/launcher_types.h" 10 #include "ash/launcher/launcher_types.h"
9 #include "ash/shell_delegate.h" 11 #include "ash/shell_delegate.h"
10 #include "base/basictypes.h" 12 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
13 #include "content/public/browser/notification_observer.h" 15 #include "content/public/browser/notification_observer.h"
14 #include "content/public/browser/notification_registrar.h" 16 #include "content/public/browser/notification_registrar.h"
15 17
16 class Browser; 18 class Browser;
17 19
(...skipping 12 matching lines...) Expand all
30 static ChromeShellDelegate* instance() { return instance_; } 32 static ChromeShellDelegate* instance() { return instance_; }
31 33
32 ash::WindowPositioner* window_positioner() { 34 ash::WindowPositioner* window_positioner() {
33 return window_positioner_.get(); 35 return window_positioner_.get();
34 } 36 }
35 37
36 // ash::ShellDelegate overrides; 38 // ash::ShellDelegate overrides;
37 virtual bool IsUserLoggedIn() const OVERRIDE; 39 virtual bool IsUserLoggedIn() const OVERRIDE;
38 virtual bool IsSessionStarted() const OVERRIDE; 40 virtual bool IsSessionStarted() const OVERRIDE;
39 virtual bool IsFirstRunAfterBoot() const OVERRIDE; 41 virtual bool IsFirstRunAfterBoot() const OVERRIDE;
42 virtual bool IsRunningInForcedAppMode() const OVERRIDE;
40 virtual bool CanLockScreen() const OVERRIDE; 43 virtual bool CanLockScreen() const OVERRIDE;
41 virtual void LockScreen() OVERRIDE; 44 virtual void LockScreen() OVERRIDE;
42 virtual void UnlockScreen() OVERRIDE; 45 virtual void UnlockScreen() OVERRIDE;
43 virtual bool IsScreenLocked() const OVERRIDE; 46 virtual bool IsScreenLocked() const OVERRIDE;
44 virtual void Shutdown() OVERRIDE; 47 virtual void Shutdown() OVERRIDE;
45 virtual void Exit() OVERRIDE; 48 virtual void Exit() OVERRIDE;
46 virtual void NewTab() OVERRIDE; 49 virtual void NewTab() OVERRIDE;
47 virtual void NewWindow(bool is_incognito) OVERRIDE; 50 virtual void NewWindow(bool is_incognito) OVERRIDE;
48 virtual void ToggleMaximized() OVERRIDE; 51 virtual void ToggleMaximized() OVERRIDE;
49 virtual void OpenFileManager(bool as_dialog) OVERRIDE; 52 virtual void OpenFileManager(bool as_dialog) OVERRIDE;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 scoped_ptr<ash::WindowPositioner> window_positioner_; 106 scoped_ptr<ash::WindowPositioner> window_positioner_;
104 107
105 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; 108 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_;
106 109
107 ChromeLauncherController* launcher_delegate_; 110 ChromeLauncherController* launcher_delegate_;
108 111
109 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); 112 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate);
110 }; 113 };
111 114
112 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ 115 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/browser/ui/ash/chrome_shell_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698