OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_INPUT_WINDOW_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_INPUT_WINDOW_DIALOG_H_ |
6 #define CHROME_BROWSER_INPUT_WINDOW_DIALOG_H_ | 6 #define CHROME_BROWSER_INPUT_WINDOW_DIALOG_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
| 10 #include "app/gfx/native_widget_types.h" |
10 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
11 #include "base/gfx/native_widget_types.h" | |
12 | 12 |
13 // Cross platform access to a modal input window. | 13 // Cross platform access to a modal input window. |
14 class InputWindowDialog { | 14 class InputWindowDialog { |
15 public: | 15 public: |
16 class Delegate { | 16 class Delegate { |
17 public: | 17 public: |
18 virtual ~Delegate() { } | 18 virtual ~Delegate() { } |
19 | 19 |
20 // Checks whether |text| is a valid input string. | 20 // Checks whether |text| is a valid input string. |
21 virtual bool IsValid(const std::wstring& text) = 0; | 21 virtual bool IsValid(const std::wstring& text) = 0; |
(...skipping 20 matching lines...) Loading... |
42 virtual void Close() = 0; | 42 virtual void Close() = 0; |
43 | 43 |
44 protected: | 44 protected: |
45 InputWindowDialog() { } | 45 InputWindowDialog() { } |
46 | 46 |
47 private: | 47 private: |
48 DISALLOW_COPY_AND_ASSIGN(InputWindowDialog); | 48 DISALLOW_COPY_AND_ASSIGN(InputWindowDialog); |
49 }; | 49 }; |
50 | 50 |
51 #endif // CHROME_BROWSER_INPUT_WINDOW_DIALOG_H_ | 51 #endif // CHROME_BROWSER_INPUT_WINDOW_DIALOG_H_ |
OLD | NEW |