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

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

Issue 296823002: views: Also const-ify GetMaximumSize(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/view.cc ('k') | ui/views/widget/widget.h » ('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_NATIVE_WIDGET_DELEGATE_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/events/event_constants.h" 10 #include "ui/events/event_constants.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual void OnNativeWidgetCreated(bool desktop_widget) = 0; 73 virtual void OnNativeWidgetCreated(bool desktop_widget) = 0;
74 74
75 // Called just before the native widget is destroyed. This is the delegate's 75 // Called just before the native widget is destroyed. This is the delegate's
76 // last chance to do anything with the native widget handle. 76 // last chance to do anything with the native widget handle.
77 virtual void OnNativeWidgetDestroying() = 0; 77 virtual void OnNativeWidgetDestroying() = 0;
78 78
79 // Called just after the native widget is destroyed. 79 // Called just after the native widget is destroyed.
80 virtual void OnNativeWidgetDestroyed() = 0; 80 virtual void OnNativeWidgetDestroyed() = 0;
81 81
82 // Returns the smallest size the window can be resized to by the user. 82 // Returns the smallest size the window can be resized to by the user.
83 virtual gfx::Size GetMinimumSize() = 0; 83 virtual gfx::Size GetMinimumSize() const = 0;
84 84
85 // Returns the largest size the window can be resized to by the user. 85 // Returns the largest size the window can be resized to by the user.
86 virtual gfx::Size GetMaximumSize() = 0; 86 virtual gfx::Size GetMaximumSize() const = 0;
87 87
88 // Called when the NativeWidget changed position. 88 // Called when the NativeWidget changed position.
89 virtual void OnNativeWidgetMove() = 0; 89 virtual void OnNativeWidgetMove() = 0;
90 90
91 // Called when the NativeWidget changed size to |new_size|. 91 // Called when the NativeWidget changed size to |new_size|.
92 virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) = 0; 92 virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) = 0;
93 93
94 // Called when the user begins/ends to change the bounds of the window. 94 // Called when the user begins/ends to change the bounds of the window.
95 virtual void OnNativeWidgetBeginUserBoundsChange() = 0; 95 virtual void OnNativeWidgetBeginUserBoundsChange() = 0;
96 virtual void OnNativeWidgetEndUserBoundsChange() = 0; 96 virtual void OnNativeWidgetEndUserBoundsChange() = 0;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // later. Returns true if the initial focus has been set or the window should 146 // later. Returns true if the initial focus has been set or the window should
147 // not set the initial focus, or false if the caller should set the initial 147 // not set the initial focus, or false if the caller should set the initial
148 // focus (if any). 148 // focus (if any).
149 virtual bool SetInitialFocus(ui::WindowShowState show_state) = 0; 149 virtual bool SetInitialFocus(ui::WindowShowState show_state) = 0;
150 }; 150 };
151 151
152 } // namespace internal 152 } // namespace internal
153 } // namespace views 153 } // namespace views
154 154
155 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 155 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/view.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698