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_ |