forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
and wires up ChromeConsoleServiceProviderDelegate to use it. I will get rid of MusConsoleServiceProviderDelegate soon, but can't until simplified display management is enabled for --mash. BUG=718860 TEST=none Change-Id: I055806ab5f85238ad8b69e87143ea4e795fafa07 Reviewed-on: https://chromium-review.googlesource.com/522545 Commit-Queue: Scott Violet <sky@chromium.org> Reviewed-by: kylechar <kylechar@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org> Reviewed-by: Dan Erat <derat@chromium.org> Cr-Commit-Position: refs/heads/master@{#476881}
- Loading branch information
Scott Violet
authored and
Commit Bot
committed
Jun 3, 2017
1 parent
47dd4cc
commit d64dac1
Showing
17 changed files
with
186 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright 2017 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "ash/display/ash_display_controller.h" | ||
|
||
#include "ash/shell.h" | ||
#include "ui/display/manager/chromeos/display_configurator.h" | ||
|
||
namespace ash { | ||
|
||
AshDisplayController::AshDisplayController() {} | ||
|
||
AshDisplayController::~AshDisplayController() {} | ||
|
||
void AshDisplayController::BindRequest( | ||
mojom::AshDisplayControllerRequest request) { | ||
bindings_.AddBinding(this, std::move(request)); | ||
} | ||
|
||
void AshDisplayController::TakeDisplayControl( | ||
TakeDisplayControlCallback callback) { | ||
Shell::Get()->display_configurator()->TakeControl(std::move(callback)); | ||
} | ||
|
||
void AshDisplayController::RelinquishDisplayControl( | ||
RelinquishDisplayControlCallback callback) { | ||
Shell::Get()->display_configurator()->RelinquishControl(std::move(callback)); | ||
} | ||
|
||
} // namespace ash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright 2017 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef ASH_DISPLAY_ASH_DISPLAY_CONTROLLER_H_ | ||
#define ASH_DISPLAY_ASH_DISPLAY_CONTROLLER_H_ | ||
|
||
#include "ash/public/interfaces/ash_display_controller.mojom.h" | ||
#include "base/macros.h" | ||
#include "mojo/public/cpp/bindings/binding_set.h" | ||
|
||
namespace ash { | ||
|
||
class AshDisplayController : public mojom::AshDisplayController { | ||
public: | ||
AshDisplayController(); | ||
~AshDisplayController() override; | ||
|
||
void BindRequest(mojom::AshDisplayControllerRequest request); | ||
|
||
// mojom::AshDisplayController: | ||
void TakeDisplayControl(TakeDisplayControlCallback callback) override; | ||
void RelinquishDisplayControl( | ||
RelinquishDisplayControlCallback callback) override; | ||
|
||
private: | ||
mojo::BindingSet<mojom::AshDisplayController> bindings_; | ||
|
||
DISALLOW_COPY_AND_ASSIGN(AshDisplayController); | ||
}; | ||
|
||
} // namespace ash | ||
|
||
#endif // ASH_DISPLAY_ASH_DISPLAY_CONTROLLER_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright 2016 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
module ash.mojom; | ||
|
||
// Allows configuring various display related state. | ||
interface AshDisplayController { | ||
// ============================ Virtual Terminal ============================ | ||
|
||
// Take control of all display output. This is called when switching from the | ||
// virtual terminal back to Chrome in response to a dbus message. | ||
TakeDisplayControl() => (bool status); | ||
|
||
// Relinquish control of all display output. This is called when switching | ||
// from Chrome to the virtual terminal in response to a dbus message. | ||
RelinquishDisplayControl() => (bool status); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.