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

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

Issue 6099014: Move chrome/browser/gtk to chrome/browser/ui/gtk (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Move browser/gtk/ to browser/ui/gtk/, leave header stubs, update new header guards 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gtk/accessible_widget_helper_gtk.h ('k') | chrome/browser/gtk/bookmark_bar_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/back_forward_button_gtk.h
diff --git a/chrome/browser/gtk/back_forward_button_gtk.h b/chrome/browser/gtk/back_forward_button_gtk.h
index c136627981fc0565dacb424b97bc4ceb6a4714a1..375c08e0d49a8b912c54e4a577a9779b83da415f 100644
--- a/chrome/browser/gtk/back_forward_button_gtk.h
+++ b/chrome/browser/gtk/back_forward_button_gtk.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -6,67 +6,7 @@
#define CHROME_BROWSER_GTK_BACK_FORWARD_BUTTON_GTK_H_
#pragma once
-#include "app/gtk_signal.h"
-#include "base/scoped_ptr.h"
-#include "base/task.h"
-#include "chrome/browser/gtk/custom_button.h"
-#include "chrome/browser/gtk/menu_gtk.h"
-
-class BackForwardMenuModel;
-class Browser;
-
-typedef struct _GtkWidget GtkWidget;
-
-// When clicked, these buttons will navigate forward or backward. When
-// pressed and held, they show a dropdown menu of recent web sites.
-class BackForwardButtonGtk : MenuGtk::Delegate {
- public:
- BackForwardButtonGtk(Browser* browser, bool is_forward);
- virtual ~BackForwardButtonGtk();
-
- // MenuGtk::Delegate implementation.
- virtual void StoppedShowing();
- virtual bool AlwaysShowIconForCmd(int command_id) const;
-
- GtkWidget* widget() { return button_->widget(); }
-
- private:
- // Executes the browser command.
- CHROMEGTK_CALLBACK_0(BackForwardButtonGtk, void, OnClick);
-
- // Starts a timer to show the dropdown menu.
- CHROMEGTK_CALLBACK_1(BackForwardButtonGtk, gboolean, OnButtonPress,
- GdkEventButton*);
-
- // If there is a timer to show the dropdown menu, and the mouse has moved
- // sufficiently down the screen, cancel the timer and immediately show the
- // menu.
- CHROMEGTK_CALLBACK_1(BackForwardButtonGtk, gboolean, OnMouseMove,
- GdkEventMotion*);
-
- // Shows the dropdown menu.
- void ShowBackForwardMenu();
-
- // The menu gets reset every time it is shown.
- scoped_ptr<MenuGtk> menu_;
-
- scoped_ptr<CustomDrawButton> button_;
-
- // The browser to which we will send commands.
- Browser* browser_;
-
- // Whether this button is a forward button.
- bool is_forward_;
-
- // The dropdown menu model.
- scoped_ptr<BackForwardMenuModel> menu_model_;
-
- // The y position of the last mouse down event.
- int y_position_of_last_press_;
-
- ScopedRunnableMethodFactory<BackForwardButtonGtk> show_menu_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(BackForwardButtonGtk);
-};
+#include "chrome/browser/ui/gtk/back_forward_button_gtk.h"
+// TODO(msw): remove this file once all includes have been updated.
#endif // CHROME_BROWSER_GTK_BACK_FORWARD_BUTTON_GTK_H_
« no previous file with comments | « chrome/browser/gtk/accessible_widget_helper_gtk.h ('k') | chrome/browser/gtk/bookmark_bar_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698