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

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

Issue 2507963002: Implement hit tests/client area. (Closed)
Patch Set: add it back 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
« no previous file with comments | « ui/views/mus/BUILD.gn ('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 4980ac923f1f3f190724e3c862f16ac23499c869..47a1ed7e6dd6e749fc2a95ae2a05ecaf6e199f1f 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;
« no previous file with comments | « ui/views/mus/BUILD.gn ('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