| 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/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 "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/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 15 #include "chrome/browser/gtk/gtk_theme_provider.h" | 15 #include "chrome/browser/ui/gtk/gtk_theme_provider.h" |
| 16 #include "chrome/browser/gtk/gtk_util.h" | 16 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 17 #include "chrome/browser/gtk/rounded_window.h" | 17 #include "chrome/browser/ui/gtk/rounded_window.h" |
| 18 #include "chrome/browser/gtk/slide_animator_gtk.h" | 18 #include "chrome/browser/ui/gtk/slide_animator_gtk.h" |
| 19 #include "chrome/common/notification_service.h" | 19 #include "chrome/common/notification_service.h" |
| 20 #include "ui/base/animation/slide_animation.h" | 20 #include "ui/base/animation/slide_animation.h" |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 // Inner padding between the border and the text label. | 24 // Inner padding between the border and the text label. |
| 25 const int kInternalTopBottomPadding = 1; | 25 const int kInternalTopBottomPadding = 1; |
| 26 const int kInternalLeftRightPadding = 2; | 26 const int kInternalLeftRightPadding = 2; |
| 27 | 27 |
| 28 // The radius of the edges of our bubble. | 28 // The radius of the edges of our bubble. |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 return FALSE; | 355 return FALSE; |
| 356 } | 356 } |
| 357 | 357 |
| 358 void StatusBubbleGtk::AnimationEnded(const ui::Animation* animation) { | 358 void StatusBubbleGtk::AnimationEnded(const ui::Animation* animation) { |
| 359 UpdateLabelSizeRequest(); | 359 UpdateLabelSizeRequest(); |
| 360 } | 360 } |
| 361 | 361 |
| 362 void StatusBubbleGtk::AnimationProgressed(const ui::Animation* animation) { | 362 void StatusBubbleGtk::AnimationProgressed(const ui::Animation* animation) { |
| 363 UpdateLabelSizeRequest(); | 363 UpdateLabelSizeRequest(); |
| 364 } | 364 } |
| OLD | NEW |