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/l10n_util.h" | |
11 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
12 #include "app/text_elider.h" | 11 #include "app/text_elider.h" |
13 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
14 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
15 #include "base/string_util.h" | 14 #include "base/string_util.h" |
16 #include "chrome/browser/browser_theme_provider.h" | 15 #include "chrome/browser/browser_theme_provider.h" |
17 #include "gfx/canvas_skia.h" | 16 #include "gfx/canvas_skia.h" |
18 #include "gfx/point.h" | 17 #include "gfx/point.h" |
19 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
20 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 | 834 |
836 void StatusBubbleViews::SetBubbleWidth(int width) { | 835 void StatusBubbleViews::SetBubbleWidth(int width) { |
837 size_.set_width(width); | 836 size_.set_width(width); |
838 SetBounds(position_.x(), position_.y(), size_.width(), size_.height()); | 837 SetBounds(position_.x(), position_.y(), size_.width(), size_.height()); |
839 } | 838 } |
840 | 839 |
841 void StatusBubbleViews::CancelExpandTimer() { | 840 void StatusBubbleViews::CancelExpandTimer() { |
842 if (!expand_timer_factory_.empty()) | 841 if (!expand_timer_factory_.empty()) |
843 expand_timer_factory_.RevokeAll(); | 842 expand_timer_factory_.RevokeAll(); |
844 } | 843 } |
OLD | NEW |