| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "athena/activity/activity_widget_delegate.h" | 5 #include "athena/activity/activity_widget_delegate.h" |
| 6 | 6 |
| 7 #include "athena/activity/activity_frame_view.h" | 7 #include "athena/activity/activity_frame_view.h" |
| 8 #include "athena/activity/public/activity_view_model.h" | 8 #include "athena/activity/public/activity_view_model.h" |
| 9 #include "ui/views/view.h" | 9 #include "ui/views/view.h" |
| 10 #include "ui/views/window/client_view.h" | 10 #include "ui/views/window/client_view.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 views::ClientView* ActivityWidgetDelegate::CreateClientView( | 41 views::ClientView* ActivityWidgetDelegate::CreateClientView( |
| 42 views::Widget* widget) { | 42 views::Widget* widget) { |
| 43 return new views::ClientView(widget, view_model_->GetContentsView()); | 43 return new views::ClientView(widget, view_model_->GetContentsView()); |
| 44 } | 44 } |
| 45 | 45 |
| 46 views::NonClientFrameView* ActivityWidgetDelegate::CreateNonClientFrameView( | 46 views::NonClientFrameView* ActivityWidgetDelegate::CreateNonClientFrameView( |
| 47 views::Widget* widget) { | 47 views::Widget* widget) { |
| 48 return new ActivityFrameView(widget, view_model_); | 48 return new ActivityFrameView(widget, view_model_); |
| 49 } | 49 } |
| 50 | 50 |
| 51 // Returns true if the window can be resized. |
| 52 bool ActivityWidgetDelegate::CanResize() const { |
| 53 return true; |
| 54 } |
| 55 |
| 56 // Returns true if the window can be maximized. |
| 57 bool ActivityWidgetDelegate::CanMaximize() const { |
| 58 return true; |
| 59 } |
| 60 |
| 61 // Returns true if the window can be minimized. |
| 62 bool ActivityWidgetDelegate::CanMinimize() const { |
| 63 return true; |
| 64 } |
| 65 |
| 51 } // namespace athena | 66 } // namespace athena |
| OLD | NEW |