• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 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 #include "content/renderer/date_time_suggestion_builder.h"
6 
7 #include "content/common/date_time_suggestion.h"
8 #include "third_party/WebKit/public/web/WebDateTimeSuggestion.h"
9 
10 namespace content {
11 
12 // static
Build(const blink::WebDateTimeSuggestion & suggestion)13 DateTimeSuggestion DateTimeSuggestionBuilder::Build(
14     const blink::WebDateTimeSuggestion& suggestion) {
15   DateTimeSuggestion result;
16   result.value = suggestion.value;
17   result.localized_value = suggestion.localizedValue;
18   result.label = suggestion.label;
19   return result;
20 }
21 
22 }  // namespace content
23