Chromium Code Reviews| 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..e032ec013b307c2b5f48da4f3d44beb0a45a2eb9 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 the accelerators that can be processed to this dialog. |
|
sky
2017/05/11 15:04:11
Returns the accelerators handled by the delegate.
Qiang(Joe) Xu
2017/05/12 21:50:45
Done.
|
| + virtual std::vector<Accelerator> GetAccelerators(); |
| + |
| + // Returns true if |accelerator| pressed is processed, otherwise false. |
|
sky
2017/05/11 15:04:11
remove 'pressed'.
Qiang(Joe) Xu
2017/05/12 21:50:45
Done.
|
| + virtual bool AcceleratorPressed(const Accelerator& accelerator); |
| + |
| virtual ~WebDialogDelegate() {} |
| }; |