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 "base/utf_string_conversions.h" |
20 #include "chrome/app/chrome_dll_resource.h" | 20 #include "chrome/app/chrome_command_ids.h" |
21 #include "chrome/browser/browser.h" | 21 #include "chrome/browser/browser.h" |
22 #include "chrome/browser/encoding_menu_controller.h" | 22 #include "chrome/browser/encoding_menu_controller.h" |
23 #include "chrome/browser/gtk/accelerators_gtk.h" | 23 #include "chrome/browser/gtk/accelerators_gtk.h" |
24 #include "chrome/browser/gtk/browser_window_gtk.h" | 24 #include "chrome/browser/gtk/browser_window_gtk.h" |
25 #include "chrome/browser/gtk/custom_button.h" | 25 #include "chrome/browser/gtk/custom_button.h" |
26 #include "chrome/browser/gtk/gconf_titlebar_listener.h" | 26 #include "chrome/browser/gtk/gconf_titlebar_listener.h" |
27 #include "chrome/browser/gtk/gtk_theme_provider.h" | 27 #include "chrome/browser/gtk/gtk_theme_provider.h" |
28 #include "chrome/browser/gtk/gtk_util.h" | 28 #include "chrome/browser/gtk/gtk_util.h" |
29 #include "chrome/browser/gtk/menu_gtk.h" | 29 #include "chrome/browser/gtk/menu_gtk.h" |
30 #include "chrome/browser/gtk/nine_box.h" | 30 #include "chrome/browser/gtk/nine_box.h" |
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 menus::SimpleMenuModel::Delegate* delegate) | 926 menus::SimpleMenuModel::Delegate* delegate) |
927 : SimpleMenuModel(delegate) { | 927 : SimpleMenuModel(delegate) { |
928 AddItemWithStringId(IDC_NEW_TAB, IDS_TAB_CXMENU_NEWTAB); | 928 AddItemWithStringId(IDC_NEW_TAB, IDS_TAB_CXMENU_NEWTAB); |
929 AddItemWithStringId(IDC_RESTORE_TAB, IDS_RESTORE_TAB); | 929 AddItemWithStringId(IDC_RESTORE_TAB, IDS_RESTORE_TAB); |
930 AddSeparator(); | 930 AddSeparator(); |
931 AddItemWithStringId(IDC_TASK_MANAGER, IDS_TASK_MANAGER); | 931 AddItemWithStringId(IDC_TASK_MANAGER, IDS_TASK_MANAGER); |
932 AddSeparator(); | 932 AddSeparator(); |
933 AddCheckItemWithStringId(kShowWindowDecorationsCommand, | 933 AddCheckItemWithStringId(kShowWindowDecorationsCommand, |
934 IDS_SHOW_WINDOW_DECORATIONS_MENU); | 934 IDS_SHOW_WINDOW_DECORATIONS_MENU); |
935 } | 935 } |
OLD | NEW |