Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_INPUT_WINDOW_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_UI_INPUT_WINDOW_DIALOG_H_ |
| 6 #define CHROME_BROWSER_UI_INPUT_WINDOW_DIALOG_H_ | 6 #define CHROME_BROWSER_UI_INPUT_WINDOW_DIALOG_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 // Callback for when the user clicks the Cancel button. | 26 // Callback for when the user clicks the Cancel button. |
| 27 virtual void InputCanceled() = 0; | 27 virtual void InputCanceled() = 0; |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 // Creates a new input window dialog parented to |parent|. Ownership of | 30 // Creates a new input window dialog parented to |parent|. Ownership of |
| 31 // |delegate| is taken by InputWindowDialog or InputWindowDialog's owner. | 31 // |delegate| is taken by InputWindowDialog or InputWindowDialog's owner. |
| 32 static InputWindowDialog* Create(gfx::NativeWindow parent, | 32 static InputWindowDialog* Create(gfx::NativeWindow parent, |
| 33 const string16& window_title, | 33 const string16& window_title, |
| 34 const string16& label, | 34 const string16& label, |
| 35 const string16& contents, | 35 const string16& contents, |
| 36 Delegate* delegate); | 36 Delegate* delegate, |
| 37 bool is_new); | |
|
sky
2011/11/01 23:15:24
Use an enum rather than this.
tfarina
2011/11/01 23:36:09
Done.
| |
| 37 | 38 |
| 38 // Displays the window. | 39 // Displays the window. |
| 39 virtual void Show() = 0; | 40 virtual void Show() = 0; |
| 40 | 41 |
| 41 // Closes the window. | 42 // Closes the window. |
| 42 virtual void Close() = 0; | 43 virtual void Close() = 0; |
| 43 | 44 |
| 44 protected: | 45 protected: |
| 45 InputWindowDialog() {} | 46 InputWindowDialog() {} |
| 46 virtual ~InputWindowDialog() {} | 47 virtual ~InputWindowDialog() {} |
| 47 | 48 |
| 48 private: | 49 private: |
| 49 DISALLOW_COPY_AND_ASSIGN(InputWindowDialog); | 50 DISALLOW_COPY_AND_ASSIGN(InputWindowDialog); |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 #endif // CHROME_BROWSER_UI_INPUT_WINDOW_DIALOG_H_ | 53 #endif // CHROME_BROWSER_UI_INPUT_WINDOW_DIALOG_H_ |
| OLD | NEW |