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

Side by Side Diff: chrome/browser/ui/gtk/titlebar_throb_animation.h

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_GTK_TITLEBAR_THROB_ANIMATION_H_
6 #define CHROME_BROWSER_UI_GTK_TITLEBAR_THROB_ANIMATION_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/gfx/gtk_util.h"
11
12 // A helper class to keep track of which frame of the throbber animation
13 // we're showing.
14 class TitlebarThrobAnimation {
15 public:
16 TitlebarThrobAnimation();
17
18 // Get the next frame in the animation. The image is owned by the throbber
19 // so the caller doesn't need to unref. |is_waiting| is true if we're
20 // still waiting for a response.
21 GdkPixbuf* GetNextFrame(bool is_waiting);
22
23 // Reset back to the first frame.
24 void Reset();
25
26 private:
27 // Make sure the frames are loaded.
28 static void InitFrames();
29
30 int current_frame_;
31 int current_waiting_frame_;
32
33 DISALLOW_COPY_AND_ASSIGN(TitlebarThrobAnimation);
34 };
35
36 #endif // CHROME_BROWSER_UI_GTK_TITLEBAR_THROB_ANIMATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698