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

Side by Side Diff: chrome/browser/chromeos/login/ui/keyboard_driven_oobe_key_handler.cc

Issue 2709103005: cros: Move KeyboardDrivenOobeHandler into login_display_host_impl.cc. (Closed)
Patch Set: Rebase Created 3 years, 9 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/login/ui/keyboard_driven_oobe_key_handler.h"
6
7 #include "ash/common/system/tray/system_tray.h"
8 #include "ash/shell.h"
9
10 namespace chromeos {
11
12 KeyboardDrivenOobeKeyHandler::KeyboardDrivenOobeKeyHandler() {
13 ash::Shell::GetInstance()->AddPreTargetHandler(this);
14 }
15 KeyboardDrivenOobeKeyHandler::~KeyboardDrivenOobeKeyHandler() {
16 ash::Shell::GetInstance()->RemovePreTargetHandler(this);
17 }
18
19 void KeyboardDrivenOobeKeyHandler::OnKeyEvent(ui::KeyEvent* event) {
20 if (event->key_code() == ui::VKEY_F6) {
21 ash::Shell::GetInstance()->GetPrimarySystemTray()->CloseSystemBubble();
22 event->StopPropagation();
23 }
24 }
25
26 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698