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

Side by Side Diff: ash/test/test_shell_delegate.cc

Issue 9788001: Remove stops_event_propagation from Window, since it's broken. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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/test/test_shell_delegate.h ('k') | ash/wm/event_client_impl.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/test/test_shell_delegate.h" 5 #include "ash/test/test_shell_delegate.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ash/screenshot_delegate.h" 9 #include "ash/screenshot_delegate.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
11 #include "ash/shell_window_ids.h" 11 #include "ash/shell_window_ids.h"
12 #include "grit/ui_resources.h" 12 #include "grit/ui_resources.h"
13 #include "ui/aura/window.h" 13 #include "ui/aura/window.h"
14 14
15 namespace ash { 15 namespace ash {
16 namespace test { 16 namespace test {
17 17
18 TestShellDelegate::TestShellDelegate() { 18 TestShellDelegate::TestShellDelegate() : locked_(false) {
19 } 19 }
20 20
21 TestShellDelegate::~TestShellDelegate() { 21 TestShellDelegate::~TestShellDelegate() {
22 } 22 }
23 23
24 views::Widget* TestShellDelegate::CreateStatusArea() { 24 views::Widget* TestShellDelegate::CreateStatusArea() {
25 return NULL; 25 return NULL;
26 } 26 }
27 27
28 bool TestShellDelegate::CanCreateLauncher() { 28 bool TestShellDelegate::CanCreateLauncher() {
29 return true; 29 return true;
30 } 30 }
31 31
32 #if defined(OS_CHROMEOS)
33 void TestShellDelegate::LockScreen() { 32 void TestShellDelegate::LockScreen() {
33 locked_ = true;
34 } 34 }
35 #endif 35
36 void TestShellDelegate::UnlockScreen() {
37 locked_ = false;
38 }
39
40 bool TestShellDelegate::IsScreenLocked() const {
41 return locked_;
42 }
36 43
37 void TestShellDelegate::Exit() { 44 void TestShellDelegate::Exit() {
38 } 45 }
39 46
40 AppListViewDelegate* TestShellDelegate::CreateAppListViewDelegate() { 47 AppListViewDelegate* TestShellDelegate::CreateAppListViewDelegate() {
41 return NULL; 48 return NULL;
42 } 49 }
43 50
44 std::vector<aura::Window*> TestShellDelegate::GetCycleWindowList( 51 std::vector<aura::Window*> TestShellDelegate::GetCycleWindowList(
45 CycleSource source) const { 52 CycleSource source) const {
(...skipping 22 matching lines...) Expand all
68 SystemTray* tray) { 75 SystemTray* tray) {
69 return NULL; 76 return NULL;
70 } 77 }
71 78
72 UserWallpaperDelegate* TestShellDelegate::CreateUserWallpaperDelegate() { 79 UserWallpaperDelegate* TestShellDelegate::CreateUserWallpaperDelegate() {
73 return NULL; 80 return NULL;
74 } 81 }
75 82
76 } // namespace test 83 } // namespace test
77 } // namespace ash 84 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/test_shell_delegate.h ('k') | ash/wm/event_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698