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/default_accessibility_delegate.h" | 8 #include "ash/default_accessibility_delegate.h" |
9 #include "ash/default_user_wallpaper_delegate.h" | 9 #include "ash/default_user_wallpaper_delegate.h" |
10 #include "ash/gpu_support_stub.h" | 10 #include "ash/gpu_support_stub.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 // SessionStateDelegate: | 83 // SessionStateDelegate: |
84 content::BrowserContext* GetBrowserContextByIndex( | 84 content::BrowserContext* GetBrowserContextByIndex( |
85 MultiProfileIndex index) override { | 85 MultiProfileIndex index) override { |
86 return Shell::GetInstance()->delegate()->GetActiveBrowserContext(); | 86 return Shell::GetInstance()->delegate()->GetActiveBrowserContext(); |
87 } | 87 } |
88 content::BrowserContext* GetBrowserContextForWindow( | 88 content::BrowserContext* GetBrowserContextForWindow( |
89 aura::Window* window) override { | 89 aura::Window* window) override { |
90 return Shell::GetInstance()->delegate()->GetActiveBrowserContext(); | 90 return Shell::GetInstance()->delegate()->GetActiveBrowserContext(); |
91 } | 91 } |
| 92 const std::string& GetUserPresentingWindow(aura::Window* window) override { |
| 93 return base::EmptyString(); |
| 94 } |
92 int GetMaximumNumberOfLoggedInUsers() const override { return 3; } | 95 int GetMaximumNumberOfLoggedInUsers() const override { return 3; } |
93 int NumberOfLoggedInUsers() const override { | 96 int NumberOfLoggedInUsers() const override { |
94 // ash_shell has 2 users. | 97 // ash_shell has 2 users. |
95 return 2; | 98 return 2; |
96 } | 99 } |
97 bool IsActiveUserSessionStarted() const override { return true; } | 100 bool IsActiveUserSessionStarted() const override { return true; } |
98 bool CanLockScreen() const override { return true; } | 101 bool CanLockScreen() const override { return true; } |
99 bool IsScreenLocked() const override { return screen_locked_; } | 102 bool IsScreenLocked() const override { return screen_locked_; } |
100 bool ShouldLockScreenBeforeSuspending() const override { return false; } | 103 bool ShouldLockScreenBeforeSuspending() const override { return false; } |
101 void LockScreen() override { | 104 void LockScreen() override { |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 // Real GPU support depends on src/content, so just use a stub. | 260 // Real GPU support depends on src/content, so just use a stub. |
258 return new GPUSupportStub; | 261 return new GPUSupportStub; |
259 } | 262 } |
260 | 263 |
261 base::string16 ShellDelegateImpl::GetProductName() const { | 264 base::string16 ShellDelegateImpl::GetProductName() const { |
262 return base::string16(); | 265 return base::string16(); |
263 } | 266 } |
264 | 267 |
265 } // namespace shell | 268 } // namespace shell |
266 } // namespace ash | 269 } // namespace ash |
OLD | NEW |