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

Side by Side Diff: athena/activity/activity_widget_delegate.cc

Issue 668513003: Selecting an app window from the overview mode maximizes the window only if it's maximizable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Following the review comments Created 6 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698