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

Unified Diff: content/shell/shell_gtk.cc

Issue 10826242: Add local file system directory listings support for GTK content shell. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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
« content/content_shell.gypi ('K') | « content/shell/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_gtk.cc
diff --git a/content/shell/shell_gtk.cc b/content/shell/shell_gtk.cc
index 7cb795129484774b2c9fb3057c7a6bba237462ab..38dd3772da93b7e8c793940676bf577282595f19 100644
--- a/content/shell/shell_gtk.cc
+++ b/content/shell/shell_gtk.cc
@@ -17,7 +17,9 @@
#include "content/public/browser/web_contents_view.h"
#include "content/public/common/renderer_preferences.h"
#include "content/shell/shell_switches.h"
+#include "grit/net_resources.h"
#include "third_party/skia/include/core/SkColor.h"
+#include "ui/base/resource/resource_bundle.h"
namespace content {
@@ -25,7 +27,12 @@ void Shell::PlatformInitialize() {
}
base::StringPiece Shell::PlatformResourceProvider(int key) {
- NOTIMPLEMENTED();
+ if (IDR_DIR_HEADER_HTML == key) {
+ base::StringPiece html_data =
+ ui::ResourceBundle::GetSharedInstance().GetRawDataResource(
+ IDR_DIR_HEADER_HTML, ui::SCALE_FACTOR_NONE);
jam 2012/08/10 15:06:15 this code looks like it's cross platform (i.e. we
jam 2012/08/10 15:10:10 nvm, juts saw that Windows is the only one that ha
jam 2012/08/10 15:42:05 just tried this on Windows, and it worked. here's
+ return html_data;
+ }
return base::StringPiece();
}
« content/content_shell.gypi ('K') | « content/shell/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698