Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_MANAGER_UI_DELEGATE_H_ | |
| 6 #define CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_MANAGER_UI_DELEGATE_H_ | |
| 7 | |
| 8 #include "ui/gfx/native_widget_types.h" | |
| 9 | |
| 10 // Provides an interface for platform-specific UI implementation for the web | |
| 11 // contents modal dialog. | |
| 12 class WebContentsModalDialogManagerUIDelegate { | |
|
Ben Goodger (Google)
2013/01/23 19:10:46
the "UIDelegate" part here is a little confusing t
Mike Wittman
2013/01/23 21:52:31
NativeWebContentsModalDialogManager sounds reasona
| |
| 13 public: | |
| 14 WebContentsModalDialogManagerUIDelegate() {} | |
| 15 virtual ~WebContentsModalDialogManagerUIDelegate() {} | |
| 16 | |
| 17 // Starts management of the modal aspects of the dialog. This function should | |
| 18 // also register to be notified when the dialog is closing, so that it can | |
| 19 // notify the manager. | |
| 20 virtual void ManageDialog(gfx::NativeWindow window) = 0; | |
| 21 | |
| 22 // Closes the web contents modal dialog. | |
| 23 virtual void CloseDialog(gfx::NativeWindow window) = 0; | |
| 24 | |
| 25 private: | |
| 26 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogManagerUIDelegate); | |
| 27 }; | |
| 28 | |
| 29 #endif // CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_MANAGER_UI_DELEGATE_H_ | |
| OLD | NEW |