Chromium Code Reviews| Index: content/public/browser/date_time_chooser.h |
| diff --git a/content/public/browser/date_time_chooser.h b/content/public/browser/date_time_chooser.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d615693c6331228254e6123b412f50767a3501d7 |
| --- /dev/null |
| +++ b/content/public/browser/date_time_chooser.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_PUBLIC_BROWSER_DATE_TIME_CHOOSER_H_ |
| +#define CONTENT_PUBLIC_BROWSER_DATE_TIME_CHOOSER_H_ |
| + |
| +#include <string> |
| + |
| +namespace content { |
|
bulach
2013/01/10 15:58:35
nit: add a \n and also sort order..
Miguel Garcia
2013/01/11 14:59:37
Done.
|
| +class RenderViewHost; |
| +class ContentViewCore; |
| + |
| +// Abstraction object for date time pickers. |
|
bulach
2013/01/10 15:58:35
// An interface for showing date/time picker dialo
Miguel Garcia
2013/01/11 14:59:37
Done.
|
| +class DateTimeChooser { |
| + public: |
| + static DateTimeChooser* Create(); |
| + virtual ~DateTimeChooser() {} |
| + |
| + // Shows a date/time dialog of a given type with an initial value |
| + virtual void ShowDialog(ContentViewCore* content, |
| + RenderViewHost* sender, |
| + int type, const std::string& value) = 0; |
|
bulach
2013/01/10 15:58:35
nit:
private:
DISALLOW_COPY_AND_ASSIGN(DateTimeCh
Miguel Garcia
2013/01/11 14:59:37
Done.
|
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_BROWSER_DATE_TIME_CHOOSER_H_ |