OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_MUS_EXAMPLE_WM_NON_CLIENT_FRAME_CONTROLLER_H_ |
| 6 #define COMPONENTS_MUS_EXAMPLE_WM_NON_CLIENT_FRAME_CONTROLLER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "ui/views/widget/widget_delegate.h" |
| 10 |
| 11 namespace mojo { |
| 12 class Shell; |
| 13 } |
| 14 |
| 15 namespace mus { |
| 16 class Window; |
| 17 } |
| 18 |
| 19 // Provides the non-client frame for mus Windows. |
| 20 class NonClientFrameController : public views::WidgetDelegateView { |
| 21 public: |
| 22 // NonClientFrameController deletes itself when |window| is destroyed. |
| 23 NonClientFrameController(mojo::Shell* shell, mus::Window* window); |
| 24 |
| 25 private: |
| 26 ~NonClientFrameController() override; |
| 27 |
| 28 // views::WidgetDelegateView: |
| 29 views::View* GetContentsView() override; |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(NonClientFrameController); |
| 32 }; |
| 33 |
| 34 #endif // COMPONENTS_MUS_EXAMPLE_WM_NON_CLIENT_FRAME_CONTROLLER_H_ |
OLD | NEW |