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

Side by Side 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: Rebaed to include dependent CL 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CONTENT_RENDERER_RENDERER_DATE_TIME_PICKER_IMPL_H_
bulach 2012/12/07 18:10:13 nit: s/_IMPL//
Miguel Garcia 2012/12/07 19:04:35 nice catch!
6 #define CONTENT_RENDERER_RENDERER_DATE_TIME_PICKER_IMPL_H_
7
8 #include "base/basictypes.h"
9 #include "content/public/renderer/render_view_observer.h"
10 #include "ui/base/ime/text_input_type.h"
11
12 namespace WebKit {
13 class WebDateTimeChooserCompletion;
14 struct WebDateTimeChooserParams;
15 } // namespace WebKit
16
17 namespace content {
18 class RenderViewImpl;
19
20 class RendererDateTimePicker : public RenderViewObserver {
21 public:
22 RendererDateTimePicker(
23 RenderViewImpl* sender,
24 const WebKit::WebDateTimeChooserParams&,
bulach 2012/12/07 18:10:13 nit: in webkit params are unnamed, in chromium the
Miguel Garcia 2012/12/07 19:04:35 Done.
25 WebKit::WebDateTimeChooserCompletion*);
26 virtual ~RendererDateTimePicker();
27
28 bool Open();
29
30 private:
31 void OnReplaceDateTime(const string16& new_date);
32 void OnCancel();
33
34 // RenderViewObserver
35 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
36
37 const WebKit::WebDateTimeChooserParams& chooser_params_;
bulach 2012/12/07 18:10:13 is this expensive to copy? we either store pointer
Miguel Garcia 2012/12/07 19:04:35 It's not. It is just a struct with a few integers.
38 WebKit::WebDateTimeChooserCompletion* chooser_completion_; // Not owned by us
bulach 2012/12/07 18:10:13 if it was, it'd probably be a scoped_ptr :) no nee
Miguel Garcia 2012/12/07 19:04:35 So if people see just a raw pointer with no commen
39
40 DISALLOW_COPY_AND_ASSIGN(RendererDateTimePicker);
41 };
42
43 } // namespace content
44
45 #endif // CONTENT_RENDERER_RENDERER_DATE_TIME_PICKER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698