Update function names in BrowserContextKeyedServiceFactory::GetServiceForBrowserConte...
[chromium-blink-merge.git] / content / renderer / renderer_date_time_picker.h
blobd7292b7e37c6ce04cd87139d87935542ba1b7f51
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_RENDERER_DATE_TIME_PICKER_H_
6 #define CONTENT_RENDERER_RENDERER_DATE_TIME_PICKER_H_
8 #include "base/basictypes.h"
9 #include "content/public/renderer/render_view_observer.h"
10 #include "third_party/WebKit/public/web/WebDateTimeChooserParams.h"
12 struct ViewHostMsg_DateTimeDialogValue_Params;
14 namespace WebKit {
15 class WebDateTimeChooserCompletion;
16 } // namespace WebKit
18 namespace content {
19 class RenderViewImpl;
21 class RendererDateTimePicker : public RenderViewObserver {
22 public:
23 RendererDateTimePicker(
24 RenderViewImpl* sender,
25 const WebKit::WebDateTimeChooserParams& params,
26 WebKit::WebDateTimeChooserCompletion* completion);
27 virtual ~RendererDateTimePicker();
29 bool Open();
31 private:
32 void OnReplaceDateTime(const ViewHostMsg_DateTimeDialogValue_Params& value);
33 void OnCancel();
35 // RenderViewObserver
36 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
38 WebKit::WebDateTimeChooserParams chooser_params_;
39 WebKit::WebDateTimeChooserCompletion* chooser_completion_; // Not owned by us
41 DISALLOW_COPY_AND_ASSIGN(RendererDateTimePicker);
44 } // namespace content
46 #endif // CONTENT_RENDERER_RENDERER_DATE_TIME_PICKER_H_