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

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

Issue 10870094: Constrained window sheet controller (test patch) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Created 8 years, 4 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_mac2.h
diff --git a/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac2.h b/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac2.h
new file mode 100644
index 0000000000000000000000000000000000000000..55585bb6471f1d5022376d3319a24ec1881fec93
--- /dev/null
+++ b/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac2.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_2_
+#define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_2_
+
+#import <Cocoa/Cocoa.h>
+
+#include "base/memory/scoped_nsobject.h"
+#include "chrome/browser/ui/constrained_window.h"
+
+class TabContents;
+
+// Constrained window implementation for Mac.
+class ConstrainedWindowMac2 : public ConstrainedWindow {
+ public:
+ ConstrainedWindowMac2(TabContents* tab_contents, NSWindow* window);
+ virtual ~ConstrainedWindowMac2();
+
+ // ConstrainedWindow implementation.
+ virtual void ShowConstrainedWindow() OVERRIDE;
+ virtual void CloseConstrainedWindow() OVERRIDE;
+ virtual gfx::NativeWindow GetNativeWindow() OVERRIDE;
+ virtual bool GetCanShowConstrainedWindow() OVERRIDE;
+
+ private:
+ // Gets the parent window of the dialog.
+ NSWindow* GetParentWindow() const;
+
+ TabContents* tab_contents_; // weak
+ scoped_nsobject<NSWindow> window_;
+};
+
+#endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_2_

Powered by Google App Engine
This is Rietveld 408576698