Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: content/renderer/renderer_date_time_picker.h

Issue 11418295: Use WebCore:DateTimeChooser for date/time form types instead of considering them text fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_widget.cc ('k') | content/renderer/renderer_date_time_picker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_date_time_picker.h
diff --git a/content/renderer/renderer_date_time_picker.h b/content/renderer/renderer_date_time_picker.h
new file mode 100644
index 0000000000000000000000000000000000000000..1a61227fc823312b0050ac8f352b0bf69b8b02e9
--- /dev/null
+++ b/content/renderer/renderer_date_time_picker.h
@@ -0,0 +1,45 @@
+// 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_H_
+#define CONTENT_RENDERER_RENDERER_DATE_TIME_PICKER_H_
+
+#include "base/basictypes.h"
+#include "content/public/renderer/render_view_observer.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebDateTimeChooserParams.h"
+#include "ui/base/ime/text_input_type.h"
+
+namespace WebKit {
+class WebDateTimeChooserCompletion;
+} // namespace WebKit
+
+namespace content {
+class RenderViewImpl;
+
+class RendererDateTimePicker : public RenderViewObserver {
+ public:
+ RendererDateTimePicker(
+ RenderViewImpl* sender,
+ const WebKit::WebDateTimeChooserParams& params,
+ WebKit::WebDateTimeChooserCompletion* completion);
+ virtual ~RendererDateTimePicker();
+
+ bool Open();
+
+ private:
+ void OnReplaceDateTime(const string16& new_date);
+ void OnCancel();
+
+ // RenderViewObserver
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+
+ WebKit::WebDateTimeChooserParams chooser_params_;
+ WebKit::WebDateTimeChooserCompletion* chooser_completion_; // Not owned by us
+
+ DISALLOW_COPY_AND_ASSIGN(RendererDateTimePicker);
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_RENDERER_DATE_TIME_PICKER_H_
« no previous file with comments | « content/renderer/render_widget.cc ('k') | content/renderer/renderer_date_time_picker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698