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

Side by Side Diff: chrome/browser/tab_contents/constrained_window.h

Issue 199105: Continue with the FreeBSD port - this version builds and links, though... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 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
« no previous file with comments | « chrome/browser/shell_integration.h ('k') | chrome/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_TAB_CONTENTS_CONSTRAINED_WINDOW_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_CONSTRAINED_WINDOW_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_CONSTRAINED_WINDOW_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_CONSTRAINED_WINDOW_H_
7 7
8 #include "chrome/common/page_transition_types.h" 8 #include "chrome/common/page_transition_types.h"
9 #include "webkit/glue/window_open_disposition.h" 9 #include "webkit/glue/window_open_disposition.h"
10 10
11 // The different platform specific subclasses use different delegates for their 11 // The different platform specific subclasses use different delegates for their
12 // dialogs. 12 // dialogs.
13 #if defined(OS_WIN) 13 #if defined(OS_WIN)
14 namespace views { 14 namespace views {
15 class WindowDelegate; 15 class WindowDelegate;
16 } 16 }
17 typedef views::WindowDelegate ConstrainedWindowDelegate; 17 typedef views::WindowDelegate ConstrainedWindowDelegate;
18 #elif defined(OS_LINUX) 18 #elif defined(USE_X11)
19 class ConstrainedWindowGtkDelegate; 19 class ConstrainedWindowGtkDelegate;
20 typedef ConstrainedWindowGtkDelegate ConstrainedWindowDelegate; 20 typedef ConstrainedWindowGtkDelegate ConstrainedWindowDelegate;
21 #elif defined(OS_MACOSX) 21 #elif defined(OS_MACOSX)
22 class ConstrainedWindowMacDelegate; 22 class ConstrainedWindowMacDelegate;
23 typedef ConstrainedWindowMacDelegate ConstrainedWindowDelegate; 23 typedef ConstrainedWindowMacDelegate ConstrainedWindowDelegate;
24 #endif 24 #endif
25 25
26 class TabContents; 26 class TabContents;
27 27
28 /////////////////////////////////////////////////////////////////////////////// 28 ///////////////////////////////////////////////////////////////////////////////
29 // ConstrainedWindow 29 // ConstrainedWindow
30 // 30 //
31 // This interface represents a window that is constrained to a TabContents' 31 // This interface represents a window that is constrained to a TabContents'
32 // bounds. 32 // bounds.
33 // 33 //
34 class ConstrainedWindow { 34 class ConstrainedWindow {
35 public: 35 public:
36 // Create a Constrained Window that contains a platform specific client 36 // Create a Constrained Window that contains a platform specific client
37 // area. Typical uses include the HTTP Basic Auth prompt. The caller must 37 // area. Typical uses include the HTTP Basic Auth prompt. The caller must
38 // provide a delegate to describe the content area and to respond to events. 38 // provide a delegate to describe the content area and to respond to events.
39 static ConstrainedWindow* CreateConstrainedDialog( 39 static ConstrainedWindow* CreateConstrainedDialog(
40 TabContents* owner, 40 TabContents* owner,
41 ConstrainedWindowDelegate* delegate); 41 ConstrainedWindowDelegate* delegate);
42 42
43 // Closes the Constrained Window. 43 // Closes the Constrained Window.
44 virtual void CloseConstrainedWindow() = 0; 44 virtual void CloseConstrainedWindow() = 0;
45 }; 45 };
46 46
47 #endif // CHROME_BROWSER_TAB_CONTENTS_CONSTRAINED_WINDOW_H_ 47 #endif // CHROME_BROWSER_TAB_CONTENTS_CONSTRAINED_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/shell_integration.h ('k') | chrome/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698