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

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.cc

Issue 114033005: Clean-up: Fixes style issues. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced. Created 6 years, 11 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 | « no previous file | no next file » | 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 "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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698