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

Unified Diff: ash/mus/accelerators/accelerator_controller_delegate_mus.cc

Issue 2323393003: Connect mojom::DisplayController from ash to ui. (Closed)
Patch Set: Add comments. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/mus/BUILD.gn ('k') | ash/mus/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/accelerators/accelerator_controller_delegate_mus.cc
diff --git a/ash/mus/accelerators/accelerator_controller_delegate_mus.cc b/ash/mus/accelerators/accelerator_controller_delegate_mus.cc
index d935fc7e216c10373c6ebb560098a053561c8393..6cd38390c25d9b959fead4574e1b68447c95d073 100644
--- a/ash/mus/accelerators/accelerator_controller_delegate_mus.cc
+++ b/ash/mus/accelerators/accelerator_controller_delegate_mus.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "mash/public/interfaces/launchable.mojom.h"
+#include "services/ui/public/interfaces/display/display_controller.mojom.h"
namespace ash {
namespace mus {
@@ -50,7 +51,12 @@ bool AcceleratorControllerDelegateMus::HandlesAction(AcceleratorAction action) {
return false;
#if defined(OS_CHROMEOS)
- case DEBUG_ADD_REMOVE_DISPLAY:
+ case DEBUG_ADD_REMOVE_DISPLAY: {
+ display::mojom::DisplayControllerPtr display_controller;
+ connector_->ConnectToInterface("mojo:ui", &display_controller);
+ display_controller->ToggleVirtualDisplay();
+ break;
+ }
case DEBUG_TOGGLE_UNIFIED_DESKTOP:
case DISABLE_GPU_WATCHDOG:
case LOCK_PRESSED:
« no previous file with comments | « ash/mus/BUILD.gn ('k') | ash/mus/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698