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 #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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
52 | 52 |
53 // Shuts down the environment. | 53 // Shuts down the environment. |
54 virtual void Shutdown() = 0; | 54 virtual void Shutdown() = 0; |
55 | 55 |
56 // Invoked when the user uses Ctrl-Shift-Q to close chrome. | 56 // Invoked when the user uses Ctrl-Shift-Q to close chrome. |
57 virtual void Exit() = 0; | 57 virtual void Exit() = 0; |
58 | 58 |
59 // Invoked when the user uses Ctrl-N or Ctrl-Shift-N to open a new window. | 59 // Invoked when the user uses Ctrl-N or Ctrl-Shift-N to open a new window. |
60 virtual void NewWindow(bool incognito) = 0; | 60 virtual void NewWindow(bool incognito) = 0; |
61 | 61 |
62 // Returns true if |window| is one of the browser windows. | |
63 virtual bool IsBrowserWindow(const aura::Window* window) = 0; | |
Ben Goodger (Google)
2012/05/01 16:00:37
IsWebContentsView()
Yusuke Sato
2012/05/02 16:40:11
I've added code directly to accelerator_filter.cc
Ben Goodger (Google)
2012/05/03 17:29:38
Why do you need to know if it is a browser window?
Yusuke Sato
2012/05/03 17:45:59
This is because when it is a (non-app) browser win
| |
64 | |
62 // Invoked when the user presses the Search key. | 65 // Invoked when the user presses the Search key. |
63 virtual void Search() = 0; | 66 virtual void Search() = 0; |
64 | 67 |
65 // Invoked when the user uses Ctrl-M to open file manager. | 68 // Invoked when the user uses Ctrl-M to open file manager. |
66 virtual void OpenFileManager() = 0; | 69 virtual void OpenFileManager() = 0; |
67 | 70 |
68 // Invoked when the user opens Crosh. | 71 // Invoked when the user opens Crosh. |
69 virtual void OpenCrosh() = 0; | 72 virtual void OpenCrosh() = 0; |
70 | 73 |
71 // Invoked when the user needs to set up mobile networking. | 74 // Invoked when the user needs to set up mobile networking. |
(...skipping 15 matching lines...) Expand all Loading... | |
87 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 90 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
88 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; | 91 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; |
89 | 92 |
90 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. | 93 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. |
91 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; | 94 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; |
92 }; | 95 }; |
93 | 96 |
94 } // namespace ash | 97 } // namespace ash |
95 | 98 |
96 #endif // ASH_SHELL_DELEGATE_H_ | 99 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |