OLD | NEW |
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 "chrome/browser/ui/views/autofill/autofill_dialog_views.h" | 5 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 container_(new views::View()) { | 391 container_(new views::View()) { |
392 AddChildView(container_); | 392 AddChildView(container_); |
393 container_->SetLayoutManager( | 393 container_->SetLayoutManager( |
394 new views::BoxLayout(views::BoxLayout::kHorizontal, 0, 0, 0)); | 394 new views::BoxLayout(views::BoxLayout::kHorizontal, 0, 0, 0)); |
395 | 395 |
396 const gfx::FontList& font_list = | 396 const gfx::FontList& font_list = |
397 ui::ResourceBundle::GetSharedInstance().GetFontList( | 397 ui::ResourceBundle::GetSharedInstance().GetFontList( |
398 ui::ResourceBundle::LargeFont); | 398 ui::ResourceBundle::LargeFont); |
399 animation_.reset(new LoadingAnimation(this, font_list.GetHeight())); | 399 animation_.reset(new LoadingAnimation(this, font_list.GetHeight())); |
400 | 400 |
401 views::Label* label = new views::Label(text, font_list); | 401 container_->AddChildView(new views::Label(text, font_list)); |
402 container_->AddChildView(label); | |
403 | 402 |
404 for (size_t i = 0; i < 3; ++i) { | 403 for (size_t i = 0; i < 3; ++i) { |
405 views::Label* dot = new views::Label(base::ASCIIToUTF16("."), font_list); | 404 container_->AddChildView( |
406 container_->AddChildView(dot); | 405 new views::Label(base::ASCIIToUTF16("."), font_list)); |
407 } | 406 } |
408 | 407 |
409 OnNativeThemeChanged(GetNativeTheme()); | 408 OnNativeThemeChanged(GetNativeTheme()); |
410 } | 409 } |
411 | 410 |
412 virtual ~LoadingAnimationView() {} | 411 virtual ~LoadingAnimationView() {} |
413 | 412 |
414 // views::View implementation. | 413 // views::View implementation. |
415 virtual void SetVisible(bool visible) OVERRIDE { | 414 virtual void SetVisible(bool visible) OVERRIDE { |
416 if (visible) | 415 if (visible) |
(...skipping 2034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2451 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) | 2450 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) |
2452 : section(section), | 2451 : section(section), |
2453 container(NULL), | 2452 container(NULL), |
2454 manual_input(NULL), | 2453 manual_input(NULL), |
2455 suggested_info(NULL), | 2454 suggested_info(NULL), |
2456 suggested_button(NULL) {} | 2455 suggested_button(NULL) {} |
2457 | 2456 |
2458 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} | 2457 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} |
2459 | 2458 |
2460 } // namespace autofill | 2459 } // namespace autofill |
OLD | NEW |