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 "app/gfx/font.h" | |
8 #include "base/logging.h" | 7 #include "base/logging.h" |
9 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 if (!g_signal_parse_name("show_help", itype, &signal_id, &detail, FALSE)) { | 234 if (!g_signal_parse_name("show_help", itype, &signal_id, &detail, FALSE)) { |
235 NOTREACHED(); | 235 NOTREACHED(); |
236 return false; | 236 return false; |
237 } | 237 } |
238 gboolean result; | 238 gboolean result; |
239 g_signal_emit(widget, signal_id, 0, GTK_WIDGET_HELP_TOOLTIP, &result); | 239 g_signal_emit(widget, signal_id, 0, GTK_WIDGET_HELP_TOOLTIP, &result); |
240 return true; | 240 return true; |
241 } | 241 } |
242 | 242 |
243 } // namespace views | 243 } // namespace views |
OLD | NEW |