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

Unified Diff: webkit/tools/test_shell/test_shell_gtk.cc

Issue 10387010: Select theme resources from ResourceBundle at requested scale factor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with master. Created 8 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 side-by-side diff with in-line comments
Download patch
Index: webkit/tools/test_shell/test_shell_gtk.cc
diff --git a/webkit/tools/test_shell/test_shell_gtk.cc b/webkit/tools/test_shell/test_shell_gtk.cc
index c99d070e7716a898b1dfc48b23b830267ad87951..a58d72f2140a3a630fcad8984ffd0e5dd9e8eec9 100644
--- a/webkit/tools/test_shell/test_shell_gtk.cc
+++ b/webkit/tools/test_shell/test_shell_gtk.cc
@@ -23,9 +23,10 @@
#include "net/base/mime_util.h"
#include "net/base/net_util.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPoint.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPoint.h"
#include "ui/base/gtk/gtk_compat.h"
+#include "ui/base/layout.h"
#include "ui/base/resource/resource_bundle.h"
#include "webkit/glue/resource_loader_bridge.h"
#include "webkit/glue/webkit_glue.h"
@@ -559,7 +560,8 @@ void TestShell::ShowStartupDebuggingDialog() {
// static
base::StringPiece TestShell::ResourceProvider(int key) {
- return ResourceBundle::GetSharedInstance().GetRawDataResource(key);
+ return ResourceBundle::GetSharedInstance().GetRawDataResource(
+ key, ui::SCALE_FACTOR_NONE);
}
//-----------------------------------------------------------------------------
@@ -568,12 +570,9 @@ string16 TestShellWebKitInit::GetLocalizedString(int message_id) {
return ResourceBundle::GetSharedInstance().GetLocalizedString(message_id);
}
-base::StringPiece TestShellWebKitInit::GetDataResource(int resource_id) {
- return TestShell::ResourceProvider(resource_id);
-}
-
-base::StringPiece TestShellWebKitInit::GetImageResource(int resource_id,
- float scale_factor) {
+base::StringPiece TestShellWebKitInit::GetDataResource(
+ int resource_id,
+ ui::ScaleFactor scale_factor) {
switch (resource_id) {
case IDR_BROKENIMAGE:
resource_id = IDR_BROKENIMAGE_TESTSHELL;

Powered by Google App Engine
This is Rietveld 408576698