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

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

Issue 8536010: Cleanup: Remove unneeded forward declarations from chrome/browser/ui/gtk and chrome/browser/ui/co... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address comments Created 9 years, 1 month 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
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_RELOAD_BUTTON_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_RELOAD_BUTTON_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_RELOAD_BUTTON_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_RELOAD_BUTTON_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/timer.h" 12 #include "base/timer.h"
13 #include "chrome/browser/ui/gtk/custom_button.h" 13 #include "chrome/browser/ui/gtk/custom_button.h"
14 #include "content/public/browser/notification_observer.h" 14 #include "content/public/browser/notification_observer.h"
15 #include "content/public/browser/notification_registrar.h" 15 #include "content/public/browser/notification_registrar.h"
16 #include "ui/base/gtk/gtk_signal.h" 16 #include "ui/base/gtk/gtk_signal.h"
17 #include "ui/base/gtk/owned_widget_gtk.h" 17 #include "ui/base/gtk/owned_widget_gtk.h"
18 18
19 class Browser; 19 class Browser;
20 class GtkThemeService; 20 class GtkThemeService;
21 class LocationBarViewGtk; 21 class LocationBarViewGtk;
22 class Task;
23 22
24 class ReloadButtonGtk : public content::NotificationObserver { 23 class ReloadButtonGtk : public content::NotificationObserver {
25 public: 24 public:
26 enum Mode { MODE_RELOAD = 0, MODE_STOP }; 25 enum Mode { MODE_RELOAD = 0, MODE_STOP };
27 26
28 ReloadButtonGtk(LocationBarViewGtk* location_bar, Browser* browser); 27 ReloadButtonGtk(LocationBarViewGtk* location_bar, Browser* browser);
29 virtual ~ReloadButtonGtk(); 28 virtual ~ReloadButtonGtk();
30 29
31 GtkWidget* widget() const { return widget_.get(); } 30 GtkWidget* widget() const { return widget_.get(); }
32 31
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // True if we should pretend the button is hovered. 93 // True if we should pretend the button is hovered.
95 bool testing_mouse_hovered_; 94 bool testing_mouse_hovered_;
96 // Increments when we would tell the browser to "reload", so 95 // Increments when we would tell the browser to "reload", so
97 // test code can tell whether we did so (as there may be no |browser_|). 96 // test code can tell whether we did so (as there may be no |browser_|).
98 int testing_reload_count_; 97 int testing_reload_count_;
99 98
100 DISALLOW_IMPLICIT_CONSTRUCTORS(ReloadButtonGtk); 99 DISALLOW_IMPLICIT_CONSTRUCTORS(ReloadButtonGtk);
101 }; 100 };
102 101
103 #endif // CHROME_BROWSER_UI_GTK_RELOAD_BUTTON_GTK_H_ 102 #endif // CHROME_BROWSER_UI_GTK_RELOAD_BUTTON_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/notifications/balloon_view_host_gtk.h ('k') | chrome/browser/ui/gtk/tab_contents_container_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698