| OLD | NEW |
| 1 // Copyright (c) 2010 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/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" |
| (...skipping 514 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 |