Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: components/web_modal/native_web_contents_modal_dialog.h

Issue 287123002: [WebModals] New API for browser-scoped popup management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/web_modal.gypi ('k') | components/web_modal/popup_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
13
12 #if defined(OS_MACOSX) 14 #if defined(OS_MACOSX)
13 // Use a void* since none of the gfx::Native* types are suitable for 15 // Use a void* since none of the gfx::Native* types are suitable for
14 // representing the web contents modal dialog under Cocoa. 16 // representing the web contents modal dialog under Cocoa.
15 typedef void* NativeWebContentsModalDialog; 17 typedef void* NativeWebContentsModalDialog;
16 #else 18 #else
17 typedef gfx::NativeView NativeWebContentsModalDialog; 19 typedef gfx::NativeView NativeWebContentsModalDialog;
18 #endif 20 #endif
19 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
20 } // namespace web_modal 30 } // namespace web_modal
21 31
22 #endif // COMPONENTS_WEB_MODAL_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_ 32 #endif // COMPONENTS_WEB_MODAL_NATIVE_WEB_CONTENTS_MODAL_DIALOG_H_
OLDNEW
« no previous file with comments | « components/web_modal.gypi ('k') | components/web_modal/popup_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698