| 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 "ash/shell/context_menu.h" | 5 #include "ash/shell/context_menu.h" |
| 6 | 6 |
| 7 #include "ash/root_window_controller.h" | 7 #include "ash/root_window_controller.h" |
| 8 #include "ash/shelf/shelf.h" | 8 #include "ash/shelf/shelf.h" |
| 9 #include "ash/shelf/shelf_types.h" | 9 #include "ash/shelf/shelf_types.h" |
| 10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| 11 #include "grit/ash_strings.h" | 11 #include "grit/ash_strings.h" |
| 12 #include "ui/base/l10n/l10n_util.h" | |
| 13 | 12 |
| 14 namespace ash { | 13 namespace ash { |
| 15 namespace shell { | 14 namespace shell { |
| 16 | 15 |
| 17 ContextMenu::ContextMenu(aura::Window* root) | 16 ContextMenu::ContextMenu(aura::Window* root) |
| 18 : ui::SimpleMenuModel(NULL), | 17 : ui::SimpleMenuModel(NULL), |
| 19 root_window_(root), | 18 root_window_(root), |
| 20 alignment_menu_(root) { | 19 alignment_menu_(root) { |
| 21 DCHECK(root_window_); | 20 DCHECK(root_window_); |
| 22 set_delegate(this); | 21 set_delegate(this); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS, | 60 SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS, |
| 62 root_window_); | 61 root_window_); |
| 63 break; | 62 break; |
| 64 case MENU_ALIGNMENT_MENU: | 63 case MENU_ALIGNMENT_MENU: |
| 65 break; | 64 break; |
| 66 } | 65 } |
| 67 } | 66 } |
| 68 | 67 |
| 69 } // namespace shell | 68 } // namespace shell |
| 70 } // namespace ash | 69 } // namespace ash |
| OLD | NEW |