| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/gtk/info_bubble_gtk.h" |
| 6 | 6 |
| 7 #include <gdk/gdkkeysyms.h> | 7 #include <gdk/gdkkeysyms.h> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "chrome/browser/gtk/gtk_theme_provider.h" | 12 #include "chrome/browser/ui/gtk/gtk_theme_provider.h" |
| 13 #include "chrome/browser/gtk/gtk_util.h" | 13 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 14 #include "chrome/browser/gtk/info_bubble_accelerators_gtk.h" | 14 #include "chrome/browser/ui/gtk/info_bubble_accelerators_gtk.h" |
| 15 #include "chrome/common/notification_service.h" | 15 #include "chrome/common/notification_service.h" |
| 16 #include "gfx/gtk_util.h" | 16 #include "gfx/gtk_util.h" |
| 17 #include "gfx/path.h" | 17 #include "gfx/path.h" |
| 18 #include "gfx/rect.h" | 18 #include "gfx/rect.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 = 8; | 23 const int kArrowSize = 8; |
| 24 | 24 |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 gboolean InfoBubbleGtk::OnToplevelUnmap(GtkWidget* widget, GdkEvent* event) { | 526 gboolean InfoBubbleGtk::OnToplevelUnmap(GtkWidget* widget, GdkEvent* event) { |
| 527 Close(); | 527 Close(); |
| 528 return FALSE; | 528 return FALSE; |
| 529 } | 529 } |
| 530 | 530 |
| 531 void InfoBubbleGtk::OnAnchorAllocate(GtkWidget* widget, | 531 void InfoBubbleGtk::OnAnchorAllocate(GtkWidget* widget, |
| 532 GtkAllocation* allocation) { | 532 GtkAllocation* allocation) { |
| 533 if (!UpdateArrowLocation(false)) | 533 if (!UpdateArrowLocation(false)) |
| 534 MoveWindow(); | 534 MoveWindow(); |
| 535 } | 535 } |
| OLD | NEW |