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/chrome_to_mobile_bubble_view.h" | 5 #include "chrome/browser/ui/views/chrome_to_mobile_bubble_view.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/app/chrome_command_ids.h" | 12 #include "chrome/app/chrome_command_ids.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/chrome_to_mobile_service.h" | 14 #include "chrome/browser/chrome_to_mobile_service.h" |
15 #include "chrome/browser/chrome_to_mobile_service_factory.h" | 15 #include "chrome/browser/chrome_to_mobile_service_factory.h" |
16 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
17 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
18 #include "grit/theme_resources.h" | 18 #include "grit/theme_resources.h" |
19 #include "ui/base/animation/throb_animation.h" | 19 #include "ui/base/animation/throb_animation.h" |
20 #include "ui/base/keycodes/keyboard_codes.h" | 20 #include "ui/base/keycodes/keyboard_codes.h" |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 } | 346 } |
347 | 347 |
348 // Update the view's contents to show the "Sending..." progress animation. | 348 // Update the view's contents to show the "Sending..." progress animation. |
349 cancel_->SetEnabled(false); | 349 cancel_->SetEnabled(false); |
350 send_->SetEnabled(false); | 350 send_->SetEnabled(false); |
351 send_->SetHorizontalAlignment(gfx::ALIGN_LEFT); | 351 send_->SetHorizontalAlignment(gfx::ALIGN_LEFT); |
352 progress_animation_.reset(new ui::ThrobAnimation(this)); | 352 progress_animation_.reset(new ui::ThrobAnimation(this)); |
353 progress_animation_->SetDuration(kProgressThrobDurationMS); | 353 progress_animation_->SetDuration(kProgressThrobDurationMS); |
354 progress_animation_->StartThrobbing(-1); | 354 progress_animation_->StartThrobbing(-1); |
355 } | 355 } |
OLD | NEW |