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

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

Issue 73723002: [rAc OSX] Animate the dots in the "Loading ..." message. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up new files Created 7 years, 1 month 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
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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 gfx::Size container_size = container_->GetPreferredSize(); 434 gfx::Size container_size = container_->GetPreferredSize();
435 gfx::Rect container_bounds((width() - container_size.width()) / 2, 435 gfx::Rect container_bounds((width() - container_size.width()) / 2,
436 (height() - container_size.height()) / 2, 436 (height() - container_size.height()) / 2,
437 container_size.width(), 437 container_size.width(),
438 container_size.height()); 438 container_size.height());
439 container_->SetBoundsRect(container_bounds); 439 container_->SetBoundsRect(container_bounds);
440 container_->Layout(); 440 container_->Layout();
441 441
442 for (size_t i = 0; i < 3; ++i) { 442 for (size_t i = 0; i < 3; ++i) {
443 views::View* dot = container_->child_at(i + 1); 443 views::View* dot = container_->child_at(i + 1);
444 dot->SetY(dot->y() + animation_.GetCurrentValueForDot(i) * 10.0); 444 dot->SetY(dot->y() + animation_.GetCurrentValueForDot(i));
445 } 445 }
446 } 446 }
447 447
448 // gfx::AnimationDelegate implementation. 448 // gfx::AnimationDelegate implementation.
449 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE { 449 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE {
450 DCHECK_EQ(animation, &animation_); 450 DCHECK_EQ(animation, &animation_);
451 Layout(); 451 Layout();
452 } 452 }
453 453
454 private: 454 private:
(...skipping 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after
2446 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) 2446 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section)
2447 : section(section), 2447 : section(section),
2448 container(NULL), 2448 container(NULL),
2449 manual_input(NULL), 2449 manual_input(NULL),
2450 suggested_info(NULL), 2450 suggested_info(NULL),
2451 suggested_button(NULL) {} 2451 suggested_button(NULL) {}
2452 2452
2453 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} 2453 AutofillDialogViews::DetailsGroup::~DetailsGroup() {}
2454 2454
2455 } // namespace autofill 2455 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698