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

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

Issue 2456623002: Fixes to WindowTreeHostMus (Closed)
Patch Set: std::move 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
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..b70bd0d3e26f13862ec8dcf6e4f8b107d8edae9c 100644
--- a/ui/aura/mus/window_port_mus.h
+++ b/ui/aura/mus/window_port_mus.h
@@ -137,6 +137,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 +175,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:

Powered by Google App Engine
This is Rietveld 408576698