Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_ | |
| 6 #define CHROME_BROWSER_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_ | |
| 7 | |
| 8 #include "ui/gfx/native_widget_types.h" | |
| 9 | |
| 10 #if defined(OS_MACOSX) | |
| 11 // Use a specific type since none of the gfx::Native* types are suitable for | |
| 12 // representing the web contents modal dialog under Cocoa. | |
| 13 @protocol ConstrainedWindowSheet; | |
|
sail
2013/02/07 00:46:08
I don't think this would compile if it was include
Mike Wittman
2013/02/11 22:20:30
I've updated the ifdefs based on the code in image
| |
| 14 typedef id<ConstrainedWindowSheet> NativeWebContentsModalDialog; | |
| 15 #else | |
| 16 typedef gfx::NativeWindow NativeWebContentsModalDialog; | |
| 17 #endif | |
| 18 | |
| 19 #endif // CHROME_BROWSER_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_ | |
| OLD | NEW |