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