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

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

Issue 2390953004: WidgetDelegateView is its own contents view. (Closed)
Patch Set: another minor fix 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 #include "ui/views/widget/widget_delegate.h" 5 #include "ui/views/widget/widget_delegate.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "ui/gfx/image/image_skia.h" 8 #include "ui/gfx/image/image_skia.h"
9 #include "ui/views/view.h" 9 #include "ui/views/view.h"
10 #include "ui/views/views_delegate.h" 10 #include "ui/views/views_delegate.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 } 197 }
198 198
199 Widget* WidgetDelegateView::GetWidget() { 199 Widget* WidgetDelegateView::GetWidget() {
200 return View::GetWidget(); 200 return View::GetWidget();
201 } 201 }
202 202
203 const Widget* WidgetDelegateView::GetWidget() const { 203 const Widget* WidgetDelegateView::GetWidget() const {
204 return View::GetWidget(); 204 return View::GetWidget();
205 } 205 }
206 206
207 views::View* WidgetDelegateView::GetContentsView() {
208 return this;
209 }
210
207 const char* WidgetDelegateView::GetClassName() const { 211 const char* WidgetDelegateView::GetClassName() const {
208 return kViewClassName; 212 return kViewClassName;
209 } 213 }
210 214
211 } // namespace views 215 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698