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

Side by Side Diff: ash/shell_delegate.h

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/shell/window_watcher.cc ('k') | ash/shell_unittest.cc » ('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 #ifndef ASH_SHELL_DELEGATE_H_ 5 #ifndef ASH_SHELL_DELEGATE_H_
6 #define ASH_SHELL_DELEGATE_H_ 6 #define ASH_SHELL_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // The Shell owns the delegate. 47 // The Shell owns the delegate.
48 virtual ~ShellDelegate() {} 48 virtual ~ShellDelegate() {}
49 49
50 // Invoked to create a new status area. Can return NULL. 50 // Invoked to create a new status area. Can return NULL.
51 virtual views::Widget* CreateStatusArea() = 0; 51 virtual views::Widget* CreateStatusArea() = 0;
52 52
53 // Can we create the launcher yet? In some cases, we may need to defer it 53 // Can we create the launcher yet? In some cases, we may need to defer it
54 // until e.g. a user has logged in and their profile has been loaded. 54 // until e.g. a user has logged in and their profile has been loaded.
55 virtual bool CanCreateLauncher() = 0; 55 virtual bool CanCreateLauncher() = 0;
56 56
57 #if defined(OS_CHROMEOS) 57 // Invoked when a user locks the screen.
58 // Invoked when a user uses Ctrl-Shift-L to lock the screen.
59 virtual void LockScreen() = 0; 58 virtual void LockScreen() = 0;
60 #endif 59
60 // Unlock the screen. Currently used only for tests.
61 virtual void UnlockScreen() = 0;
62
63 // Returns true if the screen is currently locked.
64 virtual bool IsScreenLocked() const = 0;
61 65
62 // Invoked when a user uses Ctrl-Shift-Q to close chrome. 66 // Invoked when a user uses Ctrl-Shift-Q to close chrome.
63 virtual void Exit() = 0; 67 virtual void Exit() = 0;
64 68
65 // Invoked to create an AppListViewDelegate. Shell takes the ownership of 69 // Invoked to create an AppListViewDelegate. Shell takes the ownership of
66 // the created delegate. 70 // the created delegate.
67 virtual AppListViewDelegate* CreateAppListViewDelegate() = 0; 71 virtual AppListViewDelegate* CreateAppListViewDelegate() = 0;
68 72
69 // Returns a list of windows to cycle with keyboard shortcuts (e.g. alt-tab 73 // Returns a list of windows to cycle with keyboard shortcuts (e.g. alt-tab
70 // or the window switching key). If |order_by_activity| is true then windows 74 // or the window switching key). If |order_by_activity| is true then windows
(...skipping 15 matching lines...) Expand all
86 // Creates a system-tray delegate. Shell takes ownership of the delegate. 90 // Creates a system-tray delegate. Shell takes ownership of the delegate.
87 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; 91 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0;
88 92
89 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. 93 // Creates a user wallpaper delegate. Shell takes ownership of the delegate.
90 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; 94 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0;
91 }; 95 };
92 96
93 } // namespace ash 97 } // namespace ash
94 98
95 #endif // ASH_SHELL_DELEGATE_H_ 99 #endif // ASH_SHELL_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/shell/window_watcher.cc ('k') | ash/shell_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698