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

Unified Diff: components/mus/public/cpp/window.h

Issue 1605773004: mus: Implement Window Server Capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Create InFlightCaptureChange add tests Created 4 years, 11 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/window.h
diff --git a/components/mus/public/cpp/window.h b/components/mus/public/cpp/window.h
index 21661c20d2ce5d4585c9f6a7d196cc40dda446e9..0377497ea410b56da5fbe0a743ffae3046c3df46 100644
--- a/components/mus/public/cpp/window.h
+++ b/components/mus/public/cpp/window.h
@@ -190,6 +190,10 @@ class Window {
void SetTextInputState(mojo::TextInputStatePtr state);
void SetImeVisibility(bool visible, mojo::TextInputStatePtr state);
+ bool has_capture() const { return has_capture_; }
+ void SetCapture();
+ void ReleaseCapture();
+
// Focus.
void SetFocus();
bool HasFocus() const;
@@ -242,6 +246,7 @@ class Window {
// Returns true if the order actually changed.
bool LocalReorder(Window* relative, mojom::OrderDirection direction);
void LocalSetBounds(const gfx::Rect& old_bounds, const gfx::Rect& new_bounds);
+ void LocalSetCapture(bool capture);
void LocalSetClientArea(
const gfx::Insets& new_client_area,
const std::vector<gfx::Rect>& additional_client_areas);
@@ -303,6 +308,7 @@ class Window {
mojom::ViewportMetricsPtr viewport_metrics_;
bool visible_;
+ bool has_capture_;
mojom::Cursor cursor_id_;

Powered by Google App Engine
This is Rietveld 408576698