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

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

Issue 7087028: roll clang 131935:132017 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 6 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
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_MENU_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_MENU_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_MENU_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_MENU_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // Returns a tinted image used in button in a menu. 48 // Returns a tinted image used in button in a menu.
49 virtual GtkIconSet* GetIconSetForId(int idr) { return NULL; } 49 virtual GtkIconSet* GetIconSetForId(int idr) { return NULL; }
50 50
51 // Returns an icon for the menu item, if available. 51 // Returns an icon for the menu item, if available.
52 virtual GtkWidget* GetImageForCommandId(int command_id) const; 52 virtual GtkWidget* GetImageForCommandId(int command_id) const;
53 53
54 static GtkWidget* GetDefaultImageForCommandId(int command_id); 54 static GtkWidget* GetDefaultImageForCommandId(int command_id);
55 }; 55 };
56 56
57 MenuGtk(MenuGtk::Delegate* delegate, ui::MenuModel* model); 57 MenuGtk(MenuGtk::Delegate* delegate, ui::MenuModel* model);
58 ~MenuGtk(); 58 virtual ~MenuGtk();
59 59
60 // Initialize GTK signal handlers. 60 // Initialize GTK signal handlers.
61 void ConnectSignalHandlers(); 61 void ConnectSignalHandlers();
62 62
63 // These methods are used to build the menu dynamically. The return value 63 // These methods are used to build the menu dynamically. The return value
64 // is the new menu item. 64 // is the new menu item.
65 GtkWidget* AppendMenuItemWithLabel(int command_id, const std::string& label); 65 GtkWidget* AppendMenuItemWithLabel(int command_id, const std::string& label);
66 GtkWidget* AppendMenuItemWithIcon(int command_id, const std::string& label, 66 GtkWidget* AppendMenuItemWithIcon(int command_id, const std::string& label,
67 const SkBitmap& icon); 67 const SkBitmap& icon);
68 GtkWidget* AppendCheckMenuItemWithLabel(int command_id, 68 GtkWidget* AppendCheckMenuItemWithLabel(int command_id,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // menu. 187 // menu.
188 static bool block_activation_; 188 static bool block_activation_;
189 189
190 // We must free these at shutdown. 190 // We must free these at shutdown.
191 std::vector<MenuGtk*> submenus_we_own_; 191 std::vector<MenuGtk*> submenus_we_own_;
192 192
193 ScopedRunnableMethodFactory<MenuGtk> factory_; 193 ScopedRunnableMethodFactory<MenuGtk> factory_;
194 }; 194 };
195 195
196 #endif // CHROME_BROWSER_UI_GTK_MENU_GTK_H_ 196 #endif // CHROME_BROWSER_UI_GTK_MENU_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698