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

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

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
« no previous file with comments | « no previous file | athena/activity/activity_widget_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef ATHENA_ACTIVITY_ACTIVITY_WIDGET_DELEGATE_H_ 5 #ifndef ATHENA_ACTIVITY_ACTIVITY_WIDGET_DELEGATE_H_
6 #define ATHENA_ACTIVITY_ACTIVITY_WIDGET_DELEGATE_H_ 6 #define ATHENA_ACTIVITY_ACTIVITY_WIDGET_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/views/widget/widget_delegate.h" 9 #include "ui/views/widget/widget_delegate.h"
10 10
(...skipping 10 matching lines...) Expand all
21 // views::WidgetDelegate: 21 // views::WidgetDelegate:
22 base::string16 GetWindowTitle() const override; 22 base::string16 GetWindowTitle() const override;
23 void DeleteDelegate() override; 23 void DeleteDelegate() override;
24 views::Widget* GetWidget() override; 24 views::Widget* GetWidget() override;
25 const views::Widget* GetWidget() const override; 25 const views::Widget* GetWidget() const override;
26 views::View* GetContentsView() override; 26 views::View* GetContentsView() override;
27 views::ClientView* CreateClientView(views::Widget* widget) override; 27 views::ClientView* CreateClientView(views::Widget* widget) override;
28 views::NonClientFrameView* CreateNonClientFrameView( 28 views::NonClientFrameView* CreateNonClientFrameView(
29 views::Widget* widget) override; 29 views::Widget* widget) override;
30 30
31 // Returns true if the window can be resized.
oshima 2014/10/27 19:12:27 you don't need comment for overridden methods. Jus
afakhry 2014/10/27 19:20:57 Done.
32 bool CanResize() const override;
33
34 // Returns true if the window can be maximized.
35 bool CanMaximize() const override;
36
37 // Returns true if the window can be minimized.
38 bool CanMinimize() const override;
39
31 private: 40 private:
32 ActivityViewModel* view_model_; 41 ActivityViewModel* view_model_;
33 42
34 DISALLOW_COPY_AND_ASSIGN(ActivityWidgetDelegate); 43 DISALLOW_COPY_AND_ASSIGN(ActivityWidgetDelegate);
35 }; 44 };
36 45
37 } // namespace athena 46 } // namespace athena
38 47
39 #endif // ATHENA_ACTIVITY_ACTIVITY_WIDGET_DELEGATE_H_ 48 #endif // ATHENA_ACTIVITY_ACTIVITY_WIDGET_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | athena/activity/activity_widget_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698