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 CHROME_BROWSER_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_ | 5 #ifndef COMPONENTS_WEB_MODAL_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_ |
6 #define CHROME_BROWSER_UI_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 { |
| 11 |
10 #if defined(OS_MACOSX) | 12 #if defined(OS_MACOSX) |
11 // Use a void* since none of the gfx::Native* types are suitable for | 13 // Use a void* since none of the gfx::Native* types are suitable for |
12 // representing the web contents modal dialog under Cocoa. | 14 // representing the web contents modal dialog under Cocoa. |
13 typedef void* NativeWebContentsModalDialog; | 15 typedef void* NativeWebContentsModalDialog; |
14 #else | 16 #else |
15 typedef gfx::NativeView NativeWebContentsModalDialog; | 17 typedef gfx::NativeView NativeWebContentsModalDialog; |
16 #endif | 18 #endif |
17 | 19 |
18 #endif // CHROME_BROWSER_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_ | 20 } // namespace web_modal |
| 21 |
| 22 #endif // COMPONENTS_WEB_MODAL_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_ |
OLD | NEW |