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

Side by Side Diff: ui/base/gtk/tooltip_window_gtk.cc

Issue 7753038: Move TooltipWindowGtk from views/widget to ui/base/gtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments in #1 Created 9 years, 3 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
« no previous file with comments | « ui/base/gtk/tooltip_window_gtk.h ('k') | ui/ui.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 ui
OLDNEW
« no previous file with comments | « ui/base/gtk/tooltip_window_gtk.h ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698