OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_COCOA_WEB_CONTENTS_DIALOG_HOST_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_WEB_CONTENTS_MODAL_DIALOG_HOST_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_WEB_CONTENTS_DIALOG_HOST_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_WEB_CONTENTS_MODAL_DIALOG_HOST_COCOA_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/web_modal/web_contents_modal_dialog_host.h" | 9 #include "components/web_modal/web_contents_modal_dialog_host.h" |
10 | 10 |
11 @class ConstrainedWindowSheetController; | 11 @class ConstrainedWindowSheetController; |
12 | 12 |
13 // In a Cocoa browser, the modal dialog host is a simple bridge to the | 13 // In a Cocoa browser, the modal dialog host is a simple bridge to the |
14 // ConstrainedWindowSheetController to get the dialog size and parent window. | 14 // ConstrainedWindowSheetController to get the dialog size and parent window. |
15 class WebContentsModalDialogHostCocoa | 15 class WebContentsModalDialogHostCocoa |
16 : public web_modal::WebContentsModalDialogHost { | 16 : public web_modal::WebContentsModalDialogHost { |
(...skipping 10 matching lines...) Expand all Loading... |
27 | 27 |
28 // web_modal::WebContentsModalDialogHost: | 28 // web_modal::WebContentsModalDialogHost: |
29 gfx::Size GetMaximumDialogSize() override; | 29 gfx::Size GetMaximumDialogSize() override; |
30 | 30 |
31 private: | 31 private: |
32 ConstrainedWindowSheetController* sheet_controller_; // Weak. Owns |this|. | 32 ConstrainedWindowSheetController* sheet_controller_; // Weak. Owns |this|. |
33 | 33 |
34 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogHostCocoa); | 34 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogHostCocoa); |
35 }; | 35 }; |
36 | 36 |
37 #endif // CHROME_BROWSER_UI_COCOA_WEB_CONTENTS_DIALOG_HOST_COCOA_H_ | 37 #endif // CHROME_BROWSER_UI_COCOA_WEB_CONTENTS_MODAL_DIALOG_HOST_COCOA_H_ |
OLD | NEW |