OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/views/frame/global_menu_bar_x11.h" | 5 #include "chrome/browser/ui/views/frame/global_menu_bar_x11.h" |
6 | 6 |
7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
8 #include <glib-object.h> | 8 #include <glib-object.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 | 10 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 GlobalMenuBarCommand file_menu[] = { | 145 GlobalMenuBarCommand file_menu[] = { |
146 { IDS_NEW_TAB, IDC_NEW_TAB }, | 146 { IDS_NEW_TAB, IDC_NEW_TAB }, |
147 { IDS_NEW_WINDOW, IDC_NEW_WINDOW }, | 147 { IDS_NEW_WINDOW, IDC_NEW_WINDOW }, |
148 { IDS_NEW_INCOGNITO_WINDOW, IDC_NEW_INCOGNITO_WINDOW }, | 148 { IDS_NEW_INCOGNITO_WINDOW, IDC_NEW_INCOGNITO_WINDOW }, |
149 { IDS_REOPEN_CLOSED_TABS_LINUX, IDC_RESTORE_TAB }, | 149 { IDS_REOPEN_CLOSED_TABS_LINUX, IDC_RESTORE_TAB }, |
150 { IDS_OPEN_FILE_LINUX, IDC_OPEN_FILE }, | 150 { IDS_OPEN_FILE_LINUX, IDC_OPEN_FILE }, |
151 { IDS_OPEN_LOCATION_LINUX, IDC_FOCUS_LOCATION }, | 151 { IDS_OPEN_LOCATION_LINUX, IDC_FOCUS_LOCATION }, |
152 | 152 |
153 { MENU_SEPARATOR, MENU_SEPARATOR }, | 153 { MENU_SEPARATOR, MENU_SEPARATOR }, |
154 | 154 |
155 { IDS_CREATE_SHORTCUTS, IDC_CREATE_SHORTCUTS }, | |
156 | |
157 { MENU_SEPARATOR, MENU_SEPARATOR }, | |
158 | |
159 { IDS_CLOSE_WINDOW_LINUX, IDC_CLOSE_WINDOW }, | 155 { IDS_CLOSE_WINDOW_LINUX, IDC_CLOSE_WINDOW }, |
160 { IDS_CLOSE_TAB_LINUX, IDC_CLOSE_TAB }, | 156 { IDS_CLOSE_TAB_LINUX, IDC_CLOSE_TAB }, |
161 { IDS_SAVE_PAGE, IDC_SAVE_PAGE }, | 157 { IDS_SAVE_PAGE, IDC_SAVE_PAGE }, |
162 | 158 |
163 { MENU_SEPARATOR, MENU_SEPARATOR }, | 159 { MENU_SEPARATOR, MENU_SEPARATOR }, |
164 | 160 |
165 { IDS_PRINT, IDC_PRINT }, | 161 { IDS_PRINT, IDC_PRINT }, |
166 | 162 |
167 { MENU_END, MENU_END } | 163 { MENU_END, MENU_END } |
168 }; | 164 }; |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 unsigned int timestamp) { | 881 unsigned int timestamp) { |
886 int id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(sender), kProfileId)); | 882 int id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(sender), kProfileId)); |
887 avatar_menu_->EditProfile(id); | 883 avatar_menu_->EditProfile(id); |
888 } | 884 } |
889 | 885 |
890 void GlobalMenuBarX11::OnCreateProfileItemActivated(DbusmenuMenuitem* sender, | 886 void GlobalMenuBarX11::OnCreateProfileItemActivated(DbusmenuMenuitem* sender, |
891 unsigned int timestamp) { | 887 unsigned int timestamp) { |
892 profiles::CreateAndSwitchToNewProfile(ProfileManager::CreateCallback(), | 888 profiles::CreateAndSwitchToNewProfile(ProfileManager::CreateCallback(), |
893 ProfileMetrics::ADD_NEW_USER_MENU); | 889 ProfileMetrics::ADD_NEW_USER_MENU); |
894 } | 890 } |
OLD | NEW |