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

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

Issue 2871073002: cros: Bind hangup red button on remote controller to close web dialog (Closed)
Patch Set: for discussion 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 2014 The Chromium Authors. All rights reserved. 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 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/chromeos/login/ui/login_web_dialog.h" 5 #include "chrome/browser/chromeos/login/ui/login_web_dialog.h"
6 6
7 #include <deque> 7 #include <deque>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // fire an auto-reload, which in turn leads to opening a new browser window, 163 // fire an auto-reload, which in turn leads to opening a new browser window,
164 // so we must suppress it. 164 // so we must suppress it.
165 // http://crbug.com/443096 165 // http://crbug.com/443096
166 return (source && !chrome::FindBrowserWithWebContents(source)); 166 return (source && !chrome::FindBrowserWithWebContents(source));
167 } 167 }
168 168
169 bool LoginWebDialog::HandleShouldCreateWebContents() { 169 bool LoginWebDialog::HandleShouldCreateWebContents() {
170 return false; 170 return false;
171 } 171 }
172 172
173 bool LoginWebDialog::AdditionalAccelerator(
174 const ui::Accelerator& accelerator) const {
175 return accelerator.key_code() == ui::VKEY_BROWSER_BACK &&
176 accelerator.IsShiftDown();
177 }
178
173 } // namespace chromeos 179 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698