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

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

Issue 11633052: Rename platform-independent ConstrainedWindow types to WebContentsModalDialog types (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use gtk_widget_get_toplevel for GetNativeWindow Created 7 years, 12 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 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_;

Powered by Google App Engine
This is Rietveld 408576698