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

Side by Side 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, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698