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

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

Issue 1419793006: Makes windowmanager draw non-client area (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move wm nonclientframeview to wm Created 5 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/native_widget_mus.h
diff --git a/ui/views/mus/native_widget_mus.h b/ui/views/mus/native_widget_mus.h
index 61df1ccdf9bd6f488bfa6349a6d0a36480654b84..dbfbba08f336295a564c034cbf4dc21ad9961db8 100644
--- a/ui/views/mus/native_widget_mus.h
+++ b/ui/views/mus/native_widget_mus.h
@@ -23,6 +23,10 @@ class Shell;
namespace mus {
class Window;
+
+namespace mojom {
+class WindowManager;
+}
}
namespace wm {
@@ -30,6 +34,7 @@ class FocusController;
}
namespace views {
+struct WindowManagerClientAreaInsets;
class WindowTreeHostMus;
// An implementation of NativeWidget that binds to a mus::Window. Because Aura
@@ -47,12 +52,22 @@ class NativeWidgetMus : public internal::NativeWidgetPrivate,
mus::mojom::SurfaceType surface_type);
~NativeWidgetMus() override;
+ // Sets the insets for the client area. These values come from the window
+ // manager.
+ static void SetWindowManagerClientAreaInsets(
+ const WindowManagerClientAreaInsets& insets);
+
+ mus::Window* window() { return window_; }
+
+ protected:
+ // internal::NativeWidgetPrivate:
+ NonClientFrameView* CreateNonClientFrameView() override;
+
private:
void UpdateClientAreaInWindowManager();
// internal::NativeWidgetPrivate:
void InitNativeWidget(const Widget::InitParams& params) override;
- NonClientFrameView* CreateNonClientFrameView() override;
bool ShouldUseNativeFrame() const override;
bool ShouldWindowContentsBeTransparent() const override;
void FrameTypeChanged() override;

Powered by Google App Engine
This is Rietveld 408576698