OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/android/renderer_date_time_picker.h" | 5 #include "content/renderer/android/renderer_date_time_picker.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
8 #include "content/common/date_time_suggestion.h" | 10 #include "content/common/date_time_suggestion.h" |
9 #include "content/common/view_messages.h" | 11 #include "content/common/view_messages.h" |
10 #include "content/renderer/render_view_impl.h" | 12 #include "content/renderer/render_view_impl.h" |
11 #include "third_party/WebKit/public/web/WebDateTimeChooserCompletion.h" | 13 #include "third_party/WebKit/public/web/WebDateTimeChooserCompletion.h" |
12 #include "third_party/WebKit/public/web/WebDateTimeChooserParams.h" | 14 #include "third_party/WebKit/public/web/WebDateTimeChooserParams.h" |
13 #include "third_party/WebKit/public/web/WebDateTimeInputType.h" | 15 #include "third_party/WebKit/public/web/WebDateTimeInputType.h" |
14 #include "third_party/WebKit/public/web/WebDateTimeSuggestion.h" | 16 #include "third_party/WebKit/public/web/WebDateTimeSuggestion.h" |
15 #include "ui/base/ime/text_input_type.h" | 17 #include "ui/base/ime/text_input_type.h" |
16 | 18 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 static_cast<RenderViewImpl*>(render_view())->DismissDateTimeDialog(); | 104 static_cast<RenderViewImpl*>(render_view())->DismissDateTimeDialog(); |
103 } | 105 } |
104 | 106 |
105 void RendererDateTimePicker::OnCancel() { | 107 void RendererDateTimePicker::OnCancel() { |
106 if (chooser_completion_) | 108 if (chooser_completion_) |
107 chooser_completion_->didCancelChooser(); | 109 chooser_completion_->didCancelChooser(); |
108 static_cast<RenderViewImpl*>(render_view())->DismissDateTimeDialog(); | 110 static_cast<RenderViewImpl*>(render_view())->DismissDateTimeDialog(); |
109 } | 111 } |
110 | 112 |
111 } // namespace content | 113 } // namespace content |
OLD | NEW |