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

Side by Side Diff: ash/mus/context_menu_mus.cc

Issue 2808723004: Renames WmShell to ShellPort (Closed)
Patch Set: feedback Created 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/mus/context_menu_mus.h" 5 #include "ash/mus/context_menu_mus.h"
6 6
7 #include "ash/public/cpp/shelf_types.h" 7 #include "ash/public/cpp/shelf_types.h"
8 #include "ash/shelf/wm_shelf.h" 8 #include "ash/shelf/wm_shelf.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/strings/grit/ash_strings.h" 10 #include "ash/strings/grit/ash_strings.h"
11 #include "ash/wallpaper/wallpaper_controller.h" 11 #include "ash/wallpaper/wallpaper_controller.h"
12 #include "ash/wallpaper/wallpaper_delegate.h" 12 #include "ash/wallpaper/wallpaper_delegate.h"
13 #include "ash/wm_shell.h"
14 13
15 namespace ash { 14 namespace ash {
16 15
17 ContextMenuMus::ContextMenuMus(WmShelf* wm_shelf) 16 ContextMenuMus::ContextMenuMus(WmShelf* wm_shelf)
18 : ui::SimpleMenuModel(nullptr), 17 : ui::SimpleMenuModel(nullptr),
19 wm_shelf_(wm_shelf), 18 wm_shelf_(wm_shelf),
20 alignment_menu_(wm_shelf) { 19 alignment_menu_(wm_shelf) {
21 set_delegate(this); 20 set_delegate(this);
22 AddCheckItemWithStringId(MENU_AUTO_HIDE, 21 AddCheckItemWithStringId(MENU_AUTO_HIDE,
23 IDS_ASH_SHELF_CONTEXT_MENU_AUTO_HIDE); 22 IDS_ASH_SHELF_CONTEXT_MENU_AUTO_HIDE);
(...skipping 21 matching lines...) Expand all
45 wm_shelf_->SetAutoHideBehavior(wm_shelf_->auto_hide_behavior() == 44 wm_shelf_->SetAutoHideBehavior(wm_shelf_->auto_hide_behavior() ==
46 SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS 45 SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS
47 ? SHELF_AUTO_HIDE_BEHAVIOR_NEVER 46 ? SHELF_AUTO_HIDE_BEHAVIOR_NEVER
48 : SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS); 47 : SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS);
49 } else if (command_id == MENU_CHANGE_WALLPAPER) { 48 } else if (command_id == MENU_CHANGE_WALLPAPER) {
50 Shell::Get()->wallpaper_controller()->OpenSetWallpaperPage(); 49 Shell::Get()->wallpaper_controller()->OpenSetWallpaperPage();
51 } 50 }
52 } 51 }
53 52
54 } // namespace ash 53 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698