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

Side by Side Diff: chrome/browser/ui/ash/chrome_shell_delegate.cc

Issue 2895713002: [mus+ash] Removes WmWindow from ash/wm/mru_window_tracker and overview mode (Closed)
Patch Set: Address nits, unit_tests target compiles Created 3 years, 7 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 (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/ash/chrome_shell_delegate.h" 5 #include "chrome/browser/ui/ash/chrome_shell_delegate.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <limits> 9 #include <limits>
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 namespace { 80 namespace {
81 81
82 const char kKeyboardShortcutHelpPageUrl[] = 82 const char kKeyboardShortcutHelpPageUrl[] =
83 "https://support.google.com/chromebook/answer/183101"; 83 "https://support.google.com/chromebook/answer/183101";
84 84
85 void InitAfterFirstSessionStart() { 85 void InitAfterFirstSessionStart() {
86 // Restore focus after the user session is started. It's needed because some 86 // Restore focus after the user session is started. It's needed because some
87 // windows can be opened in background while login UI is still active because 87 // windows can be opened in background while login UI is still active because
88 // we currently restore browser windows before login UI is deleted. 88 // we currently restore browser windows before login UI is deleted.
89 aura::Window::Windows mru_list = ash::WmWindow::ToAuraWindows( 89 aura::Window::Windows mru_list =
90 ash::Shell::Get()->mru_window_tracker()->BuildMruWindowList()); 90 ash::Shell::Get()->mru_window_tracker()->BuildMruWindowList();
91 if (!mru_list.empty()) 91 if (!mru_list.empty())
92 mru_list.front()->Focus(); 92 mru_list.front()->Focus();
93 93
94 // Enable magnifier scroll keys as there may be no mouse cursor in kiosk mode. 94 // Enable magnifier scroll keys as there may be no mouse cursor in kiosk mode.
95 ash::MagnifierKeyScroller::SetEnabled(chrome::IsRunningInForcedAppMode()); 95 ash::MagnifierKeyScroller::SetEnabled(chrome::IsRunningInForcedAppMode());
96 96
97 // Enable long press action to toggle spoken feedback with hotrod 97 // Enable long press action to toggle spoken feedback with hotrod
98 // remote which can't handle shortcut. 98 // remote which can't handle shortcut.
99 ash::SpokenFeedbackToggler::SetEnabled(chrome::IsRunningInForcedAppMode()); 99 ash::SpokenFeedbackToggler::SetEnabled(chrome::IsRunningInForcedAppMode());
100 } 100 }
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 NOTREACHED() << "Unexpected notification " << type; 645 NOTREACHED() << "Unexpected notification " << type;
646 } 646 }
647 } 647 }
648 648
649 void ChromeShellDelegate::PlatformInit() { 649 void ChromeShellDelegate::PlatformInit() {
650 registrar_.Add(this, chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, 650 registrar_.Add(this, chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED,
651 content::NotificationService::AllSources()); 651 content::NotificationService::AllSources());
652 registrar_.Add(this, chrome::NOTIFICATION_SESSION_STARTED, 652 registrar_.Add(this, chrome::NOTIFICATION_SESSION_STARTED,
653 content::NotificationService::AllSources()); 653 content::NotificationService::AllSources());
654 } 654 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698