Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Side by Side Diff: chrome/browser/ui/views/frame/global_menu_bar_x11.cc

Issue 1586663004: Componentize IDS_PRINT string so that it can be shared on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ids-close
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/toolbar/app_menu_model.cc ('k') | components/components_strings.grd » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 17 matching lines...) Expand all
28 #include "chrome/browser/ui/browser_commands.h" 28 #include "chrome/browser/ui/browser_commands.h"
29 #include "chrome/browser/ui/browser_list.h" 29 #include "chrome/browser/ui/browser_list.h"
30 #include "chrome/browser/ui/browser_live_tab_context.h" 30 #include "chrome/browser/ui/browser_live_tab_context.h"
31 #include "chrome/browser/ui/views/frame/browser_desktop_window_tree_host_x11.h" 31 #include "chrome/browser/ui/views/frame/browser_desktop_window_tree_host_x11.h"
32 #include "chrome/browser/ui/views/frame/browser_view.h" 32 #include "chrome/browser/ui/views/frame/browser_view.h"
33 #include "chrome/browser/ui/views/frame/global_menu_bar_registrar_x11.h" 33 #include "chrome/browser/ui/views/frame/global_menu_bar_registrar_x11.h"
34 #include "chrome/grit/generated_resources.h" 34 #include "chrome/grit/generated_resources.h"
35 #include "components/bookmarks/common/bookmark_pref_names.h" 35 #include "components/bookmarks/common/bookmark_pref_names.h"
36 #include "components/history/core/browser/top_sites.h" 36 #include "components/history/core/browser/top_sites.h"
37 #include "components/sessions/core/tab_restore_service.h" 37 #include "components/sessions/core/tab_restore_service.h"
38 #include "grit/components_strings.h"
38 #include "ui/base/accelerators/menu_label_accelerator_util_linux.h" 39 #include "ui/base/accelerators/menu_label_accelerator_util_linux.h"
39 #include "ui/base/l10n/l10n_util.h" 40 #include "ui/base/l10n/l10n_util.h"
40 #include "ui/events/keycodes/keyboard_code_conversion_x.h" 41 #include "ui/events/keycodes/keyboard_code_conversion_x.h"
41 #include "ui/gfx/text_elider.h" 42 #include "ui/gfx/text_elider.h"
42 43
43 // libdbusmenu-glib types 44 // libdbusmenu-glib types
44 typedef struct _DbusmenuMenuitem DbusmenuMenuitem; 45 typedef struct _DbusmenuMenuitem DbusmenuMenuitem;
45 typedef DbusmenuMenuitem* (*dbusmenu_menuitem_new_func)(); 46 typedef DbusmenuMenuitem* (*dbusmenu_menuitem_new_func)();
46 typedef bool (*dbusmenu_menuitem_child_add_position_func)( 47 typedef bool (*dbusmenu_menuitem_child_add_position_func)(
47 DbusmenuMenuitem* parent, 48 DbusmenuMenuitem* parent,
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 int id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(sender), kProfileId)); 893 int id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(sender), kProfileId));
893 avatar_menu_->EditProfile(id); 894 avatar_menu_->EditProfile(id);
894 } 895 }
895 896
896 void GlobalMenuBarX11::OnCreateProfileItemActivated(DbusmenuMenuitem* sender, 897 void GlobalMenuBarX11::OnCreateProfileItemActivated(DbusmenuMenuitem* sender,
897 unsigned int timestamp) { 898 unsigned int timestamp) {
898 profiles::CreateAndSwitchToNewProfile(chrome::HOST_DESKTOP_TYPE_NATIVE, 899 profiles::CreateAndSwitchToNewProfile(chrome::HOST_DESKTOP_TYPE_NATIVE,
899 ProfileManager::CreateCallback(), 900 ProfileManager::CreateCallback(),
900 ProfileMetrics::ADD_NEW_USER_MENU); 901 ProfileMetrics::ADD_NEW_USER_MENU);
901 } 902 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/app_menu_model.cc ('k') | components/components_strings.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698