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

Unified Diff: components/mus/public/cpp/lib/view.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/public/cpp/lib/view.cc
diff --git a/components/mus/public/cpp/lib/view.cc b/components/mus/public/cpp/lib/view.cc
index 88228eba945e901ba770e8277d8ac192a16d60c7..e40f1fcd23f454067009a5e27ffbd64d665d5b8c 100644
--- a/components/mus/public/cpp/lib/view.cc
+++ b/components/mus/public/cpp/lib/view.cc
@@ -370,6 +370,11 @@ void View::SetImeVisibility(bool visible, mojo::TextInputStatePtr state) {
}
}
+void View::SetCapture() {
+ if (connection_)
+ static_cast<ViewTreeClientImpl*>(connection_)->SetCapture(id_);
+}
+
void View::SetFocus() {
if (connection_)
static_cast<ViewTreeClientImpl*>(connection_)->SetFocus(id_);

Powered by Google App Engine
This is Rietveld 408576698