OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/gtk/info_bubble_gtk.h" | 5 #include "chrome/browser/gtk/info_bubble_gtk.h" |
6 | 6 |
7 #include <gdk/gdkkeysyms.h> | 7 #include <gdk/gdkkeysyms.h> |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
| 10 #include "app/gfx/gtk_util.h" |
10 #include "app/gfx/path.h" | 11 #include "app/gfx/path.h" |
11 #include "app/l10n_util.h" | 12 #include "app/l10n_util.h" |
12 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
13 #include "base/gfx/gtk_util.h" | |
14 #include "base/gfx/rect.h" | 14 #include "base/gfx/rect.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "chrome/browser/gtk/gtk_theme_provider.h" | 16 #include "chrome/browser/gtk/gtk_theme_provider.h" |
17 #include "chrome/common/gtk_util.h" | 17 #include "chrome/common/gtk_util.h" |
18 #include "chrome/common/notification_service.h" | 18 #include "chrome/common/notification_service.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // The height of the arrow, and the width will be about twice the height. | 22 // The height of the arrow, and the width will be about twice the height. |
23 const int kArrowSize = 5; | 23 const int kArrowSize = 5; |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 return TRUE; | 345 return TRUE; |
346 } | 346 } |
347 | 347 |
348 gboolean InfoBubbleGtk::HandleDestroy() { | 348 gboolean InfoBubbleGtk::HandleDestroy() { |
349 // We are self deleting, we have a destroy signal setup to catch when we | 349 // We are self deleting, we have a destroy signal setup to catch when we |
350 // destroy the widget manually, or the window was closed via X. This will | 350 // destroy the widget manually, or the window was closed via X. This will |
351 // delete the InfoBubbleGtk object. | 351 // delete the InfoBubbleGtk object. |
352 delete this; | 352 delete this; |
353 return FALSE; // Propagate. | 353 return FALSE; // Propagate. |
354 } | 354 } |
OLD | NEW |