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_manager_gtk.h" | 5 #include "views/widget/tooltip_manager_gtk.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "gfx/font.h" | 9 #include "ui/gfx/font.h" |
10 #include "views/focus/focus_manager.h" | 10 #include "views/focus/focus_manager.h" |
11 #include "views/screen.h" | 11 #include "views/screen.h" |
12 #include "views/widget/root_view.h" | 12 #include "views/widget/root_view.h" |
13 #include "views/widget/widget_gtk.h" | 13 #include "views/widget/widget_gtk.h" |
14 | 14 |
15 // WARNING: this implementation is good for a start, but it doesn't give us | 15 // WARNING: this implementation is good for a start, but it doesn't give us |
16 // control of tooltip positioning both on mouse events and when showing from | 16 // control of tooltip positioning both on mouse events and when showing from |
17 // keyboard. We may need to write our own to give us the control we need. | 17 // keyboard. We may need to write our own to give us the control we need. |
18 | 18 |
19 namespace views { | 19 namespace views { |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 if (!g_signal_parse_name("show_help", itype, &signal_id, &detail, FALSE)) { | 173 if (!g_signal_parse_name("show_help", itype, &signal_id, &detail, FALSE)) { |
174 NOTREACHED(); | 174 NOTREACHED(); |
175 return false; | 175 return false; |
176 } | 176 } |
177 gboolean result; | 177 gboolean result; |
178 g_signal_emit(widget, signal_id, 0, GTK_WIDGET_HELP_TOOLTIP, &result); | 178 g_signal_emit(widget, signal_id, 0, GTK_WIDGET_HELP_TOOLTIP, &result); |
179 return true; | 179 return true; |
180 } | 180 } |
181 | 181 |
182 } // namespace views | 182 } // namespace views |
OLD | NEW |