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

Unified Diff: components/mus/public/cpp/lib/window_tree_client_impl.h

Issue 1352043005: mus: Implement Window Server Capture Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added capture unit tests Created 5 years, 1 month 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/window_tree_client_impl.h
diff --git a/components/mus/public/cpp/lib/window_tree_client_impl.h b/components/mus/public/cpp/lib/window_tree_client_impl.h
index 78e37f110a6630dc293d078442a8bc4a7bd7c4f6..efd7ae903018dca5c605657153463760f9af98c1 100644
--- a/components/mus/public/cpp/lib/window_tree_client_impl.h
+++ b/components/mus/public/cpp/lib/window_tree_client_impl.h
@@ -63,6 +63,8 @@ class WindowTreeClientImpl : public WindowTreeConnection,
void SetBounds(Window* window,
const gfx::Rect& old_bounds,
const gfx::Rect& bounds);
+ void SetCapture(Window* window);
+ void ReleaseCapture(Window* window);
void SetClientArea(Id window_id, const gfx::Insets& client_area);
void SetFocus(Id window_id);
void SetVisible(Id window_id, bool visible);
@@ -145,6 +147,7 @@ class WindowTreeClientImpl : public WindowTreeConnection,
uint32_t access_policy) override;
void OnEmbeddedAppDisconnected(Id window_id) override;
void OnUnembed() override;
+ void OnLostCapture(Id window_id) override;
void OnWindowBoundsChanged(Id window_id,
mojo::RectPtr old_bounds,
mojo::RectPtr new_bounds) override;

Powered by Google App Engine
This is Rietveld 408576698