| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/browser/gtk/menu_gtk.h" | 5 #include "chrome/browser/gtk/menu_gtk.h" |
| 6 | 6 |
| 7 #include "app/gfx/gtk_util.h" |
| 7 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
| 8 #include "base/gfx/gtk_util.h" | |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/stl_util-inl.h" | 11 #include "base/stl_util-inl.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "chrome/browser/gtk/standard_menus.h" | 13 #include "chrome/browser/gtk/standard_menus.h" |
| 14 #include "chrome/common/gtk_util.h" | 14 #include "chrome/common/gtk_util.h" |
| 15 #include "third_party/skia/include/core/SkBitmap.h" | 15 #include "third_party/skia/include/core/SkBitmap.h" |
| 16 | 16 |
| 17 using gtk_util::ConvertAcceleratorsFromWindowsStyle; | 17 using gtk_util::ConvertAcceleratorsFromWindowsStyle; |
| 18 | 18 |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 gtk_widget_set_sensitive( | 363 gtk_widget_set_sensitive( |
| 364 widget, menu->delegate_->IsCommandEnabled(id)); | 364 widget, menu->delegate_->IsCommandEnabled(id)); |
| 365 | 365 |
| 366 GtkWidget* submenu = gtk_menu_item_get_submenu(GTK_MENU_ITEM(widget)); | 366 GtkWidget* submenu = gtk_menu_item_get_submenu(GTK_MENU_ITEM(widget)); |
| 367 if (submenu) { | 367 if (submenu) { |
| 368 gtk_container_foreach(GTK_CONTAINER(submenu), &SetMenuItemInfo, | 368 gtk_container_foreach(GTK_CONTAINER(submenu), &SetMenuItemInfo, |
| 369 userdata); | 369 userdata); |
| 370 } | 370 } |
| 371 } | 371 } |
| 372 } | 372 } |
| OLD | NEW |