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

Side by Side Diff: ui/views/widget/widget_delegate.cc

Issue 567463002: Color picker window should not have a minimize button. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased and Added unit test for minimize button visibility. Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « ui/views/widget/widget_delegate.h ('k') | ui/views/window/custom_frame_view.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 (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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 bool WidgetDelegate::CanResize() const { 46 bool WidgetDelegate::CanResize() const {
47 return false; 47 return false;
48 } 48 }
49 49
50 bool WidgetDelegate::CanMaximize() const { 50 bool WidgetDelegate::CanMaximize() const {
51 return false; 51 return false;
52 } 52 }
53 53
54 bool WidgetDelegate::CanMinimize() const {
55 return false;
56 }
57
54 bool WidgetDelegate::CanActivate() const { 58 bool WidgetDelegate::CanActivate() const {
55 return can_activate_; 59 return can_activate_;
56 } 60 }
57 61
58 ui::ModalType WidgetDelegate::GetModalType() const { 62 ui::ModalType WidgetDelegate::GetModalType() const {
59 return ui::MODAL_TYPE_NONE; 63 return ui::MODAL_TYPE_NONE;
60 } 64 }
61 65
62 ui::AXRole WidgetDelegate::GetAccessibleWindowRole() const { 66 ui::AXRole WidgetDelegate::GetAccessibleWindowRole() const {
63 return ui::AX_ROLE_WINDOW; 67 return ui::AX_ROLE_WINDOW;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 196
193 Widget* WidgetDelegateView::GetWidget() { 197 Widget* WidgetDelegateView::GetWidget() {
194 return View::GetWidget(); 198 return View::GetWidget();
195 } 199 }
196 200
197 const Widget* WidgetDelegateView::GetWidget() const { 201 const Widget* WidgetDelegateView::GetWidget() const {
198 return View::GetWidget(); 202 return View::GetWidget();
199 } 203 }
200 204
201 } // namespace views 205 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget_delegate.h ('k') | ui/views/window/custom_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698