| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/browser_titlebar.h" | 5 #include "chrome/browser/gtk/browser_titlebar.h" |
| 6 | 6 |
| 7 #include <gdk/gdkkeysyms.h> | 7 #include <gdk/gdkkeysyms.h> |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "app/l10n_util.h" | 13 #include "app/l10n_util.h" |
| 14 #include "app/resource_bundle.h" | 14 #include "app/resource_bundle.h" |
| 15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
| 16 #include "base/singleton.h" | 16 #include "base/singleton.h" |
| 17 #include "base/string_piece.h" | 17 #include "base/string_piece.h" |
| 18 #include "base/string_tokenizer.h" | 18 #include "base/string_tokenizer.h" |
| 19 #include "base/utf_string_conversions.h" |
| 19 #include "chrome/app/chrome_dll_resource.h" | 20 #include "chrome/app/chrome_dll_resource.h" |
| 20 #include "chrome/browser/browser.h" | 21 #include "chrome/browser/browser.h" |
| 21 #include "chrome/browser/encoding_menu_controller.h" | 22 #include "chrome/browser/encoding_menu_controller.h" |
| 22 #include "chrome/browser/gtk/accelerators_gtk.h" | 23 #include "chrome/browser/gtk/accelerators_gtk.h" |
| 23 #include "chrome/browser/gtk/browser_window_gtk.h" | 24 #include "chrome/browser/gtk/browser_window_gtk.h" |
| 24 #include "chrome/browser/gtk/custom_button.h" | 25 #include "chrome/browser/gtk/custom_button.h" |
| 25 #include "chrome/browser/gtk/gconf_titlebar_listener.h" | 26 #include "chrome/browser/gtk/gconf_titlebar_listener.h" |
| 26 #include "chrome/browser/gtk/gtk_theme_provider.h" | 27 #include "chrome/browser/gtk/gtk_theme_provider.h" |
| 27 #include "chrome/browser/gtk/gtk_util.h" | 28 #include "chrome/browser/gtk/gtk_util.h" |
| 28 #include "chrome/browser/gtk/menu_gtk.h" | 29 #include "chrome/browser/gtk/menu_gtk.h" |
| (...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 menus::SimpleMenuModel::Delegate* delegate) | 885 menus::SimpleMenuModel::Delegate* delegate) |
| 885 : SimpleMenuModel(delegate) { | 886 : SimpleMenuModel(delegate) { |
| 886 AddItemWithStringId(IDC_NEW_TAB, IDS_TAB_CXMENU_NEWTAB); | 887 AddItemWithStringId(IDC_NEW_TAB, IDS_TAB_CXMENU_NEWTAB); |
| 887 AddItemWithStringId(IDC_RESTORE_TAB, IDS_RESTORE_TAB); | 888 AddItemWithStringId(IDC_RESTORE_TAB, IDS_RESTORE_TAB); |
| 888 AddSeparator(); | 889 AddSeparator(); |
| 889 AddItemWithStringId(IDC_TASK_MANAGER, IDS_TASK_MANAGER); | 890 AddItemWithStringId(IDC_TASK_MANAGER, IDS_TASK_MANAGER); |
| 890 AddSeparator(); | 891 AddSeparator(); |
| 891 AddCheckItemWithStringId(kShowWindowDecorationsCommand, | 892 AddCheckItemWithStringId(kShowWindowDecorationsCommand, |
| 892 IDS_SHOW_WINDOW_DECORATIONS_MENU); | 893 IDS_SHOW_WINDOW_DECORATIONS_MENU); |
| 893 } | 894 } |
| OLD | NEW |