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

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

Issue 9452008: Allow platform apps to specify a maximum size for the shell container. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing file Created 8 years, 9 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/native_widget_win.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_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 #pragma once 7 #pragma once
8 8
9 #include "ui/base/events.h" 9 #include "ui/base/events.h"
10 #include "ui/views/views_export.h" 10 #include "ui/views/views_export.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Called just before the native widget is destroyed. This is the delegate's 62 // Called just before the native widget is destroyed. This is the delegate's
63 // last chance to do anything with the native widget handle. 63 // last chance to do anything with the native widget handle.
64 virtual void OnNativeWidgetDestroying() = 0; 64 virtual void OnNativeWidgetDestroying() = 0;
65 65
66 // Called just after the native widget is destroyed. 66 // Called just after the native widget is destroyed.
67 virtual void OnNativeWidgetDestroyed() = 0; 67 virtual void OnNativeWidgetDestroyed() = 0;
68 68
69 // Returns the smallest size the window can be resized to by the user. 69 // Returns the smallest size the window can be resized to by the user.
70 virtual gfx::Size GetMinimumSize() = 0; 70 virtual gfx::Size GetMinimumSize() = 0;
71 71
72 // Returns the largest size the window can be resized to by the user.
73 virtual gfx::Size GetMaximumSize() = 0;
74
72 // Called when the NativeWidget changed size to |new_size|. 75 // Called when the NativeWidget changed size to |new_size|.
73 virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) = 0; 76 virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) = 0;
74 77
75 // Called when the user begins/ends to change the bounds of the window. 78 // Called when the user begins/ends to change the bounds of the window.
76 virtual void OnNativeWidgetBeginUserBoundsChange() = 0; 79 virtual void OnNativeWidgetBeginUserBoundsChange() = 0;
77 virtual void OnNativeWidgetEndUserBoundsChange() = 0; 80 virtual void OnNativeWidgetEndUserBoundsChange() = 0;
78 81
79 // Returns true if the delegate has a FocusManager. 82 // Returns true if the delegate has a FocusManager.
80 virtual bool HasFocusManager() const = 0; 83 virtual bool HasFocusManager() const = 0;
81 84
(...skipping 27 matching lines...) Expand all
109 112
110 // 113 //
111 virtual Widget* AsWidget() = 0; 114 virtual Widget* AsWidget() = 0;
112 virtual const Widget* AsWidget() const = 0; 115 virtual const Widget* AsWidget() const = 0;
113 }; 116 };
114 117
115 } // namespace internal 118 } // namespace internal
116 } // namespace views 119 } // namespace views
117 120
118 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 121 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/view.cc ('k') | ui/views/widget/native_widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698