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

Unified Diff: chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h

Issue 12224020: Use gfx::NativeView rather than gfx::NativeWindow to identify web contents modal dialogs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h
diff --git a/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h b/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h
index bf454051fda83c63bbb363db2587f24ccf9d20f2..2aba6237cb22ba8d0bb39a2e6ac367a96c6b5e3e 100644
--- a/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h
+++ b/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h
@@ -43,7 +43,7 @@ class ConstrainedWindowMac : public WebContentsModalDialog,
virtual void CloseWebContentsModalDialog() OVERRIDE;
virtual void FocusWebContentsModalDialog() OVERRIDE;
virtual void PulseWebContentsModalDialog() OVERRIDE;
- virtual gfx::NativeWindow GetNativeWindow() OVERRIDE;
+ virtual gfx::NativeView GetNativeView() OVERRIDE;
// content::NotificationObserver:
virtual void Observe(int type,
@@ -61,6 +61,8 @@ class ConstrainedWindowMac : public WebContentsModalDialog,
scoped_nsprotocol<id<ConstrainedWindowSheet>> sheet_;
+ scoped_nsobject<NSView> dummyView_;
+
// A scoped container for notification registries.
content::NotificationRegistrar registrar_;

Powered by Google App Engine
This is Rietveld 408576698