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

Unified Diff: components/mus/example/wm/non_client_frame_controller.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: components/mus/example/wm/non_client_frame_controller.h
diff --git a/components/mus/example/wm/non_client_frame_controller.h b/components/mus/example/wm/non_client_frame_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..914f7eb41db5065ca3a0a2e380005cd092b17338
--- /dev/null
+++ b/components/mus/example/wm/non_client_frame_controller.h
@@ -0,0 +1,34 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_MUS_EXAMPLE_WM_NON_CLIENT_FRAME_CONTROLLER_H_
+#define COMPONENTS_MUS_EXAMPLE_WM_NON_CLIENT_FRAME_CONTROLLER_H_
+
+#include "base/macros.h"
+#include "ui/views/widget/widget_delegate.h"
+
+namespace mojo {
+class Shell;
+}
+
+namespace mus {
+class Window;
+}
+
+// Provides the non-client frame for mus Windows.
+class NonClientFrameController : public views::WidgetDelegateView {
+ public:
+ // NonClientFrameController deletes itself when |window| is destroyed.
+ NonClientFrameController(mojo::Shell* shell, mus::Window* window);
+
+ private:
+ ~NonClientFrameController() override;
+
+ // views::WidgetDelegateView:
+ views::View* GetContentsView() override;
+
+ DISALLOW_COPY_AND_ASSIGN(NonClientFrameController);
+};
+
+#endif // COMPONENTS_MUS_EXAMPLE_WM_NON_CLIENT_FRAME_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698