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

Side by Side Diff: content/test/test_blink_web_unit_test_support.cc

Issue 1435773002: Show form validation message as a fallback tooltip. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLInputElementTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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/test/test_blink_web_unit_test_support.h" 5 #include "content/test/test_blink_web_unit_test_support.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 case blink::WebLocalizedString::OtherWeekLabel: 215 case blink::WebLocalizedString::OtherWeekLabel:
216 return base::ASCIIToUTF16("<<OtherWeekLabel>>"); 216 return base::ASCIIToUTF16("<<OtherWeekLabel>>");
217 case blink::WebLocalizedString::CalendarClear: 217 case blink::WebLocalizedString::CalendarClear:
218 return base::ASCIIToUTF16("<<CalendarClear>>"); 218 return base::ASCIIToUTF16("<<CalendarClear>>");
219 case blink::WebLocalizedString::CalendarToday: 219 case blink::WebLocalizedString::CalendarToday:
220 return base::ASCIIToUTF16("<<CalendarToday>>"); 220 return base::ASCIIToUTF16("<<CalendarToday>>");
221 case blink::WebLocalizedString::ThisMonthButtonLabel: 221 case blink::WebLocalizedString::ThisMonthButtonLabel:
222 return base::ASCIIToUTF16("<<ThisMonthLabel>>"); 222 return base::ASCIIToUTF16("<<ThisMonthLabel>>");
223 case blink::WebLocalizedString::ThisWeekButtonLabel: 223 case blink::WebLocalizedString::ThisWeekButtonLabel:
224 return base::ASCIIToUTF16("<<ThisWeekLabel>>"); 224 return base::ASCIIToUTF16("<<ThisWeekLabel>>");
225 case blink::WebLocalizedString::ValidationValueMissing:
226 return base::ASCIIToUTF16("<<ValidationValueMissing>>");
225 case blink::WebLocalizedString::WeekFormatTemplate: 227 case blink::WebLocalizedString::WeekFormatTemplate:
226 return base::ASCIIToUTF16("Week $2, $1"); 228 return base::ASCIIToUTF16("Week $2, $1");
227 default: 229 default:
228 return blink::WebString(); 230 return blink::WebString();
229 } 231 }
230 } 232 }
231 233
232 blink::WebString TestBlinkWebUnitTestSupport::queryLocalizedString( 234 blink::WebString TestBlinkWebUnitTestSupport::queryLocalizedString(
233 blink::WebLocalizedString::Name name, 235 blink::WebLocalizedString::Name name,
234 const blink::WebString& value) { 236 const blink::WebString& value) {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 base::MessageLoop::current()->QuitWhenIdle(); 369 base::MessageLoop::current()->QuitWhenIdle();
368 } 370 }
369 371
370 void TestBlinkWebUnitTestSupport::getPluginList( 372 void TestBlinkWebUnitTestSupport::getPluginList(
371 bool refresh, blink::WebPluginListBuilder* builder) { 373 bool refresh, blink::WebPluginListBuilder* builder) {
372 builder->addPlugin("pdf", "pdf", "pdf-files"); 374 builder->addPlugin("pdf", "pdf", "pdf-files");
373 builder->addMediaTypeToLastPlugin("application/pdf", "pdf"); 375 builder->addMediaTypeToLastPlugin("application/pdf", "pdf");
374 } 376 }
375 377
376 } // namespace content 378 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLInputElementTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698