OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_2_ |
| 6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_2_ |
| 7 |
| 8 #import <Cocoa/Cocoa.h> |
| 9 |
| 10 #include "base/memory/scoped_nsobject.h" |
| 11 #include "chrome/browser/ui/constrained_window.h" |
| 12 |
| 13 class TabContents; |
| 14 |
| 15 // Constrained window implementation for Mac. |
| 16 class ConstrainedWindowMac2 : public ConstrainedWindow { |
| 17 public: |
| 18 ConstrainedWindowMac2(TabContents* tab_contents, NSWindow* window); |
| 19 virtual ~ConstrainedWindowMac2(); |
| 20 |
| 21 // ConstrainedWindow implementation. |
| 22 virtual void ShowConstrainedWindow() OVERRIDE; |
| 23 virtual void CloseConstrainedWindow() OVERRIDE; |
| 24 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; |
| 25 virtual bool GetCanShowConstrainedWindow() OVERRIDE; |
| 26 |
| 27 private: |
| 28 // Gets the parent window of the dialog. |
| 29 NSWindow* GetParentWindow() const; |
| 30 |
| 31 TabContents* tab_contents_; // weak |
| 32 scoped_nsobject<NSWindow> window_; |
| 33 }; |
| 34 |
| 35 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_MAC_2_ |
OLD | NEW |