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

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

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/color_chooser/color_chooser_view.cc ('k') | ui/views/widget/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 (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 #ifndef UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_
6 #define UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 virtual BubbleDelegateView* AsBubbleDelegate(); 52 virtual BubbleDelegateView* AsBubbleDelegate();
53 virtual DialogDelegate* AsDialogDelegate(); 53 virtual DialogDelegate* AsDialogDelegate();
54 54
55 // Returns true if the window can ever be resized. 55 // Returns true if the window can ever be resized.
56 virtual bool CanResize() const; 56 virtual bool CanResize() const;
57 57
58 // Returns true if the window can ever be maximized. 58 // Returns true if the window can ever be maximized.
59 virtual bool CanMaximize() const; 59 virtual bool CanMaximize() const;
60 60
61 // Returns true if the window can ever be minimized.
62 virtual bool CanMinimize() const;
63
61 // Returns true if the window can be activated. 64 // Returns true if the window can be activated.
62 virtual bool CanActivate() const; 65 virtual bool CanActivate() const;
63 66
64 // Returns the modal type that applies to the widget. Default is 67 // Returns the modal type that applies to the widget. Default is
65 // ui::MODAL_TYPE_NONE (not modal). 68 // ui::MODAL_TYPE_NONE (not modal).
66 virtual ui::ModalType GetModalType() const; 69 virtual ui::ModalType GetModalType() const;
67 70
68 virtual ui::AXRole GetAccessibleWindowRole() const; 71 virtual ui::AXRole GetAccessibleWindowRole() const;
69 72
70 // Returns the title to be read with screen readers. 73 // Returns the title to be read with screen readers.
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 virtual Widget* GetWidget() OVERRIDE; 208 virtual Widget* GetWidget() OVERRIDE;
206 virtual const Widget* GetWidget() const OVERRIDE; 209 virtual const Widget* GetWidget() const OVERRIDE;
207 210
208 private: 211 private:
209 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); 212 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView);
210 }; 213 };
211 214
212 } // namespace views 215 } // namespace views
213 216
214 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ 217 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/color_chooser/color_chooser_view.cc ('k') | ui/views/widget/widget_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698