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

Unified Diff: ui/web_dialogs/web_dialog_delegate.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/webview/web_dialog_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/web_dialogs/web_dialog_delegate.h
diff --git a/ui/web_dialogs/web_dialog_delegate.h b/ui/web_dialogs/web_dialog_delegate.h
index 640dfd02ccee3a2010fe6f0db3c9760c0478aecd..0ceccb843e33ffd1333971acea47505f91271d9d 100644
--- a/ui/web_dialogs/web_dialog_delegate.h
+++ b/ui/web_dialogs/web_dialog_delegate.h
@@ -31,6 +31,7 @@ class Size;
}
namespace ui {
+class Accelerator;
// Implement this class to receive notifications.
class WEB_DIALOGS_EXPORT WebDialogDelegate {
@@ -137,6 +138,12 @@ class WEB_DIALOGS_EXPORT WebDialogDelegate {
// Stores the dialog bounds.
virtual void StoreDialogSize(const gfx::Size& dialog_size) {}
+ // Returns true if |accelerator| should be added to this dialog, otherwise
+ // false.
+ virtual bool AdditionalAccelerator(const ui::Accelerator& accelerator) const {
xiyuan 2017/05/10 21:14:56 I am thinking of something like this: virtual std
+ return false;
+ }
+
virtual ~WebDialogDelegate() {}
};
« no previous file with comments | « ui/views/controls/webview/web_dialog_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698