Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
|
jam
2013/01/11 23:47:18
why is there an interface now? i.e. instead of jus
Miguel Garcia
2013/01/14 16:39:40
Well, WebContentsImpl holds a member of this class
jam
2013/01/14 17:48:17
I don't understand the aversion :) I think if we d
Miguel Garcia
2013/01/14 18:46:38
Well if you are ok with it I am ok with it :) I ha
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_DATE_TIME_CHOOSER_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_DATE_TIME_CHOOSER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 | |
| 12 namespace content { | |
| 13 | |
| 14 class ContentViewCore; | |
| 15 class RenderViewHost; | |
| 16 | |
| 17 // An interface for showing date/time picker dialogs. | |
| 18 class DateTimeChooser { | |
| 19 public: | |
| 20 DateTimeChooser() {} | |
| 21 virtual ~DateTimeChooser() {} | |
| 22 | |
| 23 static DateTimeChooser* Create(); | |
| 24 | |
| 25 // Shows a date/time dialog of a given type with an initial value | |
| 26 virtual void ShowDialog(ContentViewCore* content, | |
| 27 RenderViewHost* sender, | |
| 28 int type, const std::string& value) = 0; | |
| 29 private: | |
| 30 DISALLOW_COPY_AND_ASSIGN(DateTimeChooser); | |
| 31 }; | |
| 32 | |
| 33 } // namespace content | |
| 34 | |
| 35 #endif // CONTENT_PUBLIC_BROWSER_DATE_TIME_CHOOSER_H_ | |
| OLD | NEW |