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

Unified Diff: ui/aura/mus/window_port_mus.h

Issue 2456623002: Fixes to WindowTreeHostMus (Closed)
Patch Set: merge Created 4 years, 2 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 | « ui/aura/mus/window_mus.h ('k') | ui/aura/mus/window_port_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_port_mus.h
diff --git a/ui/aura/mus/window_port_mus.h b/ui/aura/mus/window_port_mus.h
index 1f7a1aa24e4ff8c1c89267fad34b2097ae205cfa..d591a368174c7669fe94ba3dd7923877f217b970 100644
--- a/ui/aura/mus/window_port_mus.h
+++ b/ui/aura/mus/window_port_mus.h
@@ -36,7 +36,9 @@ class WindowTreeClientPrivate;
// calling back to WindowTreeClient.
class AURA_EXPORT WindowPortMus : public WindowPort, public WindowMus {
public:
- WindowPortMus(WindowTreeClient* client);
+ // See WindowMus's constructor for details on |create_remote_window|.
+ explicit WindowPortMus(WindowTreeClient* client,
+ bool create_remote_window = true);
~WindowPortMus() override;
static WindowPortMus* Get(Window* window);
@@ -137,6 +139,13 @@ class AURA_EXPORT WindowPortMus : public WindowPort, public WindowMus {
DISALLOW_COPY_AND_ASSIGN(ScopedServerChange);
};
+ struct WindowMusChangeDataImpl : public WindowMusChangeData {
+ WindowMusChangeDataImpl();
+ ~WindowMusChangeDataImpl() override;
+
+ std::unique_ptr<ScopedServerChange> change;
+ };
+
// Creates and adds a ServerChange to |server_changes_|. Returns the id
// assigned to the ServerChange.
ServerChangeIdType ScheduleChange(const ServerChangeType type,
@@ -168,6 +177,10 @@ class AURA_EXPORT WindowPortMus : public WindowPort, public WindowMus {
const std::vector<uint8_t>* property_data) override;
void SetSurfaceIdFromServer(
std::unique_ptr<SurfaceInfo> surface_info) override;
+ std::unique_ptr<WindowMusChangeData> PrepareForServerBoundsChange(
+ const gfx::Rect& bounds) override;
+ std::unique_ptr<WindowMusChangeData> PrepareForServerVisibilityChange(
+ bool value) override;
void NotifyEmbeddedAppDisconnected() override;
// WindowPort:
@@ -186,6 +199,7 @@ class AURA_EXPORT WindowPortMus : public WindowPort, public WindowMus {
std::unique_ptr<WindowPortPropertyData> data) override;
WindowTreeClient* window_tree_client_;
+
Window* window_ = nullptr;
ServerChangeIdType next_server_change_id_ = 0;
« no previous file with comments | « ui/aura/mus/window_mus.h ('k') | ui/aura/mus/window_port_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698