OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/views/status_bubble_views.h" | 5 #include "chrome/browser/views/status_bubble_views.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "app/linear_animation.h" | 9 #include "app/linear_animation.h" |
10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
11 #include "app/text_elider.h" | 11 #include "app/text_elider.h" |
12 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "chrome/browser/browser_theme_provider.h" | 16 #include "chrome/browser/themes/browser_theme_provider.h" |
17 #include "gfx/canvas_skia.h" | 17 #include "gfx/canvas_skia.h" |
18 #include "gfx/point.h" | 18 #include "gfx/point.h" |
19 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
21 #include "grit/theme_resources.h" | 21 #include "grit/theme_resources.h" |
22 #include "net/base/net_util.h" | 22 #include "net/base/net_util.h" |
23 #include "third_party/skia/include/core/SkPaint.h" | 23 #include "third_party/skia/include/core/SkPaint.h" |
24 #include "third_party/skia/include/core/SkPath.h" | 24 #include "third_party/skia/include/core/SkPath.h" |
25 #include "third_party/skia/include/core/SkRect.h" | 25 #include "third_party/skia/include/core/SkRect.h" |
26 #include "views/controls/label.h" | 26 #include "views/controls/label.h" |
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 | 837 |
838 void StatusBubbleViews::SetBubbleWidth(int width) { | 838 void StatusBubbleViews::SetBubbleWidth(int width) { |
839 size_.set_width(width); | 839 size_.set_width(width); |
840 SetBounds(position_.x(), position_.y(), size_.width(), size_.height()); | 840 SetBounds(position_.x(), position_.y(), size_.width(), size_.height()); |
841 } | 841 } |
842 | 842 |
843 void StatusBubbleViews::CancelExpandTimer() { | 843 void StatusBubbleViews::CancelExpandTimer() { |
844 if (!expand_timer_factory_.empty()) | 844 if (!expand_timer_factory_.empty()) |
845 expand_timer_factory_.RevokeAll(); | 845 expand_timer_factory_.RevokeAll(); |
846 } | 846 } |
OLD | NEW |