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

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

Issue 6257006: Move a bunch of random other files to src/ui/base... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « chrome/browser/ui/gtk/gtk_util.cc ('k') | chrome/browser/ui/gtk/html_dialog_gtk.h » ('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) 2011 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 #ifndef CHROME_BROWSER_UI_GTK_HOVER_CONTROLLER_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_HOVER_CONTROLLER_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_HOVER_CONTROLLER_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_HOVER_CONTROLLER_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
11 #include "app/gtk_signal.h"
12 #include "app/gtk_signal_registrar.h"
13 #include "ui/base/animation/animation_delegate.h" 11 #include "ui/base/animation/animation_delegate.h"
14 #include "ui/base/animation/slide_animation.h" 12 #include "ui/base/animation/slide_animation.h"
15 #include "ui/base/animation/throb_animation.h" 13 #include "ui/base/animation/throb_animation.h"
14 #include "ui/base/gtk/gtk_signal.h"
15 #include "ui/base/gtk/gtk_signal_registrar.h"
16 16
17 // This class handles the "throbbing" of a GtkChromeButton. The visual effect 17 // This class handles the "throbbing" of a GtkChromeButton. The visual effect
18 // of throbbing is created by painting partially transparent hover effects. It 18 // of throbbing is created by painting partially transparent hover effects. It
19 // only works in non-gtk theme mode. This class mainly exists to glue an 19 // only works in non-gtk theme mode. This class mainly exists to glue an
20 // AnimationDelegate (C++ class) to a GtkChromeButton* (GTK/c object). 20 // AnimationDelegate (C++ class) to a GtkChromeButton* (GTK/c object).
21 class HoverControllerGtk : public ui::AnimationDelegate { 21 class HoverControllerGtk : public ui::AnimationDelegate {
22 public: 22 public:
23 virtual ~HoverControllerGtk(); 23 virtual ~HoverControllerGtk();
24 24
25 GtkWidget* button() { return button_; } 25 GtkWidget* button() { return button_; }
(...skipping 26 matching lines...) Expand all
52 CHROMEGTK_CALLBACK_1(HoverControllerGtk, gboolean, OnLeave, 52 CHROMEGTK_CALLBACK_1(HoverControllerGtk, gboolean, OnLeave,
53 GdkEventCrossing*); 53 GdkEventCrossing*);
54 CHROMEGTK_CALLBACK_1(HoverControllerGtk, void, OnHierarchyChanged, 54 CHROMEGTK_CALLBACK_1(HoverControllerGtk, void, OnHierarchyChanged,
55 GtkWidget*); 55 GtkWidget*);
56 CHROMEGTK_CALLBACK_0(HoverControllerGtk, void, OnDestroy); 56 CHROMEGTK_CALLBACK_0(HoverControllerGtk, void, OnDestroy);
57 57
58 ui::ThrobAnimation throb_animation_; 58 ui::ThrobAnimation throb_animation_;
59 ui::SlideAnimation hover_animation_; 59 ui::SlideAnimation hover_animation_;
60 GtkWidget* button_; 60 GtkWidget* button_;
61 61
62 GtkSignalRegistrar signals_; 62 ui::GtkSignalRegistrar signals_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(HoverControllerGtk); 64 DISALLOW_COPY_AND_ASSIGN(HoverControllerGtk);
65 }; 65 };
66 66
67 #endif // CHROME_BROWSER_UI_GTK_HOVER_CONTROLLER_GTK_H_ 67 #endif // CHROME_BROWSER_UI_GTK_HOVER_CONTROLLER_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/gtk_util.cc ('k') | chrome/browser/ui/gtk/html_dialog_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698