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 "chrome/browser/gtk/browser_actions_toolbar_gtk.h" | 5 #include "chrome/browser/gtk/browser_actions_toolbar_gtk.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "chrome/browser/browser.h" | 10 #include "chrome/browser/browser.h" |
(...skipping 837 matching lines...) Loading... |
848 return FALSE; | 848 return FALSE; |
849 | 849 |
850 void* data = g_object_get_data(G_OBJECT(menu_item), kMenuItemKey); | 850 void* data = g_object_get_data(G_OBJECT(menu_item), kMenuItemKey); |
851 DCHECK(data); | 851 DCHECK(data); |
852 BrowserActionButton* button = static_cast<BrowserActionButton*>(data); | 852 BrowserActionButton* button = static_cast<BrowserActionButton*>(data); |
853 button->GetContextMenu()->PopupAsContext(event->time); | 853 button->GetContextMenu()->PopupAsContext(event->time); |
854 return TRUE; | 854 return TRUE; |
855 } | 855 } |
856 | 856 |
857 void BrowserActionsToolbarGtk::OnButtonShowOrHide(GtkWidget* sender) { | 857 void BrowserActionsToolbarGtk::OnButtonShowOrHide(GtkWidget* sender) { |
858 if (!resize_animation_.IsAnimating()) | 858 if (!resize_animation_.is_animating()) |
859 UpdateChevronVisibility(); | 859 UpdateChevronVisibility(); |
860 } | 860 } |
OLD | NEW |