| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/gtk/browser_titlebar.h" | 5 #include "chrome/browser/ui/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 "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/i18n/rtl.h" | 14 #include "base/i18n/rtl.h" |
| 15 #include "base/memory/singleton.h" | 15 #include "base/memory/singleton.h" |
| 16 #include "base/string_piece.h" | 16 #include "base/string_piece.h" |
| 17 #include "base/string_tokenizer.h" | 17 #include "base/string_tokenizer.h" |
| 18 #include "base/utf_string_conversions.h" | 18 #include "base/utf_string_conversions.h" |
| 19 #include "chrome/app/chrome_command_ids.h" | 19 #include "chrome/app/chrome_command_ids.h" |
| 20 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
| 21 #include "chrome/browser/managed_mode.h" | 21 #include "chrome/browser/managed_mode/managed_mode.h" |
| 22 #include "chrome/browser/prefs/pref_service.h" | 22 #include "chrome/browser/prefs/pref_service.h" |
| 23 #include "chrome/browser/profiles/avatar_menu_model.h" | 23 #include "chrome/browser/profiles/avatar_menu_model.h" |
| 24 #include "chrome/browser/profiles/profile.h" | 24 #include "chrome/browser/profiles/profile.h" |
| 25 #include "chrome/browser/profiles/profile_info_cache.h" | 25 #include "chrome/browser/profiles/profile_info_cache.h" |
| 26 #include "chrome/browser/profiles/profile_manager.h" | 26 #include "chrome/browser/profiles/profile_manager.h" |
| 27 #include "chrome/browser/ui/browser.h" | 27 #include "chrome/browser/ui/browser.h" |
| 28 #include "chrome/browser/ui/browser_commands.h" | 28 #include "chrome/browser/ui/browser_commands.h" |
| 29 #include "chrome/browser/ui/browser_tabstrip.h" | 29 #include "chrome/browser/ui/browser_tabstrip.h" |
| 30 #include "chrome/browser/ui/gtk/accelerators_gtk.h" | 30 #include "chrome/browser/ui/gtk/accelerators_gtk.h" |
| 31 #include "chrome/browser/ui/gtk/avatar_menu_button_gtk.h" | 31 #include "chrome/browser/ui/gtk/avatar_menu_button_gtk.h" |
| (...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1035 ui::SimpleMenuModel::Delegate* delegate) | 1035 ui::SimpleMenuModel::Delegate* delegate) |
| 1036 : SimpleMenuModel(delegate) { | 1036 : SimpleMenuModel(delegate) { |
| 1037 AddItemWithStringId(IDC_NEW_TAB, IDS_TAB_CXMENU_NEWTAB); | 1037 AddItemWithStringId(IDC_NEW_TAB, IDS_TAB_CXMENU_NEWTAB); |
| 1038 AddItemWithStringId(IDC_RESTORE_TAB, IDS_RESTORE_TAB); | 1038 AddItemWithStringId(IDC_RESTORE_TAB, IDS_RESTORE_TAB); |
| 1039 AddSeparator(ui::NORMAL_SEPARATOR); | 1039 AddSeparator(ui::NORMAL_SEPARATOR); |
| 1040 AddItemWithStringId(IDC_TASK_MANAGER, IDS_TASK_MANAGER); | 1040 AddItemWithStringId(IDC_TASK_MANAGER, IDS_TASK_MANAGER); |
| 1041 AddSeparator(ui::NORMAL_SEPARATOR); | 1041 AddSeparator(ui::NORMAL_SEPARATOR); |
| 1042 AddCheckItemWithStringId(kShowWindowDecorationsCommand, | 1042 AddCheckItemWithStringId(kShowWindowDecorationsCommand, |
| 1043 IDS_SHOW_WINDOW_DECORATIONS_MENU); | 1043 IDS_SHOW_WINDOW_DECORATIONS_MENU); |
| 1044 } | 1044 } |
| OLD | NEW |