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

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

Issue 7189019: Fix even more crashes. To help identify remaining crashes now and in the future, I have made the ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 VIEWS_WIDGET_WIDGET_DELEGATE_H_ 5 #ifndef VIEWS_WIDGET_WIDGET_DELEGATE_H_
6 #define VIEWS_WIDGET_WIDGET_DELEGATE_H_ 6 #define VIEWS_WIDGET_WIDGET_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 virtual void DeleteDelegate() {} 128 virtual void DeleteDelegate() {}
129 129
130 // Called when the window's activation state changes. 130 // Called when the window's activation state changes.
131 virtual void OnWindowActivationChanged(bool active) {} 131 virtual void OnWindowActivationChanged(bool active) {}
132 132
133 // Called when the user begins/ends to change the bounds of the window. 133 // Called when the user begins/ends to change the bounds of the window.
134 virtual void OnWindowBeginUserBoundsChange() {} 134 virtual void OnWindowBeginUserBoundsChange() {}
135 virtual void OnWindowEndUserBoundsChange() {} 135 virtual void OnWindowEndUserBoundsChange() {}
136 136
137 // Returns the Widget associated with this delegate. 137 // Returns the Widget associated with this delegate.
138 virtual Widget* GetWidget(); 138 virtual Widget* GetWidget() = 0;
139 virtual const Widget* GetWidget() const; 139 virtual const Widget* GetWidget() const = 0;
140 140
141 // Returns the View that is contained within this Widget. 141 // Returns the View that is contained within this Widget.
142 virtual View* GetContentsView(); 142 virtual View* GetContentsView();
143 143
144 // Called by the Widget to create the Client View used to host the contents 144 // Called by the Widget to create the Client View used to host the contents
145 // of the widget. 145 // of the widget.
146 virtual ClientView* CreateClientView(Widget* widget); 146 virtual ClientView* CreateClientView(Widget* widget);
147 147
148 // Called by the Widget to create the NonClient Frame View for this widget. 148 // Called by the Widget to create the NonClient Frame View for this widget.
149 // Return NULL to use the default one. 149 // Return NULL to use the default one.
(...skipping 28 matching lines...) Expand all
178 virtual const Widget* GetWidget() const OVERRIDE; 178 virtual const Widget* GetWidget() const OVERRIDE;
179 179
180 private: 180 private:
181 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); 181 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView);
182 }; 182 };
183 183
184 } // namespace views 184 } // namespace views
185 185
186 #endif // VIEWS_WIDGET_WIDGET_DELEGATE_H_ 186 #endif // VIEWS_WIDGET_WIDGET_DELEGATE_H_
187 187
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698