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

Side by Side Diff: ui/views/controls/native/native_view_host.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/menu/submenu_view.cc ('k') | ui/views/controls/textfield/textfield.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 #include "ui/views/controls/native/native_view_host.h" 5 #include "ui/views/controls/native/native_view_host.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/gfx/canvas.h" 8 #include "ui/gfx/canvas.h"
9 #include "ui/views/controls/native/native_view_host_wrapper.h" 9 #include "ui/views/controls/native/native_view_host_wrapper.h"
10 #include "ui/views/widget/widget.h" 10 #include "ui/views/widget/widget.h"
11 11
12 namespace views { 12 namespace views {
13 13
14 // static 14 // static
15 const char NativeViewHost::kViewClassName[] = "views/NativeViewHost"; 15 const char NativeViewHost::kViewClassName[] = "NativeViewHost";
16 16
17 #if defined(USE_AURA) 17 #if defined(USE_AURA)
18 // Views implmenetatxion draws the focus. 18 // Views implmenetatxion draws the focus.
19 // TODO(oshima): Eliminate this flag and consolidate 19 // TODO(oshima): Eliminate this flag and consolidate
20 // the focus border code. 20 // the focus border code.
21 const bool NativeViewHost::kRenderNativeControlFocus = false; 21 const bool NativeViewHost::kRenderNativeControlFocus = false;
22 #else 22 #else
23 // static 23 // static
24 const bool NativeViewHost::kRenderNativeControlFocus = true; 24 const bool NativeViewHost::kRenderNativeControlFocus = true;
25 #endif 25 #endif
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 Widget::GetAllChildWidgets(native_view(), &widgets); 211 Widget::GetAllChildWidgets(native_view(), &widgets);
212 for (Widget::Widgets::iterator i = widgets.begin(); i != widgets.end(); ++i) { 212 for (Widget::Widgets::iterator i = widgets.begin(); i != widgets.end(); ++i) {
213 focus_manager->ViewRemoved((*i)->GetRootView()); 213 focus_manager->ViewRemoved((*i)->GetRootView());
214 if (!focus_manager->GetFocusedView()) 214 if (!focus_manager->GetFocusedView())
215 return; 215 return;
216 } 216 }
217 } 217 }
218 218
219 219
220 } // namespace views 220 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/menu/submenu_view.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698