OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_NEW_WINDOW_DELEGATE_H_ | 5 #ifndef ASH_NEW_WINDOW_DELEGATE_H_ |
6 #define ASH_NEW_WINDOW_DELEGATE_H_ | 6 #define ASH_NEW_WINDOW_DELEGATE_H_ |
7 | 7 |
8 namespace ash { | 8 namespace ash { |
9 | 9 |
10 // A delegate class to create or open windows that are not a part of | 10 // A delegate class to create or open windows that are not a part of |
11 // ash. | 11 // ash. |
12 class NewWindowDelegate { | 12 class NewWindowDelegate { |
13 public: | 13 public: |
14 NewWindowDelegate() {} | |
15 virtual ~NewWindowDelegate() {} | 14 virtual ~NewWindowDelegate() {} |
16 | 15 |
17 // Invoked when the user uses Ctrl+T to open a new tab. | 16 // Invoked when the user uses Ctrl+T to open a new tab. |
18 virtual void NewTab() = 0; | 17 virtual void NewTab() = 0; |
19 | 18 |
20 // Invoked when the user uses Ctrl-N or Ctrl-Shift-N to open a new window. | 19 // Invoked when the user uses Ctrl-N or Ctrl-Shift-N to open a new window. |
21 virtual void NewWindow(bool incognito) = 0; | 20 virtual void NewWindow(bool incognito) = 0; |
22 | 21 |
23 // Invoked when an accelerator is used to open the file manager. | 22 // Invoked when an accelerator is used to open the file manager. |
24 virtual void OpenFileManager() = 0; | 23 virtual void OpenFileManager() = 0; |
(...skipping 10 matching lines...) Expand all Loading... |
35 // Shows the task manager window. | 34 // Shows the task manager window. |
36 virtual void ShowTaskManager() = 0; | 35 virtual void ShowTaskManager() = 0; |
37 | 36 |
38 // Opens the feedback page for "Report Issue". | 37 // Opens the feedback page for "Report Issue". |
39 virtual void OpenFeedbackPage() = 0; | 38 virtual void OpenFeedbackPage() = 0; |
40 }; | 39 }; |
41 | 40 |
42 } // namespace ash | 41 } // namespace ash |
43 | 42 |
44 #endif // ASH_NEW_WINDOW_DELEGATE_H_ | 43 #endif // ASH_NEW_WINDOW_DELEGATE_H_ |
OLD | NEW |