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

Side by Side Diff: ash/shelf/shelf_alignment_menu.cc

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/shelf/shelf.cc ('k') | ash/shelf/shelf_bezel_event_filter.h » ('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 "ash/shelf/shelf_alignment_menu.h" 5 #include "ash/shelf/shelf_alignment_menu.h"
6 6
7 #include "ash/metrics/user_metrics_recorder.h" 7 #include "ash/metrics/user_metrics_recorder.h"
8 #include "ash/shelf/shelf_layout_manager.h" 8 #include "ash/shelf/shelf_layout_manager.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"
(...skipping 16 matching lines...) Expand all
27 IDS_ASH_SHELF_CONTEXT_MENU_ALIGN_BOTTOM, 27 IDS_ASH_SHELF_CONTEXT_MENU_ALIGN_BOTTOM,
28 align_group_id); 28 align_group_id);
29 AddRadioItemWithStringId(MENU_ALIGN_RIGHT, 29 AddRadioItemWithStringId(MENU_ALIGN_RIGHT,
30 IDS_ASH_SHELF_CONTEXT_MENU_ALIGN_RIGHT, 30 IDS_ASH_SHELF_CONTEXT_MENU_ALIGN_RIGHT,
31 align_group_id); 31 align_group_id);
32 } 32 }
33 33
34 ShelfAlignmentMenu::~ShelfAlignmentMenu() {} 34 ShelfAlignmentMenu::~ShelfAlignmentMenu() {}
35 35
36 bool ShelfAlignmentMenu::IsCommandIdChecked(int command_id) const { 36 bool ShelfAlignmentMenu::IsCommandIdChecked(int command_id) const {
37 return internal::ShelfLayoutManager::ForShelf(root_window_)-> 37 return ShelfLayoutManager::ForShelf(root_window_)
38 SelectValueForShelfAlignment( 38 ->SelectValueForShelfAlignment(MENU_ALIGN_BOTTOM == command_id,
39 MENU_ALIGN_BOTTOM == command_id, 39 MENU_ALIGN_LEFT == command_id,
40 MENU_ALIGN_LEFT == command_id, 40 MENU_ALIGN_RIGHT == command_id,
41 MENU_ALIGN_RIGHT == command_id, 41 false);
42 false);
43 } 42 }
44 43
45 bool ShelfAlignmentMenu::IsCommandIdEnabled(int command_id) const { 44 bool ShelfAlignmentMenu::IsCommandIdEnabled(int command_id) const {
46 return true; 45 return true;
47 } 46 }
48 47
49 bool ShelfAlignmentMenu::GetAcceleratorForCommandId( 48 bool ShelfAlignmentMenu::GetAcceleratorForCommandId(
50 int command_id, 49 int command_id,
51 ui::Accelerator* accelerator) { 50 ui::Accelerator* accelerator) {
52 return false; 51 return false;
(...skipping 16 matching lines...) Expand all
69 case MENU_ALIGN_RIGHT: 68 case MENU_ALIGN_RIGHT:
70 Shell::GetInstance()->metrics()-> 69 Shell::GetInstance()->metrics()->
71 RecordUserMetricsAction(UMA_SHELF_ALIGNMENT_SET_RIGHT); 70 RecordUserMetricsAction(UMA_SHELF_ALIGNMENT_SET_RIGHT);
72 Shell::GetInstance()->SetShelfAlignment(SHELF_ALIGNMENT_RIGHT, 71 Shell::GetInstance()->SetShelfAlignment(SHELF_ALIGNMENT_RIGHT,
73 root_window_); 72 root_window_);
74 break; 73 break;
75 } 74 }
76 } 75 }
77 76
78 } // namespace ash 77 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shelf/shelf.cc ('k') | ash/shelf/shelf_bezel_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698