/external/chromium_org/ui/views/controls/button/ |
D | label_button.cc | 64 label_(new Label()), in LabelButton() 80 AddChildView(label_); in LabelButton() 81 label_->SetFontList(cached_normal_font_list_); in LabelButton() 82 label_->SetAutoColorReadabilityEnabled(false); in LabelButton() 83 label_->SetHorizontalAlignment(gfx::ALIGN_LEFT); in LabelButton() 105 return label_->text(); in GetText() 110 label_->SetText(text); in SetText() 116 label_->SetDisabledColor(color); in SetTextColor() 118 label_->SetEnabledColor(color); in SetTextColor() 123 label_->SetShadows(shadows); in SetTextShadows() [all …]
|
/external/chromium_org/chrome/browser/chromeos/ui/ |
D | echo_dialog_view.cc | 31 : label_(NULL), in EchoDialogView() 53 label_ = new views::StyledLabel(text, this); in InitForEnabledEcho() 58 label_->AddStyleRange( in InitForEnabledEcho() 65 label_->AddStyleRange(gfx::Range(offsets[1], offsets[1] + link.length()), in InitForEnabledEcho() 70 AddChildView(label_); in InitForEnabledEcho() 84 label_ = new views::StyledLabel(text, this); in InitForDisabledEcho() 89 label_->AddStyleRange(gfx::Range(offset, offset + link.length()), link_style); in InitForDisabledEcho() 93 AddChildView(label_); in InitForDisabledEcho() 164 label_->GetHeightForWidth(kDialogLabelPreferredWidth)); in GetPreferredSize() 171 label_->SetBorder(views::Border::CreateEmptyBorder(kDialogLabelTopInset, in SetLabelBorderAndBounds() [all …]
|
D | kiosk_external_update_notification.cc | 55 void SetMessage(const base::string16& message) { label_->SetText(message); } in SetMessage() 72 label_ = new views::Label; in AddLabel() 73 label_->SetHorizontalAlignment(gfx::ALIGN_LEFT); in AddLabel() 75 label_->SetFontList(rb.GetFontList(ui::ResourceBundle::BoldFont)); in AddLabel() 76 label_->SetEnabledColor(kTextColor); in AddLabel() 77 label_->SetDisabledColor(kTextColor); in AddLabel() 78 label_->SetAutoColorReadabilityEnabled(false); in AddLabel() 79 label_->SetMultiLine(true); in AddLabel() 80 AddChildView(label_); in AddLabel() 95 views::Label* label_; // owned by views hierarchy. member in chromeos::KioskExternalUpdateNotificationView
|
/external/chromium_org/ash/system/user/ |
D | tray_user.cc | 48 label_(NULL) { in TrayUser() 122 label_ = NULL; in DestroyTrayView() 164 (need_label != (label_ != NULL))) { in UpdateAfterLoginStatusChange() 167 label_ = new views::Label; in UpdateAfterLoginStatusChange() 168 SetupLabelForTray(label_); in UpdateAfterLoginStatusChange() 169 layout_view_->AddChildView(label_); in UpdateAfterLoginStatusChange() 171 label_ = NULL; in UpdateAfterLoginStatusChange() 182 label_->SetText( in UpdateAfterLoginStatusChange() 185 label_->SetText(l10n_util::GetStringUTF16(IDS_ASH_STATUS_TRAY_GUEST_LABEL)); in UpdateAfterLoginStatusChange() 210 if (label_) { in UpdateAfterShelfAlignmentChange() [all …]
|
/external/chromium_org/ash/system/tray/ |
D | tray_item_more.cc | 24 label_(NULL), in TrayItemMore() 32 label_ = new views::Label; in TrayItemMore() 33 label_->SetHorizontalAlignment(gfx::ALIGN_LEFT); in TrayItemMore() 34 AddChildView(label_); in TrayItemMore() 49 label_->SetText(label); in SetLabel() 93 if (label_->bounds().Intersects(more_->bounds())) { in Layout() 94 gfx::Rect bounds = label_->bounds(); in Layout() 95 bounds.set_width(more_->x() - kTrayPopupPaddingBetweenItems - label_->x()); in Layout() 96 label_->SetBoundsRect(bounds); in Layout()
|
/external/chromium_org/ui/message_center/views/ |
D | bounded_label.cc | 265 label_.reset(new InnerBoundedLabel(*this)); in BoundedLabel() 266 label_->SetFontList(font_list); in BoundedLabel() 267 label_->SetText(text); in BoundedLabel() 272 label_.reset(new InnerBoundedLabel(*this)); in BoundedLabel() 273 label_->SetText(text); in BoundedLabel() 280 label_->SetEnabledColor(textColor); in SetColors() 281 label_->SetBackgroundColor(backgroundColor); in SetColors() 285 label_->SetLineHeight(height); in SetLineHeight() 293 label_->SetText(text); in SetText() 297 return label_->line_height(); in GetLineHeight() [all …]
|
D | bounded_label_unittest.cc | 62 return label_->GetWrappedTextForTest(width, lines_); in GetWrappedText() 67 label_->SetBounds(0, 0, width, font_list_.GetHeight() * lines_); in GetLinesForWidth() 68 return label_->GetLinesForWidthAndLimit(width, lines_); in GetLinesForWidth() 76 label_.reset(new BoundedLabel(text, font_list_)); in Label() 77 label_->SetLineLimit(lines_); in Label() 87 scoped_ptr<BoundedLabel> label_; member in message_center::test::BoundedLabelTest
|
/external/chromium_org/chrome/browser/ui/views/infobars/ |
D | confirm_infobar.cc | 29 label_(NULL), in ConfirmInfoBar() 45 labels.push_back(label_); in Layout() 49 label_->SetPosition(gfx::Point(x, OffsetY(label_))); in Layout() 50 if (!label_->text().empty()) in Layout() 51 x = label_->bounds().right() + kEndOfLabelSpacing; in Layout() 66 if (details.is_add && details.child == this && (label_ == NULL)) { in ViewHierarchyChanged() 68 label_ = CreateLabel(delegate->GetMessageText()); in ViewHierarchyChanged() 69 AddChildView(label_); in ViewHierarchyChanged() 113 return label_->GetMinimumSize().width() + link_->GetMinimumSize().width() + in ContentMinimumWidth() 130 int width = (label_->text().empty() || (!ok_button_ && !cancel_button_)) ? in NonLabelWidth()
|
/external/chromium_org/chrome/browser/ui/cocoa/autofill/ |
D | autofill_bubble_controller.mm | 56 label_.reset([[NSTextField alloc] init]); 57 [label_ setEditable:NO]; 58 [label_ setBordered:NO]; 59 [label_ setDrawsBackground:NO]; 60 [[self bubble] addSubview:label_]; 72 if ([[label_ stringValue] isEqualToString:message]) 78 [label_ setStringValue:message]; 81 labelFrame.size = [[label_ cell] cellSizeForBounds: 83 [label_ setFrame:labelFrame]; 91 NSMaxX([label_ frame]), [all …]
|
D | autofill_overlay_controller.mm | 35 base::scoped_nsobject<NSTextField> label_; field 79 label_.reset([[NSTextField alloc] initWithFrame:NSZeroRect]); 80 [label_ setEditable:NO]; 81 [label_ setBordered:NO]; 82 [label_ setDrawsBackground:NO]; 83 [label_ setAlignment:NSCenterTextAlignment]; 84 [self addSubview:label_]; 90 return NSHeight([label_ frame]) + autofill::kArrowHeight + 96 [label_ setFont:message.font_list.GetPrimaryFont().GetNativeFont()]; 97 [label_ setStringValue:base::SysUTF16ToNSString(message.text)]; [all …]
|
D | autofill_suggestion_container.mm | 143 label_.reset([[NSTextView alloc] initWithFrame:NSZeroRect]); 144 [[label_ textContainer] setLineFragmentPadding:kLineFragmentPadding]; 145 [label_ setEditable:NO]; 146 [label_ setSelectable:NO]; 147 [label_ setDrawsBackground:NO]; 151 [paragraphStyle setLineSpacing:0.5 * [[label_ font] pointSize]]; 152 [label_ setDefaultParagraphStyle:paragraphStyle]; 164 @[ label_, inputField_, spacer_ ]]; 172 [label_ setString:@""]; 182 [[label_ textStorage] setAttributedString: [all …]
|
/external/chromium_org/ash/system/chromeos/screen_security/ |
D | screen_tray_item.cc | 47 label_(NULL), in ScreenStatusView() 70 if (label_->bounds().Intersects(stop_button_->bounds())) { in Layout() 71 gfx::Rect label_bounds = label_->bounds(); in Layout() 73 stop_button_->x() - kTrayPopupPaddingBetweenItems - label_->x()); in Layout() 74 label_->SetBoundsRect(label_bounds); in Layout() 95 label_ = new views::Label; in CreateItems() 96 label_->SetHorizontalAlignment(gfx::ALIGN_LEFT); in CreateItems() 97 label_->SetMultiLine(true); in CreateItems() 98 label_->SetText(label_text_); in CreateItems() 99 AddChildView(label_); in CreateItems()
|
/external/chromium_org/ash/system/chromeos/session/ |
D | logout_confirmation_dialog.cc | 38 label_ = new views::Label; in LogoutConfirmationDialog() 39 label_->SetBorder(views::Border::CreateEmptyBorder( in LogoutConfirmationDialog() 41 label_->SetHorizontalAlignment(gfx::ALIGN_LEFT); in LogoutConfirmationDialog() 42 label_->SetMultiLine(true); in LogoutConfirmationDialog() 43 AddChildView(label_); in LogoutConfirmationDialog() 100 label_->SetText(l10n_util::GetStringFUTF16( in UpdateLabel() 107 label_->SetText(l10n_util::GetStringUTF16( in UpdateLabel()
|
/external/chromium_org/chrome/browser/ui/views/location_bar/ |
D | icon_label_bubble_view.cc | 26 label_(new views::Label(base::string16(), font_list)), in IconLabelBubbleView() 43 label_->SetEnabledColor(text_color); in IconLabelBubbleView() 61 label_->SetBackgroundColor( in IconLabelBubbleView() 66 label_->SetElideBehavior(gfx::ELIDE_MIDDLE); in IconLabelBubbleView() 67 AddChildView(label_); in IconLabelBubbleView() 74 label_->SetText(label); in SetLabel() 83 return GetSizeForLabelWidth(label_->GetPreferredSize().width()); in GetPreferredSize() 90 label_->SetBounds(pre_label_width, 0, in Layout()
|
/external/chromium_org/ui/views/corewm/ |
D | tooltip_aura.cc | 54 label_.set_owned_by_client(); in TooltipAura() 55 label_.SetMultiLine(true); in TooltipAura() 59 label_.SetBorder(Border::CreateEmptyBorder( in TooltipAura() 190 TrimTooltipToFit(label_.font_list(), GetMaxWidth(location), &trimmed_text, in SetText() 192 label_.SetText(trimmed_text); in SetText() 196 widget_->SetContentsView(&label_); in SetText() 200 label_.SizeToFit(max_width + label_.GetInsets().width()); in SetText() 201 SetTooltipBounds(location, label_.size()); in SetText() 204 label_.set_background( in SetText() 209 label_.SetAutoColorReadabilityEnabled(false); in SetText() [all …]
|
/external/chromium_org/courgette/ |
D | adjustment_method.cc | 41 Label* label_; // The label that this info a surrogate for. member in courgette::LabelInfo 61 : label_(NULL), is_model_(false), debug_index_(0), refs_(0), in LabelInfo() 76 return a->label_->rva_ < b->label_->rva_; in operator ()() 83 if (info->label_->index_ != Label::kNoIndex) in ToString() 84 base::StringAppendF(&s, " (%d)", info->label_->index_); in ToString() 313 int m_index = p_label_info->label_->index_; in TrySolveNode() 334 p_info->label_->index_ = m_info->label_->index_; in AssignOne() 342 RVA m_rva_base = m_info->label_->rva_; in TryExtendAssignment() 343 RVA p_rva_base = p_info->label_->rva_; in TryExtendAssignment() 351 RVA m_rva = m_info_next->label_->rva_; in TryExtendAssignment() [all …]
|
/external/chromium_org/ash/system/chromeos/ |
D | tray_tracing.cc | 39 label_ = new views::Label(); in DefaultTracingView() 40 label_->SetMultiLine(true); in DefaultTracingView() 41 label_->SetHorizontalAlignment(gfx::ALIGN_LEFT); in DefaultTracingView() 42 label_->SetText(bundle.GetLocalizedString(IDS_ASH_STATUS_TRAY_TRACING)); in DefaultTracingView() 43 AddChildView(label_); in DefaultTracingView() 56 views::Label* label_; member in ash::tray::DefaultTracingView
|
/external/chromium_org/chromeos/login/auth/ |
D | key.cc | 32 label_(other.label_) { in Key() 48 other.secret_ == secret_ && other.label_ == label_; in operator ==() 60 return label_; in GetLabel() 64 label_ = label; in SetLabel()
|
/external/chromium_org/ui/views/accessibility/ |
D | native_view_accessibility_unittest.cc | 37 label_.reset(new Label); in SetUp() 38 button_->AddChildView(label_.get()); in SetUp() 39 label_accessibility_ = NativeViewAccessibility::Create(label_.get()); in SetUp() 53 scoped_ptr<Label> label_; member in views::test::NativeViewAccessibilityTest 70 EXPECT_EQ(label_->GetNativeViewAccessible(), in TEST_F()
|
/external/chromium_org/ui/views/examples/ |
D | slider_example.cc | 19 label_(NULL) { in SliderExample() 26 label_ = new Label(); in CreateExampleView() 33 container->AddChildView(label_); in CreateExampleView() 40 label_->SetText(base::ASCIIToUTF16(base::StringPrintf("%.3lf", value))); in SliderValueChanged()
|
D | multiline_example.cc | 121 label_(NULL), in MultilineExample() 137 label_ = new PreferredSizeLabel(); in CreateExampleView() 138 label_->SetText(kTestString); in CreateExampleView() 139 label_->SetMultiLine(true); in CreateExampleView() 140 label_->SetBorder(Border::CreateSolidBorder(2, SK_ColorCYAN)); in CreateExampleView() 166 layout->AddView(label_); in CreateExampleView() 177 label_->SetText(new_contents); in ContentsChanged() 184 label_->SetText(label_checkbox_->checked() ? textfield_->text() : in ButtonPressed()
|
/external/chromium_org/ash/system/chromeos/settings/ |
D | tray_settings.cc | 36 label_(NULL), in SettingsDefaultView() 59 label_ = new views::Label(text); in SettingsDefaultView() 60 AddChildView(label_); in SettingsDefaultView() 96 if (label_ && power_status_view_) { in Layout() 118 base::string16 accessible_name = label_ ? in OnPowerStatusChanged() 119 label_->text() + base::ASCIIToUTF16(", ") + in OnPowerStatusChanged() 127 views::Label* label_; member in ash::tray::SettingsDefaultView
|
/external/chromium_org/chrome/browser/chromeos/power/ |
D | idle_action_warning_dialog_view.cc | 63 label_(NULL) { in IdleActionWarningDialogView() 64 label_ = new FixedWidthLabel(kIdleActionWarningContentWidth); in IdleActionWarningDialogView() 65 label_->SetBorder( in IdleActionWarningDialogView() 70 AddChildView(label_); in IdleActionWarningDialogView() 118 label_->SetText(l10n_util::GetStringFUTF16( in UpdateLabel()
|
/external/chromium_org/content/renderer/pepper/ |
D | pepper_platform_video_capture.cc | 79 if (!label_.empty()) { in DetachEventHandler() 82 device_manager->CloseDevice(label_); in DetachEventHandler() 83 label_.clear(); in DetachEventHandler() 97 DCHECK(label_.empty()); in ~PepperPlatformVideoCapture() 110 label_ = label; in OnDeviceOpened()
|
/external/chromium_org/chrome/browser/ui/views/ |
D | desktop_media_picker_views.cc | 75 label_(new views::Label()), in DesktopMediaSourceView() 78 AddChildView(label_); in DesktopMediaSourceView() 85 label_->SetText(name); in SetName() 129 label_->SetBounds(kThumbnailMargin, kThumbnailHeight + kThumbnailMargin, in Layout() 391 label_(new views::Label()), in DesktopMediaPickerDialogView() 395 label_->SetText( in DesktopMediaPickerDialogView() 398 label_->SetText(l10n_util::GetStringFUTF16( in DesktopMediaPickerDialogView() 401 label_->SetMultiLine(true); in DesktopMediaPickerDialogView() 402 label_->SetHorizontalAlignment(gfx::ALIGN_LEFT); in DesktopMediaPickerDialogView() 403 AddChildView(label_); in DesktopMediaPickerDialogView() [all …]
|