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/views/aura/launcher/launcher_context_menu.h" | 5 #include "chrome/browser/ui/views/ash/launcher/launcher_context_menu.h" |
6 | 6 |
7 #include "chrome/browser/ui/views/aura/launcher/chrome_launcher_delegate.h" | 7 #include "chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.h" |
8 #include "grit/generated_resources.h" | 8 #include "grit/generated_resources.h" |
9 #include "ui/base/l10n/l10n_util.h" | 9 #include "ui/base/l10n/l10n_util.h" |
10 | 10 |
11 LauncherContextMenu::LauncherContextMenu(ChromeLauncherDelegate* delegate, | 11 LauncherContextMenu::LauncherContextMenu(ChromeLauncherDelegate* delegate, |
12 ash::LauncherID id) | 12 ash::LauncherID id) |
13 : ui::SimpleMenuModel(NULL), | 13 : ui::SimpleMenuModel(NULL), |
14 delegate_(delegate), | 14 delegate_(delegate), |
15 id_(id) { | 15 id_(id) { |
16 set_delegate(this); | 16 set_delegate(this); |
17 ash::LauncherItem item; | 17 ash::LauncherItem item; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 delegate_->Open(id_); | 59 delegate_->Open(id_); |
60 break; | 60 break; |
61 case MENU_CLOSE: | 61 case MENU_CLOSE: |
62 delegate_->Close(id_); | 62 delegate_->Close(id_); |
63 break; | 63 break; |
64 case MENU_PIN: | 64 case MENU_PIN: |
65 delegate_->TogglePinned(id_); | 65 delegate_->TogglePinned(id_); |
66 break; | 66 break; |
67 } | 67 } |
68 } | 68 } |
OLD | NEW |