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

Unified Diff: ui/views/mus/desktop_window_tree_host_mus.h

Issue 2581503002: Adds additional_client_area to client area (Closed)
Patch Set: merge Created 4 years 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_tree_host_mus_unittest.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/desktop_window_tree_host_mus.h
diff --git a/ui/views/mus/desktop_window_tree_host_mus.h b/ui/views/mus/desktop_window_tree_host_mus.h
index 6603cf3dedc67b657e041df3b3518129f66a4353..562eb0a25b448b4c38a594e1c0ab84eb82132cb9 100644
--- a/ui/views/mus/desktop_window_tree_host_mus.h
+++ b/ui/views/mus/desktop_window_tree_host_mus.h
@@ -37,6 +37,11 @@ class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
// Called when the window was deleted on the server.
void ServerDestroyedWindow() { CloseNow(); }
+ // Controls whether the client area is automatically updated as necessary.
+ void set_auto_update_client_area(bool value) {
+ auto_update_client_area_ = value;
+ }
+
private:
bool IsDocked() const;
@@ -48,6 +53,9 @@ class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
void SetBoundsInDIP(const gfx::Rect& bounds_in_dip);
+ // Returns true if the client area should be set on this.
+ bool ShouldSendClientAreaToServer() const;
+
// DesktopWindowTreeHost:
void Init(aura::Window* content_window,
const Widget::InitParams& params) override;
@@ -142,6 +150,8 @@ class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
std::unique_ptr<wm::CursorManager> cursor_manager_;
+ bool auto_update_client_area_ = true;
+
// Used so that Close() isn't immediate.
base::WeakPtrFactory<DesktopWindowTreeHostMus> close_widget_factory_;
« no previous file with comments | « ui/aura/mus/window_tree_host_mus_unittest.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698