Chromium Code Reviews| 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 "views/widget/tooltip_window_gtk.h" | 5 #include "ui/base/gtk/tooltip_window_gtk.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 | 10 |
| 11 namespace views { | 11 namespace ui { |
| 12 | 12 |
| 13 TooltipWindowGtk::TooltipWindowGtk(GtkWidget* widget) | 13 TooltipWindowGtk::TooltipWindowGtk(GtkWidget* widget) |
| 14 : host_(widget), | 14 : host_(widget), |
| 15 window_(NULL), | 15 window_(NULL), |
| 16 alignment_(NULL), | 16 alignment_(NULL), |
| 17 label_(NULL) { | 17 label_(NULL) { |
| 18 Init(); | 18 Init(); |
| 19 } | 19 } |
| 20 | 20 |
| 21 TooltipWindowGtk::~TooltipWindowGtk() { | 21 TooltipWindowGtk::~TooltipWindowGtk() { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 85 GtkStyle* previous_style) { | 85 GtkStyle* previous_style) { |
| 86 gtk_alignment_set_padding(GTK_ALIGNMENT(alignment_), | 86 gtk_alignment_set_padding(GTK_ALIGNMENT(alignment_), |
| 87 widget->style->ythickness, | 87 widget->style->ythickness, |
| 88 widget->style->ythickness, | 88 widget->style->ythickness, |
| 89 widget->style->xthickness, | 89 widget->style->xthickness, |
| 90 widget->style->xthickness); | 90 widget->style->xthickness); |
| 91 | 91 |
| 92 gtk_widget_queue_draw(widget); | 92 gtk_widget_queue_draw(widget); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace views | 95 } // namespace views |
|
jam
2011/08/26 16:53:00
nit: ui
xiyuan
2011/08/26 16:56:41
Done.
| |
| OLD | NEW |