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/status_bubble_views.h" | 5 #include "chrome/browser/ui/views/status_bubble_views.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "chrome/browser/themes/theme_properties.h" | 18 #include "chrome/browser/themes/theme_properties.h" |
19 #include "components/url_formatter/elide_url.h" | 19 #include "components/url_formatter/elide_url.h" |
20 #include "components/url_formatter/url_formatter.h" | 20 #include "components/url_formatter/url_formatter.h" |
21 #include "third_party/skia/include/core/SkPaint.h" | 21 #include "third_party/skia/include/core/SkPaint.h" |
22 #include "third_party/skia/include/core/SkRRect.h" | 22 #include "third_party/skia/include/core/SkRRect.h" |
23 #include "ui/base/theme_provider.h" | 23 #include "ui/base/theme_provider.h" |
24 #include "ui/display/screen.h" | 24 #include "ui/display/screen.h" |
25 #include "ui/gfx/animation/animation_delegate.h" | 25 #include "ui/gfx/animation/animation_delegate.h" |
26 #include "ui/gfx/animation/linear_animation.h" | 26 #include "ui/gfx/animation/linear_animation.h" |
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 void StatusBubbleViews::SetBubbleWidth(int width) { | 899 void StatusBubbleViews::SetBubbleWidth(int width) { |
900 size_.set_width(width); | 900 size_.set_width(width); |
901 SetBounds(original_position_.x(), original_position_.y(), | 901 SetBounds(original_position_.x(), original_position_.y(), |
902 size_.width(), size_.height()); | 902 size_.width(), size_.height()); |
903 } | 903 } |
904 | 904 |
905 void StatusBubbleViews::CancelExpandTimer() { | 905 void StatusBubbleViews::CancelExpandTimer() { |
906 if (expand_timer_factory_.HasWeakPtrs()) | 906 if (expand_timer_factory_.HasWeakPtrs()) |
907 expand_timer_factory_.InvalidateWeakPtrs(); | 907 expand_timer_factory_.InvalidateWeakPtrs(); |
908 } | 908 } |
OLD | NEW |