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/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/themes/theme_properties.h" | 14 #include "chrome/browser/themes/theme_properties.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
17 #include "grit/theme_resources.h" | 17 #include "grit/theme_resources.h" |
18 #include "net/base/net_util.h" | 18 #include "net/base/net_util.h" |
19 #include "third_party/skia/include/core/SkPaint.h" | 19 #include "third_party/skia/include/core/SkPaint.h" |
20 #include "third_party/skia/include/core/SkPath.h" | 20 #include "third_party/skia/include/core/SkPath.h" |
21 #include "third_party/skia/include/core/SkRect.h" | 21 #include "third_party/skia/include/core/SkRect.h" |
22 #include "ui/base/animation/animation_delegate.h" | 22 #include "ui/base/animation/animation_delegate.h" |
23 #include "ui/base/animation/linear_animation.h" | 23 #include "ui/base/animation/linear_animation.h" |
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 void StatusBubbleViews::SetBubbleWidth(int width) { | 845 void StatusBubbleViews::SetBubbleWidth(int width) { |
846 size_.set_width(width); | 846 size_.set_width(width); |
847 SetBounds(original_position_.x(), original_position_.y(), | 847 SetBounds(original_position_.x(), original_position_.y(), |
848 size_.width(), size_.height()); | 848 size_.width(), size_.height()); |
849 } | 849 } |
850 | 850 |
851 void StatusBubbleViews::CancelExpandTimer() { | 851 void StatusBubbleViews::CancelExpandTimer() { |
852 if (expand_timer_factory_.HasWeakPtrs()) | 852 if (expand_timer_factory_.HasWeakPtrs()) |
853 expand_timer_factory_.InvalidateWeakPtrs(); | 853 expand_timer_factory_.InvalidateWeakPtrs(); |
854 } | 854 } |
OLD | NEW |