| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_H_ |
| 6 #define CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_H_ | 6 #define CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 // Closes the web contents modal dialog. | 23 // Closes the web contents modal dialog. |
| 24 virtual void CloseWebContentsModalDialog() = 0; | 24 virtual void CloseWebContentsModalDialog() = 0; |
| 25 | 25 |
| 26 // Sets focus on the web contents modal dialog. | 26 // Sets focus on the web contents modal dialog. |
| 27 virtual void FocusWebContentsModalDialog() = 0; | 27 virtual void FocusWebContentsModalDialog() = 0; |
| 28 | 28 |
| 29 // Runs a pulse animation for the web contents modal dialog. | 29 // Runs a pulse animation for the web contents modal dialog. |
| 30 virtual void PulseWebContentsModalDialog() = 0; | 30 virtual void PulseWebContentsModalDialog() = 0; |
| 31 | 31 |
| 32 // Returns the native window of the web contents modal dialog. | 32 // Returns the native view of the web contents modal dialog. |
| 33 virtual gfx::NativeWindow GetNativeWindow() = 0; | 33 virtual gfx::NativeView GetNativeView() = 0; |
| 34 | 34 |
| 35 protected: | 35 protected: |
| 36 virtual ~WebContentsModalDialog() {} | 36 virtual ~WebContentsModalDialog() {} |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 #endif // CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_H_ | 39 #endif // CHROME_BROWSER_UI_WEB_CONTENTS_MODAL_DIALOG_H_ |
| OLD | NEW |