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

Unified 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, 2 months 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: athena/activity/activity_widget_delegate.cc
diff --git a/athena/activity/activity_widget_delegate.cc b/athena/activity/activity_widget_delegate.cc
index 3c638e8564afc8ad95d00c6c7998af660fc2da3d..dd9d3733abbd5615f5a44cd8d1a973a85e8a2880 100644
--- a/athena/activity/activity_widget_delegate.cc
+++ b/athena/activity/activity_widget_delegate.cc
@@ -48,4 +48,19 @@ views::NonClientFrameView* ActivityWidgetDelegate::CreateNonClientFrameView(
return new ActivityFrameView(widget, view_model_);
}
+// Returns true if the window can be resized.
+bool ActivityWidgetDelegate::CanResize() const {
+ return true;
+}
+
+// Returns true if the window can be maximized.
+bool ActivityWidgetDelegate::CanMaximize() const {
+ return true;
+}
+
+// Returns true if the window can be minimized.
+bool ActivityWidgetDelegate::CanMinimize() const {
+ return true;
+}
+
} // namespace athena

Powered by Google App Engine
This is Rietveld 408576698