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

Side by Side Diff: ui/web_dialogs/web_dialog_delegate.cc

Issue 2871073002: cros: Bind hangup red button on remote controller to close web dialog (Closed)
Patch Set: nits 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
« no previous file with comments | « ui/web_dialogs/web_dialog_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ui/web_dialogs/web_dialog_delegate.h" 5 #include "ui/web_dialogs/web_dialog_delegate.h"
6 6
7 #include "ui/base/accelerators/accelerator.h"
8
7 namespace ui { 9 namespace ui {
8 10
9 std::string WebDialogDelegate::GetDialogName() const { 11 std::string WebDialogDelegate::GetDialogName() const {
10 return std::string(); 12 return std::string();
11 } 13 }
12 14
13 void WebDialogDelegate::GetMinimumDialogSize(gfx::Size* size) const { 15 void WebDialogDelegate::GetMinimumDialogSize(gfx::Size* size) const {
14 GetDialogSize(size); 16 GetDialogSize(size);
15 } 17 }
16 18
(...skipping 28 matching lines...) Expand all
45 WindowOpenDisposition disposition, 47 WindowOpenDisposition disposition,
46 const gfx::Rect& initial_rect, 48 const gfx::Rect& initial_rect,
47 bool user_gesture) { 49 bool user_gesture) {
48 return false; 50 return false;
49 } 51 }
50 52
51 bool WebDialogDelegate::HandleShouldCreateWebContents() { 53 bool WebDialogDelegate::HandleShouldCreateWebContents() {
52 return true; 54 return true;
53 } 55 }
54 56
57 std::vector<Accelerator> WebDialogDelegate::GetAccelerators() {
58 return std::vector<Accelerator>();
59 }
60
61 bool WebDialogDelegate::AcceleratorPressed(const Accelerator& accelerator) {
62 return false;
63 }
64
55 } // namespace ui 65 } // namespace ui
OLDNEW
« no previous file with comments | « ui/web_dialogs/web_dialog_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698