OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 COMPONENTS_WEB_MODAL_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_ | 5 #ifndef COMPONENTS_WEB_MODAL_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_ |
6 #define COMPONENTS_WEB_MODAL_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_ | 6 #define COMPONENTS_WEB_MODAL_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_ |
7 | 7 |
8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
9 | 9 |
10 namespace web_modal { | 10 namespace web_modal { |
11 | 11 |
12 // TODO(gbillock): rename this file | 12 // TODO(gbillock): rename this file |
Robert Sesek
2015/03/02 22:15:27
It seems like this entire file could be removed an
Andre
2015/03/02 22:45:38
There are quite a bit of call sites that will need
Mike Wittman
2015/03/02 22:48:31
Replacing types and removing this file in a separa
msw
2015/03/02 23:07:02
Ditto, I think that's a great suggestion.
| |
13 | 13 |
14 #if defined(OS_MACOSX) | 14 typedef gfx::NativeWindow NativeWebContentsModalDialog; |
Robert Sesek
2015/03/02 22:15:27
|using| is now preferred.
Andre
2015/03/02 22:45:38
Done.
| |
15 // Use a void* since none of the gfx::Native* types are suitable for | 15 typedef gfx::NativeWindow NativePopup; |
16 // representing the web contents modal dialog under Cocoa. | |
17 typedef void* NativeWebContentsModalDialog; | |
18 #else | |
19 typedef gfx::NativeView NativeWebContentsModalDialog; | |
20 #endif | |
21 | |
22 #if defined(OS_MACOSX) | |
23 // Use a void* since none of the gfx::Native* types are suitable for | |
24 // representing a popup window under Cocoa. | |
25 typedef void* NativePopup; | |
26 #else | |
27 typedef gfx::NativeView NativePopup; | |
28 #endif | |
29 | 16 |
30 } // namespace web_modal | 17 } // namespace web_modal |
31 | 18 |
32 #endif // COMPONENTS_WEB_MODAL_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_ | 19 #endif // COMPONENTS_WEB_MODAL_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_ |
OLD | NEW |