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

Side by Side 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, 4 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) 2011 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_ACTION_BOX_BUTTON_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_ACTION_BOX_BUTTON_GTK_H_
7
8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/gtk/custom_button.h"
11 #include "ui/base/gtk/gtk_signal.h"
12
13 class Browser;
14
15 typedef struct _GtkWidget GtkWidget;
16
17 // This class displays the action box button with an associated menu. This is
18 // where extension actions and the bookmark star live.
19 class ActionBoxButtonGtk {
20 public:
21 explicit ActionBoxButtonGtk(Browser* browser);
22 virtual ~ActionBoxButtonGtk();
23
24 GtkWidget* widget() { return button_->widget(); }
25
26 private:
27 // Executes the browser command.
28 CHROMEGTK_CALLBACK_0(ActionBoxButtonGtk, void, OnClick);
29
30 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
31
32 // The browser to which we will send commands.
33 Browser* browser_;
34
35 DISALLOW_COPY_AND_ASSIGN(ActionBoxButtonGtk);
36 };
37
38 #endif // CHROME_BROWSER_UI_GTK_ACTION_BOX_BUTTON_GTK_H_
OLDNEW
« 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