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 | 9 |
10 #include "base/debug/leak_annotations.h" | 10 #include "base/debug/leak_annotations.h" |
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 } | 884 } |
885 | 885 |
886 void GlobalMenuBarX11::OnEditProfileItemActivated(DbusmenuMenuitem* sender, | 886 void GlobalMenuBarX11::OnEditProfileItemActivated(DbusmenuMenuitem* sender, |
887 unsigned int timestamp) { | 887 unsigned int timestamp) { |
888 int id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(sender), kProfileId)); | 888 int id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(sender), kProfileId)); |
889 avatar_menu_->EditProfile(id); | 889 avatar_menu_->EditProfile(id); |
890 } | 890 } |
891 | 891 |
892 void GlobalMenuBarX11::OnCreateProfileItemActivated(DbusmenuMenuitem* sender, | 892 void GlobalMenuBarX11::OnCreateProfileItemActivated(DbusmenuMenuitem* sender, |
893 unsigned int timestamp) { | 893 unsigned int timestamp) { |
894 profiles::CreateAndSwitchToNewProfile(chrome::HOST_DESKTOP_TYPE_NATIVE, | 894 profiles::CreateAndSwitchToNewProfile(ui::HOST_DESKTOP_TYPE_NATIVE, |
895 ProfileManager::CreateCallback(), | 895 ProfileManager::CreateCallback(), |
896 ProfileMetrics::ADD_NEW_USER_MENU); | 896 ProfileMetrics::ADD_NEW_USER_MENU); |
897 } | 897 } |
OLD | NEW |