Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(654)

Side by Side Diff: chrome/browser/ui/gtk/status_bubble_gtk.cc

Issue 22835002: Supports gfx::FontList in gfx::Canvas and ui::ElideText family. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: layout_text.h => text_utils.h Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/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/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "chrome/browser/chrome_notification_types.h" 14 #include "chrome/browser/chrome_notification_types.h"
15 #include "chrome/browser/themes/theme_properties.h" 15 #include "chrome/browser/themes/theme_properties.h"
16 #include "chrome/browser/ui/gtk/gtk_theme_service.h" 16 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
17 #include "chrome/browser/ui/gtk/gtk_util.h" 17 #include "chrome/browser/ui/gtk/gtk_util.h"
18 #include "chrome/browser/ui/gtk/rounded_window.h" 18 #include "chrome/browser/ui/gtk/rounded_window.h"
19 #include "content/public/browser/notification_source.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_compat.h" 21 #include "ui/base/gtk/gtk_compat.h"
22 #include "ui/base/gtk/gtk_hig_constants.h" 22 #include "ui/base/gtk/gtk_hig_constants.h"
23 #include "ui/base/text/text_elider.h" 23 #include "ui/base/text/text_elider.h"
24 #include "ui/gfx/font.h"
24 25
25 namespace { 26 namespace {
26 27
27 // Inner padding between the border and the text label. 28 // Inner padding between the border and the text label.
28 const int kInternalTopBottomPadding = 1; 29 const int kInternalTopBottomPadding = 1;
29 const int kInternalLeftRightPadding = 2; 30 const int kInternalLeftRightPadding = 2;
30 31
31 // The radius of the edges of our bubble. 32 // The radius of the edges of our bubble.
32 const int kCornerSize = 3; 33 const int kCornerSize = 3;
33 34
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 return FALSE; 372 return FALSE;
372 } 373 }
373 374
374 void StatusBubbleGtk::AnimationEnded(const ui::Animation* animation) { 375 void StatusBubbleGtk::AnimationEnded(const ui::Animation* animation) {
375 UpdateLabelSizeRequest(); 376 UpdateLabelSizeRequest();
376 } 377 }
377 378
378 void StatusBubbleGtk::AnimationProgressed(const ui::Animation* animation) { 379 void StatusBubbleGtk::AnimationProgressed(const ui::Animation* animation) {
379 UpdateLabelSizeRequest(); 380 UpdateLabelSizeRequest();
380 } 381 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/content_setting_bubble_gtk.cc ('k') | printing/print_settings_initializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698