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/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "ui/base/keycodes/keyboard_codes.h" | 21 #include "ui/base/keycodes/keyboard_codes.h" |
22 #include "ui/base/l10n/l10n_util.h" | 22 #include "ui/base/l10n/l10n_util.h" |
23 #include "ui/base/resource/resource_bundle.h" | 23 #include "ui/base/resource/resource_bundle.h" |
24 #include "ui/base/text/bytes_formatting.h" | 24 #include "ui/base/text/bytes_formatting.h" |
25 #include "ui/views/controls/button/checkbox.h" | 25 #include "ui/views/controls/button/checkbox.h" |
26 #include "ui/views/controls/button/radio_button.h" | 26 #include "ui/views/controls/button/radio_button.h" |
27 #include "ui/views/controls/button/text_button.h" | 27 #include "ui/views/controls/button/text_button.h" |
28 #include "ui/views/controls/image_view.h" | 28 #include "ui/views/controls/image_view.h" |
29 #include "ui/views/controls/label.h" | 29 #include "ui/views/controls/label.h" |
30 #include "ui/views/controls/link.h" | 30 #include "ui/views/controls/link.h" |
31 #include "ui/views/events/event.h" | |
32 #include "ui/views/layout/grid_layout.h" | 31 #include "ui/views/layout/grid_layout.h" |
33 #include "ui/views/layout/layout_constants.h" | 32 #include "ui/views/layout/layout_constants.h" |
34 #include "ui/views/widget/widget.h" | 33 #include "ui/views/widget/widget.h" |
35 | 34 |
36 using views::GridLayout; | 35 using views::GridLayout; |
37 | 36 |
38 namespace { | 37 namespace { |
39 | 38 |
40 // The title label's color; matches the bookmark bubble's title. | 39 // The title label's color; matches the bookmark bubble's title. |
41 const SkColor kTitleColor = 0xFF062D75; | 40 const SkColor kTitleColor = 0xFF062D75; |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 } | 375 } |
377 | 376 |
378 // Update the view's contents to show the "Sending..." progress animation. | 377 // Update the view's contents to show the "Sending..." progress animation. |
379 cancel_->SetEnabled(false); | 378 cancel_->SetEnabled(false); |
380 send_->SetEnabled(false); | 379 send_->SetEnabled(false); |
381 send_->set_alignment(views::TextButtonBase::ALIGN_LEFT); | 380 send_->set_alignment(views::TextButtonBase::ALIGN_LEFT); |
382 progress_animation_.reset(new ui::ThrobAnimation(this)); | 381 progress_animation_.reset(new ui::ThrobAnimation(this)); |
383 progress_animation_->SetDuration(kProgressThrobDurationMS); | 382 progress_animation_->SetDuration(kProgressThrobDurationMS); |
384 progress_animation_->StartThrobbing(-1); | 383 progress_animation_->StartThrobbing(-1); |
385 } | 384 } |
OLD | NEW |