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

Unified Diff: chrome/browser/ui/gtk/action_box_button_gtk.h

Issue 10830140: GTK implementation of the action box button. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
Index: chrome/browser/ui/gtk/action_box_button_gtk.h
diff --git a/chrome/browser/ui/gtk/action_box_button_gtk.h b/chrome/browser/ui/gtk/action_box_button_gtk.h
new file mode 100644
index 0000000000000000000000000000000000000000..4d811bda2c9db8b6822538c32f925386046c78fb
--- /dev/null
+++ b/chrome/browser/ui/gtk/action_box_button_gtk.h
@@ -0,0 +1,38 @@
+// 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.
+
+#ifndef CHROME_BROWSER_UI_GTK_ACTION_BOX_BUTTON_GTK_H_
+#define CHROME_BROWSER_UI_GTK_ACTION_BOX_BUTTON_GTK_H_
+
+#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/ui/gtk/custom_button.h"
+#include "ui/base/gtk/gtk_signal.h"
+
+class Browser;
+
+typedef struct _GtkWidget GtkWidget;
+
+// This class displays the action box button with an associated menu. This is
+// where extension actions and the bookmark star live.
+class ActionBoxButtonGtk {
+ public:
+ explicit ActionBoxButtonGtk(Browser* browser);
+ virtual ~ActionBoxButtonGtk();
+
+ GtkWidget* widget() { return button_->widget(); }
+
+ private:
+ // Executes the browser command.
+ CHROMEGTK_CALLBACK_0(ActionBoxButtonGtk, void, OnClick);
+
+ scoped_ptr<CustomDrawButton> button_;
not at google - send to devlin 2012/08/02 18:27:55 forward declare?
Matt Perry 2012/08/03 09:57:42 Done. However, it required a small violation of th
+
+ // The browser to which we will send commands.
+ Browser* browser_;
+
+ DISALLOW_COPY_AND_ASSIGN(ActionBoxButtonGtk);
+};
+
+#endif // CHROME_BROWSER_UI_GTK_ACTION_BOX_BUTTON_GTK_H_
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/action_box_button_gtk.cc » ('j') | chrome/browser/ui/gtk/location_bar_view_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698