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

Unified Diff: components/mus/ws/window_tree.h

Issue 2068093002: mus: Allow embedder to intercept events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot-merge Created 4 years, 6 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
« no previous file with comments | « components/mus/ws/window_server.cc ('k') | components/mus/ws/window_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_tree.h
diff --git a/components/mus/ws/window_tree.h b/components/mus/ws/window_tree.h
index 9ef59aca9666d68c9ee7e903e411e9c3391e2316..0e804f355a116e70aeecc3cb1e81222f50cb526b 100644
--- a/components/mus/ws/window_tree.h
+++ b/components/mus/ws/window_tree.h
@@ -79,6 +79,11 @@ class WindowTree : public mojom::WindowTree,
ClientSpecificId id() const { return id_; }
+ void set_embedder_intercepts_events() { embedder_intercepts_events_ = true; }
+ bool embedder_intercepts_events() const {
+ return embedder_intercepts_events_;
+ }
+
const UserId& user_id() const { return user_id_; }
mojom::WindowTreeClient* client() { return binding_->client(); }
@@ -163,7 +168,8 @@ class WindowTree : public mojom::WindowTree,
bool SetWindowOpacity(const ClientWindowId& window_id, float opacity);
bool SetFocus(const ClientWindowId& window_id);
bool Embed(const ClientWindowId& window_id,
- mojom::WindowTreeClientPtr client);
+ mojom::WindowTreeClientPtr client,
+ uint32_t flags);
void DispatchInputEvent(ServerWindow* target, const ui::Event& event);
bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id);
@@ -375,6 +381,7 @@ class WindowTree : public mojom::WindowTree,
mojom::SurfaceClientPtr client) override;
void Embed(Id transport_window_id,
mojom::WindowTreeClientPtr client,
+ uint32_t flags,
const EmbedCallback& callback) override;
void SetFocus(uint32_t change_id, Id transport_window_id) override;
void SetCanFocus(Id transport_window_id, bool can_focus) override;
@@ -479,6 +486,7 @@ class WindowTree : public mojom::WindowTree,
std::unique_ptr<WaitingForTopLevelWindowInfo>
waiting_for_top_level_window_info_;
+ bool embedder_intercepts_events_ = false;
DISALLOW_COPY_AND_ASSIGN(WindowTree);
};
« no previous file with comments | « components/mus/ws/window_server.cc ('k') | components/mus/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698