OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/gtk/status_bubble_gtk.h" | 5 #include "chrome/browser/ui/gtk/status_bubble_gtk.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "chrome/browser/ui/gtk/gtk_theme_service.h" | 14 #include "chrome/browser/ui/gtk/gtk_theme_service.h" |
15 #include "chrome/browser/ui/gtk/gtk_util.h" | 15 #include "chrome/browser/ui/gtk/gtk_util.h" |
16 #include "chrome/browser/ui/gtk/rounded_window.h" | 16 #include "chrome/browser/ui/gtk/rounded_window.h" |
17 #include "chrome/browser/ui/gtk/slide_animator_gtk.h" | 17 #include "chrome/browser/ui/gtk/slide_animator_gtk.h" |
18 #include "chrome/common/chrome_notification_types.h" | 18 #include "chrome/common/chrome_notification_types.h" |
19 #include "content/common/notification_service.h" | 19 #include "content/public/browser/notification_source.h" |
20 #include "ui/base/animation/slide_animation.h" | 20 #include "ui/base/animation/slide_animation.h" |
21 #include "ui/base/gtk/gtk_hig_constants.h" | 21 #include "ui/base/gtk/gtk_hig_constants.h" |
22 #include "ui/base/text/text_elider.h" | 22 #include "ui/base/text/text_elider.h" |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 // Inner padding between the border and the text label. | 26 // Inner padding between the border and the text label. |
27 const int kInternalTopBottomPadding = 1; | 27 const int kInternalTopBottomPadding = 1; |
28 const int kInternalLeftRightPadding = 2; | 28 const int kInternalLeftRightPadding = 2; |
29 | 29 |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 return FALSE; | 360 return FALSE; |
361 } | 361 } |
362 | 362 |
363 void StatusBubbleGtk::AnimationEnded(const ui::Animation* animation) { | 363 void StatusBubbleGtk::AnimationEnded(const ui::Animation* animation) { |
364 UpdateLabelSizeRequest(); | 364 UpdateLabelSizeRequest(); |
365 } | 365 } |
366 | 366 |
367 void StatusBubbleGtk::AnimationProgressed(const ui::Animation* animation) { | 367 void StatusBubbleGtk::AnimationProgressed(const ui::Animation* animation) { |
368 UpdateLabelSizeRequest(); | 368 UpdateLabelSizeRequest(); |
369 } | 369 } |
OLD | NEW |