Chromium Code Reviews

Side by Side Diff: chrome/browser/gtk/browser_actions_toolbar_gtk.cc

Issue 1961001: Refactors animation to allow for cleaner subclassing. I'm doing this (Closed)
Patch Set: Incorporated review feedback Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « chrome/browser/gtk/bookmark_bar_gtk.cc ('k') | chrome/browser/gtk/download_item_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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...)
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 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/bookmark_bar_gtk.cc ('k') | chrome/browser/gtk/download_item_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine