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

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

Issue 2390953004: WidgetDelegateView is its own contents view. (Closed)
Patch Set: minor fixes Created 4 years, 2 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
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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // Internal class name. 204 // Internal class name.
205 static const char kViewClassName[]; 205 static const char kViewClassName[];
206 206
207 WidgetDelegateView(); 207 WidgetDelegateView();
208 ~WidgetDelegateView() override; 208 ~WidgetDelegateView() override;
209 209
210 // WidgetDelegate: 210 // WidgetDelegate:
211 void DeleteDelegate() override; 211 void DeleteDelegate() override;
212 Widget* GetWidget() override; 212 Widget* GetWidget() override;
213 const Widget* GetWidget() const override; 213 const Widget* GetWidget() const override;
214 views::View* GetContentsView() override;
214 215
215 // View: 216 // View:
216 const char* GetClassName() const override; 217 const char* GetClassName() const override;
217 218
218 private: 219 private:
219 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); 220 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView);
220 }; 221 };
221 222
222 } // namespace views 223 } // namespace views
223 224
224 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ 225 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698