| OLD | NEW |
| 1 // Copyright (c) 2009 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 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 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 protected: | |
| 46 ~ConstrainedWindow() {} | |
| 47 }; | 45 }; |
| 48 | 46 |
| 49 #endif // CHROME_BROWSER_TAB_CONTENTS_CONSTRAINED_WINDOW_H_ | 47 #endif // CHROME_BROWSER_TAB_CONTENTS_CONSTRAINED_WINDOW_H_ |
| OLD | NEW |