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

Side by Side Diff: ui/views/widget/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: Now using IsWindowInList. 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/views/widget/widget_delegate.h" 5 #include "ui/views/widget/widget_delegate.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "ui/gfx/image/image_skia.h" 8 #include "ui/gfx/image/image_skia.h"
9 #include "ui/views/bubble/bubble_delegate.h" 9 #include "ui/views/bubble/bubble_delegate.h"
10 #include "ui/views/view.h" 10 #include "ui/views/view.h"
(...skipping 26 matching lines...) Expand all
37 37
38 BubbleDelegateView* WidgetDelegate::AsBubbleDelegate() { 38 BubbleDelegateView* WidgetDelegate::AsBubbleDelegate() {
39 return NULL; 39 return NULL;
40 } 40 }
41 41
42 DialogDelegate* WidgetDelegate::AsDialogDelegate() { 42 DialogDelegate* WidgetDelegate::AsDialogDelegate() {
43 return NULL; 43 return NULL;
44 } 44 }
45 45
46 bool WidgetDelegate::CanResize() const { 46 bool WidgetDelegate::CanResize() const {
47 return false; 47 return true;
48 } 48 }
49 49
50 bool WidgetDelegate::CanMaximize() const { 50 bool WidgetDelegate::CanMaximize() const {
51 return false; 51 return true;
52 } 52 }
53 53
54 bool WidgetDelegate::CanMinimize() const { 54 bool WidgetDelegate::CanMinimize() const {
55 return false; 55 return true;
oshima 2014/10/25 01:35:43 you don't need these change right?
afakhry 2014/10/27 16:10:06 We need these changes, because returning false wil
oshima 2014/10/27 18:20:53 If that's the case, please change ActivityWidgetDe
afakhry 2014/10/27 18:57:24 Done.
56 } 56 }
57 57
58 bool WidgetDelegate::CanActivate() const { 58 bool WidgetDelegate::CanActivate() const {
59 return can_activate_; 59 return can_activate_;
60 } 60 }
61 61
62 ui::ModalType WidgetDelegate::GetModalType() const { 62 ui::ModalType WidgetDelegate::GetModalType() const {
63 return ui::MODAL_TYPE_NONE; 63 return ui::MODAL_TYPE_NONE;
64 } 64 }
65 65
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 Widget* WidgetDelegateView::GetWidget() { 197 Widget* WidgetDelegateView::GetWidget() {
198 return View::GetWidget(); 198 return View::GetWidget();
199 } 199 }
200 200
201 const Widget* WidgetDelegateView::GetWidget() const { 201 const Widget* WidgetDelegateView::GetWidget() const {
202 return View::GetWidget(); 202 return View::GetWidget();
203 } 203 }
204 204
205 } // namespace views 205 } // namespace views
OLDNEW
« athena/wm/window_manager_unittest.cc ('K') | « athena/wm/window_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698