Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3162)

Unified Diff: chrome/browser/gtk/slide_animator_gtk.h

Issue 99110: Fix SlideAnimatorGtk::OpenWithoutAnimation().... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/gtk/slide_animator_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/slide_animator_gtk.h
===================================================================
--- chrome/browser/gtk/slide_animator_gtk.h (revision 14624)
+++ chrome/browser/gtk/slide_animator_gtk.h (working copy)
@@ -9,14 +9,14 @@
#ifndef CHROME_BROWSER_GTK_SLIDE_ANIMATOR_GTK_H_
#define CHROME_BROWSER_GTK_SLIDE_ANIMATOR_GTK_H_
+#include <gtk/gtk.h>
+
#include "base/scoped_ptr.h"
#include "chrome/common/animation.h"
#include "chrome/common/owned_widget_gtk.h"
class SlideAnimation;
-typedef struct _GtkWidget GtkWidget;
-
class SlideAnimatorGtk : public AnimationDelegate {
public:
class Delegate {
@@ -64,6 +64,10 @@
void AnimationEnded(const Animation* animation);
private:
+ static void OnChildSizeAllocate(GtkWidget* child,
+ GtkAllocation* allocation,
+ SlideAnimatorGtk* slider);
+
scoped_ptr<SlideAnimation> animation_;
// The top level widget of the SlideAnimatorGtk. It is a GtkFixed.
@@ -78,6 +82,10 @@
// The object to inform about certain events. It may be NULL.
Delegate* delegate_;
+
+ // If true, we should resize |widget_| on the next "size-allocate" event that
+ // is received by |child_|. See the comment in SlideAnimatorGtk constructor.
+ bool fixed_needs_resize_;
};
#endif // CHROME_BROWSER_GTK_SLIDE_ANIMATOR_GTK_H_
« no previous file with comments | « no previous file | chrome/browser/gtk/slide_animator_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698