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

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

Issue 10025039: Reland Propagate OnNativeWidgetMove to delegate/observers, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename views::Widget::Observer::OnWidgetMoved to avoid conflicts with WidgetDelegate::OnWidgetMove. Created 8 years, 8 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/widget/native_widget_aura.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 72 // Returns the largest size the window can be resized to by the user.
73 virtual gfx::Size GetMaximumSize() = 0; 73 virtual gfx::Size GetMaximumSize() = 0;
74 74
75 // Called when the NativeWidget changed position.
76 virtual void OnNativeWidgetMove() = 0;
77
75 // Called when the NativeWidget changed size to |new_size|. 78 // Called when the NativeWidget changed size to |new_size|.
76 virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) = 0; 79 virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) = 0;
77 80
78 // Called when the user begins/ends to change the bounds of the window. 81 // Called when the user begins/ends to change the bounds of the window.
79 virtual void OnNativeWidgetBeginUserBoundsChange() = 0; 82 virtual void OnNativeWidgetBeginUserBoundsChange() = 0;
80 virtual void OnNativeWidgetEndUserBoundsChange() = 0; 83 virtual void OnNativeWidgetEndUserBoundsChange() = 0;
81 84
82 // Returns true if the delegate has a FocusManager. 85 // Returns true if the delegate has a FocusManager.
83 virtual bool HasFocusManager() const = 0; 86 virtual bool HasFocusManager() const = 0;
84 87
(...skipping 27 matching lines...) Expand all
112 115
113 // 116 //
114 virtual Widget* AsWidget() = 0; 117 virtual Widget* AsWidget() = 0;
115 virtual const Widget* AsWidget() const = 0; 118 virtual const Widget* AsWidget() const = 0;
116 }; 119 };
117 120
118 } // namespace internal 121 } // namespace internal
119 } // namespace views 122 } // namespace views
120 123
121 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 124 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/native_widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698