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

Unified Diff: components/mus/display_manager.cc

Issue 1352043005: mus: Implement Window Server Capture Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a test Created 5 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
Index: components/mus/display_manager.cc
diff --git a/components/mus/display_manager.cc b/components/mus/display_manager.cc
index 195d5a138e3f83ccfd862abccdfe004256e96109..d13c406aeb88b75d972722b2d238362c63832338 100644
--- a/components/mus/display_manager.cc
+++ b/components/mus/display_manager.cc
@@ -171,6 +171,10 @@ void DefaultDisplayManager::SetTitle(const base::string16& title) {
platform_window_->SetTitle(title);
}
+void DefaultDisplayManager::SetCapture() {
+ platform_window_->SetCapture();
+}
+
const mojo::ViewportMetrics& DefaultDisplayManager::GetViewportMetrics() {
return metrics_;
}
@@ -315,7 +319,9 @@ void DefaultDisplayManager::OnClosed() {
void DefaultDisplayManager::OnWindowStateChanged(
ui::PlatformWindowState new_state) {}
-void DefaultDisplayManager::OnLostCapture() {}
+void DefaultDisplayManager::OnLostCapture() {
+ delegate_->OnLostCapture();
+}
void DefaultDisplayManager::OnAcceleratedWidgetAvailable(
gfx::AcceleratedWidget widget,

Powered by Google App Engine
This is Rietveld 408576698