OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/renderer_date_time_picker.h" | 5 #include "content/renderer/renderer_date_time_picker.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "content/common/view_messages.h" | 8 #include "content/common/view_messages.h" |
9 #include "content/renderer/date_time_formatter.h" | 9 #include "content/renderer/date_time_formatter.h" |
10 #include "content/renderer/render_view_impl.h" | 10 #include "content/renderer/render_view_impl.h" |
11 | 11 |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDateTimeChooserCom
pletion.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDateTimeChooserCom
pletion.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDateTimeChooserPar
ams.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDateTimeChooserPar
ams.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDateTimeInputType.
h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDateTimeInputType.
h" |
15 | 15 |
16 using WebKit::WebString; | 16 using WebKit::WebString; |
17 | 17 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 chooser_completion_->didChooseValue(WebString::fromUTF8( | 68 chooser_completion_->didChooseValue(WebString::fromUTF8( |
69 formatter.GetFormattedValue().c_str())); | 69 formatter.GetFormattedValue().c_str())); |
70 } | 70 } |
71 | 71 |
72 void RendererDateTimePicker::OnCancel() { | 72 void RendererDateTimePicker::OnCancel() { |
73 if (chooser_completion_) | 73 if (chooser_completion_) |
74 chooser_completion_->didCancelChooser(); | 74 chooser_completion_->didCancelChooser(); |
75 } | 75 } |
76 | 76 |
77 } // namespace content | 77 } // namespace content |
OLD | NEW |