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

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

Issue 2507963002: Implement hit tests/client area. (Closed)
Patch Set: fix x11 compile Created 4 years, 1 month 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/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 31232d6778b388a0e39e544d5ed49a07756133d7..c80df5ee5e6fa69de40eb3f22297deb547339d24 100644
--- a/ui/views/mus/desktop_window_tree_host_mus.h
+++ b/ui/views/mus/desktop_window_tree_host_mus.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "ui/aura/env_observer.h"
#include "ui/aura/mus/window_tree_host_mus.h"
+#include "ui/views/mus/mus_client_observer.h"
#include "ui/views/mus/mus_export.h"
#include "ui/views/widget/desktop_aura/desktop_window_tree_host.h"
#include "ui/views/widget/widget.h"
@@ -19,6 +20,7 @@ namespace views {
class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
: public DesktopWindowTreeHost,
+ public MusClientObserver,
public aura::WindowTreeHostMus,
public aura::EnvObserver {
public:
@@ -31,6 +33,9 @@ class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
private:
bool IsDocked() const;
+ void SendClientAreaToServer();
+ void SendHitTestMaskToServer();
+
// DesktopWindowTreeHost:
void Init(aura::Window* content_window,
const Widget::InitParams& params) override;
@@ -77,6 +82,7 @@ class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
Widget::MoveLoopEscapeBehavior escape_behavior) override;
void EndMoveLoop() override;
void SetVisibilityChangedAnimationsEnabled(bool value) override;
+ NonClientFrameView* CreateNonClientFrameView() override;
bool ShouldUseNativeFrame() const override;
bool ShouldWindowContentsBeTransparent() const override;
void FrameTypeChanged() override;
@@ -91,6 +97,9 @@ class VIEWS_MUS_EXPORT DesktopWindowTreeHostMus
bool IsTranslucentWindowOpacitySupported() const override;
void SizeConstraintsChanged() override;
+ // MusClientObserver:
+ void OnWindowManagerFrameValuesChanged() override;
+
// WindowTreeHostMus:
void ShowImpl() override;
void HideImpl() override;

Powered by Google App Engine
This is Rietveld 408576698