Chromium Code Reviews| Index: content/renderer/renderer_date_time_picker_impl.h |
| diff --git a/content/renderer/renderer_date_time_picker_impl.h b/content/renderer/renderer_date_time_picker_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1b8065312bfd1b2995f8d575bad4fc1fca04bc74 |
| --- /dev/null |
| +++ b/content/renderer/renderer_date_time_picker_impl.h |
| @@ -0,0 +1,47 @@ |
| +// Copyright (c) 2012 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_RENDERER_RENDERER_DATE_TIME_PICKER_IMPL_H_ |
| +#define CONTENT_RENDERER_RENDERER_DATE_TIME_PICKER_IMPL_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "content/public/renderer/render_view_observer.h" |
| +#include "ui/base/ime/text_input_type.h" |
| + |
| +namespace WebKit { |
| +class WebDateTimeChooserCompletion; |
| +class WebDateTimeChooserParams; |
| +} |
|
bulach
2012/12/03 20:23:03
nit: // namespace WebKit
Miguel Garcia
2012/12/04 10:40:43
Done.
|
| + |
| +namespace content { |
| +class RenderViewImpl; |
| + |
| +class RendererDateTimePickerImpl : public RenderViewObserver { |
| + public: |
| + RendererDateTimePickerImpl( |
| + RenderViewImpl* sender, |
| + const WebKit::WebDateTimeChooserParams&, |
| + WebKit::WebDateTimeChooserCompletion*); |
| + virtual ~RendererDateTimePickerImpl(); |
| + |
| + bool Open(); |
| + |
| + private: |
| + |
|
bulach
2012/12/03 20:23:03
nit: remove extra \n
Miguel Garcia
2012/12/04 10:40:43
Done.
|
| + void OnReplaceDateTime(string16 new_date); |
|
bulach
2012/12/03 20:23:03
nit: const string16& ?
Miguel Garcia
2012/12/04 10:40:43
Good point
|
| + void OnClear(); |
| + |
| + // Extract the type of form from the chooser params |
| + ui::TextInputType ExtractType(const WebKit::WebDateTimeChooserParams&); |
| + |
| + // RenderViewObserver |
| + virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| + |
| + const WebKit::WebDateTimeChooserParams& chooser_params_; |
| + WebKit::WebDateTimeChooserCompletion* chooser_completion_; // Not owned by us |
|
bulach
2012/12/03 20:23:03
nit: \n before DISALLOW_...
Miguel Garcia
2012/12/04 10:40:43
Done.
|
| + DISALLOW_COPY_AND_ASSIGN(RendererDateTimePickerImpl); |
| +}; |
| + |
| +} // namespace content |
|
bulach
2012/12/03 20:23:03
nit: \n after this
Miguel Garcia
2012/12/04 10:40:43
Done.
|
| +#endif // CONTENT_RENDERER_RENDERER_DATE_TIME_PICKER_IMPL_H_ |