Commit f4167cf7 authored by tfarina@chromium.org's avatar tfarina@chromium.org

views: Store only the name of the class in kViewClassName constants.

BUG=235984
R=jamescook@chromium.org,sky@chromium.org
NOTRY=True

Review URL: https://chromiumcodereview.appspot.com/15419002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202355 0039d316-1c4b-4281-b951-d872f2087c98
parent f68eb9bb
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
namespace views { namespace views {
// static // static
const char Checkbox::kViewClassName[] = "views/Checkbox"; const char Checkbox::kViewClassName[] = "Checkbox";
Checkbox::Checkbox(const string16& label) Checkbox::Checkbox(const string16& label)
: LabelButton(NULL, label), : LabelButton(NULL, label),
......
...@@ -17,7 +17,7 @@ namespace views { ...@@ -17,7 +17,7 @@ namespace views {
static const int kHoverFadeDurationMs = 150; static const int kHoverFadeDurationMs = 150;
// static // static
const char CustomButton::kViewClassName[] = "views/CustomButton"; const char CustomButton::kViewClassName[] = "CustomButton";
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// CustomButton, public: // CustomButton, public:
......
...@@ -31,7 +31,7 @@ const int kHoverAnimationDurationMs = 170; ...@@ -31,7 +31,7 @@ const int kHoverAnimationDurationMs = 170;
namespace views { namespace views {
// static // static
const char LabelButton::kViewClassName[] = "views/LabelButton"; const char LabelButton::kViewClassName[] = "LabelButton";
LabelButton::LabelButton(ButtonListener* listener, const string16& text) LabelButton::LabelButton(ButtonListener* listener, const string16& text)
: CustomButton(listener), : CustomButton(listener),
......
...@@ -37,7 +37,7 @@ static const int kDefaultMenuOffsetY = -4; ...@@ -37,7 +37,7 @@ static const int kDefaultMenuOffsetY = -4;
// static // static
const int MenuButton::kMenuMarkerPaddingLeft = 3; const int MenuButton::kMenuMarkerPaddingLeft = 3;
const int MenuButton::kMenuMarkerPaddingRight = -1; const int MenuButton::kMenuMarkerPaddingRight = -1;
const char MenuButton::kViewClassName[] = "views/MenuButton"; const char MenuButton::kViewClassName[] = "MenuButton";
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// //
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
namespace views { namespace views {
// static // static
const char RadioButton::kViewClassName[] = "views/RadioButton"; const char RadioButton::kViewClassName[] = "RadioButton";
RadioButton::RadioButton(const string16& label, int group_id) RadioButton::RadioButton(const string16& label, int group_id)
: Checkbox(label) { : Checkbox(label) {
......
...@@ -61,9 +61,9 @@ const int kPushedImages[] = IMAGE_GRID(IDR_TEXTBUTTON_PRESSED); ...@@ -61,9 +61,9 @@ const int kPushedImages[] = IMAGE_GRID(IDR_TEXTBUTTON_PRESSED);
} // namespace } // namespace
// static // static
const char TextButtonBase::kViewClassName[] = "views/TextButtonBase"; const char TextButtonBase::kViewClassName[] = "TextButtonBase";
// static // static
const char TextButton::kViewClassName[] = "views/TextButton"; const char TextButton::kViewClassName[] = "TextButton";
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// //
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
namespace views { namespace views {
// static // static
const char Combobox::kViewClassName[] = "views/Combobox"; const char Combobox::kViewClassName[] = "Combobox";
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// Combobox, public: // Combobox, public:
......
...@@ -36,7 +36,7 @@ const int kCachedSizeLimit = 10; ...@@ -36,7 +36,7 @@ const int kCachedSizeLimit = 10;
namespace views { namespace views {
// static // static
const char Label::kViewClassName[] = "views/Label"; const char Label::kViewClassName[] = "Label";
Label::Label() { Label::Label() {
Init(string16(), GetDefaultFont()); Init(string16(), GetDefaultFont());
......
...@@ -83,7 +83,7 @@ int MenuItemView::item_right_margin_; ...@@ -83,7 +83,7 @@ int MenuItemView::item_right_margin_;
int MenuItemView::pref_menu_height_; int MenuItemView::pref_menu_height_;
// static // static
const char MenuItemView::kViewClassName[] = "views/MenuItemView"; const char MenuItemView::kViewClassName[] = "MenuItemView";
MenuItemView::MenuItemView(MenuDelegate* delegate) MenuItemView::MenuItemView(MenuDelegate* delegate)
: delegate_(delegate), : delegate_(delegate),
......
...@@ -30,7 +30,7 @@ const SkColor kDropIndicatorColor = SK_ColorBLACK; ...@@ -30,7 +30,7 @@ const SkColor kDropIndicatorColor = SK_ColorBLACK;
namespace views { namespace views {
// static // static
const char SubmenuView::kViewClassName[] = "views/SubmenuView"; const char SubmenuView::kViewClassName[] = "SubmenuView";
SubmenuView::SubmenuView(MenuItemView* parent) SubmenuView::SubmenuView(MenuItemView* parent)
: parent_menu_item_(parent), : parent_menu_item_(parent),
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
namespace views { namespace views {
// static // static
const char NativeViewHost::kViewClassName[] = "views/NativeViewHost"; const char NativeViewHost::kViewClassName[] = "NativeViewHost";
#if defined(USE_AURA) #if defined(USE_AURA)
// Views implmenetatxion draws the focus. // Views implmenetatxion draws the focus.
......
...@@ -47,7 +47,7 @@ namespace views { ...@@ -47,7 +47,7 @@ namespace views {
// Textfield // Textfield
// static // static
const char Textfield::kViewClassName[] = "views/Textfield"; const char Textfield::kViewClassName[] = "Textfield";
// static // static
bool Textfield::IsViewsTextfieldEnabled() { bool Textfield::IsViewsTextfieldEnabled() {
......
...@@ -154,7 +154,7 @@ class PostEventDispatchHandler : public ui::EventHandler { ...@@ -154,7 +154,7 @@ class PostEventDispatchHandler : public ui::EventHandler {
ViewsDelegate* ViewsDelegate::views_delegate = NULL; ViewsDelegate* ViewsDelegate::views_delegate = NULL;
// static // static
const char View::kViewClassName[] = "views/View"; const char View::kViewClassName[] = "View";
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// View, public: // View, public:
......
...@@ -47,7 +47,7 @@ class MouseEnterExitEvent : public ui::MouseEvent { ...@@ -47,7 +47,7 @@ class MouseEnterExitEvent : public ui::MouseEvent {
} // namespace } // namespace
// static // static
const char RootView::kViewClassName[] = "views/RootView"; const char RootView::kViewClassName[] = "RootView";
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// RootView, public: // RootView, public:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment