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

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

Issue 863173004: More class names for views class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « ui/views/widget/widget_delegate.h ('k') | no next file » | 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 #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/bubble/bubble_delegate.h" 9 #include "ui/views/bubble/bubble_delegate.h"
10 #include "ui/views/view.h" 10 #include "ui/views/view.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 bool WidgetDelegate::ShouldDescendIntoChildForEventHandling( 176 bool WidgetDelegate::ShouldDescendIntoChildForEventHandling(
177 gfx::NativeView child, 177 gfx::NativeView child,
178 const gfx::Point& location) { 178 const gfx::Point& location) {
179 return true; 179 return true;
180 } 180 }
181 181
182 //////////////////////////////////////////////////////////////////////////////// 182 ////////////////////////////////////////////////////////////////////////////////
183 // WidgetDelegateView: 183 // WidgetDelegateView:
184 184
185 // static
186 const char WidgetDelegateView::kViewClassName[] = "WidgetDelegateView";
187
185 WidgetDelegateView::WidgetDelegateView() { 188 WidgetDelegateView::WidgetDelegateView() {
186 // A WidgetDelegate should be deleted on DeleteDelegate. 189 // A WidgetDelegate should be deleted on DeleteDelegate.
187 set_owned_by_client(); 190 set_owned_by_client();
188 } 191 }
189 192
190 WidgetDelegateView::~WidgetDelegateView() { 193 WidgetDelegateView::~WidgetDelegateView() {
191 } 194 }
192 195
193 void WidgetDelegateView::DeleteDelegate() { 196 void WidgetDelegateView::DeleteDelegate() {
194 delete this; 197 delete this;
195 } 198 }
196 199
197 Widget* WidgetDelegateView::GetWidget() { 200 Widget* WidgetDelegateView::GetWidget() {
198 return View::GetWidget(); 201 return View::GetWidget();
199 } 202 }
200 203
201 const Widget* WidgetDelegateView::GetWidget() const { 204 const Widget* WidgetDelegateView::GetWidget() const {
202 return View::GetWidget(); 205 return View::GetWidget();
203 } 206 }
204 207
208 const char* WidgetDelegateView::GetClassName() const {
209 return kViewClassName;
210 }
211
205 } // namespace views 212 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698