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

Unified Diff: Source/web/DateTimeChooserImpl.cpp

Issue 364323002: Embed CSS/JS under Source/web/resources/ as GRD resources (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@idl-treatnullas-emptystring
Patch Set: add missing include Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/ColorChooserPopupUIController.cpp ('k') | Source/web/web.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/DateTimeChooserImpl.cpp
diff --git a/Source/web/DateTimeChooserImpl.cpp b/Source/web/DateTimeChooserImpl.cpp
index 639ba1b9e772814e2ea61d4768992733ea10bfbf..692d968c8cd8091d431fda2f1050e199d8656543 100644
--- a/Source/web/DateTimeChooserImpl.cpp
+++ b/Source/web/DateTimeChooserImpl.cpp
@@ -39,9 +39,8 @@
#include "platform/DateTimeChooserClient.h"
#include "platform/Language.h"
#include "platform/text/PlatformLocale.h"
-#include "web/CalendarPicker.h"
+#include "public/platform/Platform.h"
#include "web/ChromeClientImpl.h"
-#include "web/PickerCommon.h"
#include "web/WebViewImpl.h"
using namespace WebCore;
@@ -118,10 +117,10 @@ void DateTimeChooserImpl::writeDocument(WebCore::SharedBuffer* data)
}
addString("<!DOCTYPE html><head><meta charset='UTF-8'><style>\n", data);
- data->append(pickerCommonCss, sizeof(pickerCommonCss));
- data->append(pickerButtonCss, sizeof(pickerButtonCss));
- data->append(suggestionPickerCss, sizeof(suggestionPickerCss));
- data->append(calendarPickerCss, sizeof(calendarPickerCss));
+ data->append(blink::Platform::current()->loadResource("pickerCommon.css"));
+ data->append(blink::Platform::current()->loadResource("pickerButton.css"));
+ data->append(blink::Platform::current()->loadResource("suggestionPicker.css"));
+ data->append(blink::Platform::current()->loadResource("calendarPicker.css"));
addString("</style></head><body><div id=main>Loading...</div><script>\n"
"window.dialogArguments = {\n", data);
addProperty("anchorRectInScreen", anchorRectInScreen, data);
@@ -161,9 +160,9 @@ void DateTimeChooserImpl::writeDocument(WebCore::SharedBuffer* data)
}
addString("}\n", data);
- data->append(pickerCommonJs, sizeof(pickerCommonJs));
- data->append(suggestionPickerJs, sizeof(suggestionPickerJs));
- data->append(calendarPickerJs, sizeof(calendarPickerJs));
+ data->append(blink::Platform::current()->loadResource("pickerCommon.js"));
+ data->append(blink::Platform::current()->loadResource("suggestionPicker.js"));
+ data->append(blink::Platform::current()->loadResource("calendarPicker.js"));
addString("</script></body>\n", data);
}
« no previous file with comments | « Source/web/ColorChooserPopupUIController.cpp ('k') | Source/web/web.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698