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

Side by Side Diff: ui/views/view.cc

Issue 15419002: views: Store only the name of the class in kViewClassName constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/controls/textfield/textfield.cc ('k') | ui/views/widget/root_view.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 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first. 5 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first.
6 6
7 #include "ui/views/view.h" 7 #include "ui/views/view.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <cmath> 10 #include <cmath>
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 DISALLOW_COPY_AND_ASSIGN(PostEventDispatchHandler); 148 DISALLOW_COPY_AND_ASSIGN(PostEventDispatchHandler);
149 }; 149 };
150 150
151 } // namespace internal 151 } // namespace internal
152 152
153 // static 153 // static
154 ViewsDelegate* ViewsDelegate::views_delegate = NULL; 154 ViewsDelegate* ViewsDelegate::views_delegate = NULL;
155 155
156 // static 156 // static
157 const char View::kViewClassName[] = "views/View"; 157 const char View::kViewClassName[] = "View";
158 158
159 //////////////////////////////////////////////////////////////////////////////// 159 ////////////////////////////////////////////////////////////////////////////////
160 // View, public: 160 // View, public:
161 161
162 // Creation and lifetime ------------------------------------------------------- 162 // Creation and lifetime -------------------------------------------------------
163 163
164 View::View() 164 View::View()
165 : owned_by_client_(false), 165 : owned_by_client_(false),
166 id_(0), 166 id_(0),
167 group_(-1), 167 group_(-1),
(...skipping 2130 matching lines...) Expand 10 before | Expand all | Expand 10 after
2298 ConvertPointToWidget(this, &widget_location); 2298 ConvertPointToWidget(this, &widget_location);
2299 GetWidget()->RunShellDrag(this, data, widget_location, drag_operations, 2299 GetWidget()->RunShellDrag(this, data, widget_location, drag_operations,
2300 source); 2300 source);
2301 return true; 2301 return true;
2302 #else 2302 #else
2303 return false; 2303 return false;
2304 #endif // !defined(OS_MACOSX) 2304 #endif // !defined(OS_MACOSX)
2305 } 2305 }
2306 2306
2307 } // namespace views 2307 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/widget/root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698