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

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

Issue 2542493002: Replace kCanMaximize/Minimize/Resize with kResizeBehavior. (Closed)
Patch Set: Fix int->bool compile issue. Created 4 years 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/native_widget_aura_unittest.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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Returns true if the window can be resized. 56 // Returns true if the window can be resized.
57 virtual bool CanResize() const; 57 virtual bool CanResize() const;
58 58
59 // Returns true if the window can be maximized. 59 // Returns true if the window can be maximized.
60 virtual bool CanMaximize() const; 60 virtual bool CanMaximize() const;
61 61
62 // Returns true if the window can be minimized. 62 // Returns true if the window can be minimized.
63 virtual bool CanMinimize() const; 63 virtual bool CanMinimize() const;
64 64
65 // Returns a bitmask of ui::mojom::kResizeBehavior values.
66 virtual int32_t GetResizeBehavior() const;
67
65 // Returns true if the window can be activated. 68 // Returns true if the window can be activated.
66 virtual bool CanActivate() const; 69 virtual bool CanActivate() const;
67 70
68 // Returns the modal type that applies to the widget. Default is 71 // Returns the modal type that applies to the widget. Default is
69 // ui::MODAL_TYPE_NONE (not modal). 72 // ui::MODAL_TYPE_NONE (not modal).
70 virtual ui::ModalType GetModalType() const; 73 virtual ui::ModalType GetModalType() const;
71 74
72 virtual ui::AXRole GetAccessibleWindowRole() const; 75 virtual ui::AXRole GetAccessibleWindowRole() const;
73 76
74 // Returns the title to be read with screen readers. 77 // Returns the title to be read with screen readers.
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // View: 219 // View:
217 const char* GetClassName() const override; 220 const char* GetClassName() const override;
218 221
219 private: 222 private:
220 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); 223 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView);
221 }; 224 };
222 225
223 } // namespace views 226 } // namespace views
224 227
225 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ 228 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura_unittest.cc ('k') | ui/views/widget/widget_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698