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

Side by Side Diff: ash/public/interfaces/new_window.mojom

Issue 2549903002: mash: Reverse the responsibilities of the NewWindowClient. (Closed)
Patch Set: jamescook comments Created 4 years 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
« no previous file with comments | « ash/mus/test/wm_test_helper.cc ('k') | ash/test/ash_test_helper.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 module ash.mojom; 5 module ash.mojom;
6 6
7 // A delegate interface delegate to create or open windows that are not part of 7 // An exported object in ash which lets an ash consumer set a client interface.
8 // ash. 8 interface NewWindowController {
9 SetClient(associated NewWindowClient client);
10 };
11
12 // A delegate interface that an ash user sends to ash to handle certain window
13 // management responsibilities.
9 interface NewWindowClient { 14 interface NewWindowClient {
10 // Invoked when the user uses Ctrl+T to open a new tab. 15 // Invoked when the user uses Ctrl+T to open a new tab.
11 NewTab(); 16 NewTab();
12 17
13 // Invoked when the user uses Ctrl-N or Ctrl-Shift-N to open a new window. 18 // Invoked when the user uses Ctrl-N or Ctrl-Shift-N to open a new window.
14 NewWindow(bool incognito); 19 NewWindow(bool incognito);
15 20
16 // Invoked when an accelerator is used to open the file manager. 21 // Invoked when an accelerator is used to open the file manager.
17 OpenFileManager(); 22 OpenFileManager();
18 23
19 // Invoked when the user opens Crosh. 24 // Invoked when the user opens Crosh.
20 OpenCrosh(); 25 OpenCrosh();
21 26
22 // Invoked when an accelerator is used to open help center. 27 // Invoked when an accelerator is used to open help center.
23 OpenGetHelp(); 28 OpenGetHelp();
24 29
25 // Invoked when the user uses Shift+Ctrl+T to restore the closed tab. 30 // Invoked when the user uses Shift+Ctrl+T to restore the closed tab.
26 RestoreTab(); 31 RestoreTab();
27 32
28 // Shows the keyboard shortcut overlay. 33 // Shows the keyboard shortcut overlay.
29 ShowKeyboardOverlay(); 34 ShowKeyboardOverlay();
30 35
31 // Shows the task manager window. 36 // Shows the task manager window.
32 ShowTaskManager(); 37 ShowTaskManager();
33 38
34 // Opens the feedback page for "Report Issue". 39 // Opens the feedback page for "Report Issue".
35 OpenFeedbackPage(); 40 OpenFeedbackPage();
36 }; 41 };
OLDNEW
« no previous file with comments | « ash/mus/test/wm_test_helper.cc ('k') | ash/test/ash_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698