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

Side by Side Diff: content/child/blink_platform_impl.cc

Issue 2898543002: media_controls: Add UI for showing a promo bubble on a control button. (Closed)
Patch Set: make animation work Created 3 years, 7 months 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
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/child/blink_platform_impl.h" 5 #include "content/child/blink_platform_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 case WebLocalizedString::kDateFormatDayInMonthLabel: 196 case WebLocalizedString::kDateFormatDayInMonthLabel:
197 return IDS_FORM_DATE_FORMAT_DAY_IN_MONTH; 197 return IDS_FORM_DATE_FORMAT_DAY_IN_MONTH;
198 case WebLocalizedString::kDateFormatMonthLabel: 198 case WebLocalizedString::kDateFormatMonthLabel:
199 return IDS_FORM_DATE_FORMAT_MONTH; 199 return IDS_FORM_DATE_FORMAT_MONTH;
200 case WebLocalizedString::kDateFormatYearLabel: 200 case WebLocalizedString::kDateFormatYearLabel:
201 return IDS_FORM_DATE_FORMAT_YEAR; 201 return IDS_FORM_DATE_FORMAT_YEAR;
202 case WebLocalizedString::kDetailsLabel: 202 case WebLocalizedString::kDetailsLabel:
203 return IDS_DETAILS_WITHOUT_SUMMARY_LABEL; 203 return IDS_DETAILS_WITHOUT_SUMMARY_LABEL;
204 case WebLocalizedString::kDownloadButtonLabel: 204 case WebLocalizedString::kDownloadButtonLabel:
205 return IDS_DOWNLOAD_BUTTON_LABEL; 205 return IDS_DOWNLOAD_BUTTON_LABEL;
206 case WebLocalizedString::kDownloadButtonPromoText:
207 return IDS_DOWNLOAD_BUTTON_PROMO_LABEL;
206 case WebLocalizedString::kFileButtonChooseFileLabel: 208 case WebLocalizedString::kFileButtonChooseFileLabel:
207 return IDS_FORM_FILE_BUTTON_LABEL; 209 return IDS_FORM_FILE_BUTTON_LABEL;
208 case WebLocalizedString::kFileButtonChooseMultipleFilesLabel: 210 case WebLocalizedString::kFileButtonChooseMultipleFilesLabel:
209 return IDS_FORM_MULTIPLE_FILES_BUTTON_LABEL; 211 return IDS_FORM_MULTIPLE_FILES_BUTTON_LABEL;
210 case WebLocalizedString::kFileButtonNoFileSelectedLabel: 212 case WebLocalizedString::kFileButtonNoFileSelectedLabel:
211 return IDS_FORM_FILE_NO_FILE_LABEL; 213 return IDS_FORM_FILE_NO_FILE_LABEL;
212 case WebLocalizedString::kInputElementAltText: 214 case WebLocalizedString::kInputElementAltText:
213 return IDS_FORM_INPUT_ALT; 215 return IDS_FORM_INPUT_ALT;
214 case WebLocalizedString::kMissingPluginText: 216 case WebLocalizedString::kMissingPluginText:
215 return IDS_PLUGIN_INITIALIZATION_ERROR; 217 return IDS_PLUGIN_INITIALIZATION_ERROR;
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 848
847 std::unique_ptr<blink::WebFeaturePolicy> 849 std::unique_ptr<blink::WebFeaturePolicy>
848 BlinkPlatformImpl::DuplicateFeaturePolicyWithOrigin( 850 BlinkPlatformImpl::DuplicateFeaturePolicyWithOrigin(
849 const blink::WebFeaturePolicy& policy, 851 const blink::WebFeaturePolicy& policy,
850 const blink::WebSecurityOrigin& new_origin) { 852 const blink::WebSecurityOrigin& new_origin) {
851 return FeaturePolicy::CreateFromPolicyWithOrigin( 853 return FeaturePolicy::CreateFromPolicyWithOrigin(
852 static_cast<const FeaturePolicy&>(policy), url::Origin(new_origin)); 854 static_cast<const FeaturePolicy&>(policy), url::Origin(new_origin));
853 } 855 }
854 856
855 } // namespace content 857 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698