| 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 9c4f77be797e355562ad9d865c054d814d301e7b..d7775426df6930c1bd29cc2b16ca2ba044b5330c 100644
|
| --- a/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h
|
| +++ b/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h
|
| @@ -8,7 +8,7 @@
|
| #import <Cocoa/Cocoa.h>
|
|
|
| #include "base/memory/scoped_nsobject.h"
|
| -#include "chrome/browser/ui/constrained_window.h"
|
| +#include "chrome/browser/ui/web_contents_modal_dialog.h"
|
| #include "content/public/browser/notification_observer.h"
|
| #include "content/public/browser/notification_registrar.h"
|
|
|
| @@ -28,7 +28,7 @@ class ConstrainedWindowMacDelegate {
|
| // Constrained window implementation for Mac.
|
| // Normally an instance of this class is owned by the delegate. The delegate
|
| // should delete the instance when the window is closed.
|
| -class ConstrainedWindowMac : public ConstrainedWindow,
|
| +class ConstrainedWindowMac : public WebContentsModalDialog,
|
| public content::NotificationObserver {
|
| public:
|
| ConstrainedWindowMac(
|
| @@ -37,10 +37,11 @@ class ConstrainedWindowMac : public ConstrainedWindow,
|
| id<ConstrainedWindowSheet> sheet);
|
| virtual ~ConstrainedWindowMac();
|
|
|
| - // ConstrainedWindow implementation.
|
| + // WebContentsModalDialog implementation.
|
| virtual void ShowWebContentsModalDialog() OVERRIDE;
|
| // Closes the constrained window and deletes this instance.
|
| virtual void CloseWebContentsModalDialog() OVERRIDE;
|
| + virtual void FocusWebContentsModalDialog() OVERRIDE;
|
| virtual void PulseWebContentsModalDialog() OVERRIDE;
|
| virtual gfx::NativeWindow GetNativeWindow() OVERRIDE;
|
| virtual bool CanShowWebContentsModalDialog() OVERRIDE;
|
| @@ -56,7 +57,7 @@ class ConstrainedWindowMac : public ConstrainedWindow,
|
|
|
| ConstrainedWindowMacDelegate* delegate_; // weak, owns us.
|
|
|
| - // The WebContents that owns and constrains this ConstrainedWindow. Weak.
|
| + // The WebContents that owns and constrains this WebContentsModalDialog. Weak.
|
| content::WebContents* web_contents_;
|
|
|
| scoped_nsprotocol<id<ConstrainedWindowSheet> > sheet_;
|
|
|