summaryrefslogtreecommitdiffstats
path: root/webkit/default_plugin
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-09 18:29:54 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-09 18:29:54 +0000
commit43ebb4d08c62012d6719646edb93f44e45e01d42 (patch)
tree862e4f34be0407f98f4be59015e85953b51a8af6 /webkit/default_plugin
parent235c17a4631e92a4cbd214863758165a2f573801 (diff)
downloadchromium_src-43ebb4d08c62012d6719646edb93f44e45e01d42.zip
chromium_src-43ebb4d08c62012d6719646edb93f44e45e01d42.tar.gz
chromium_src-43ebb4d08c62012d6719646edb93f44e45e01d42.tar.bz2
Move default plugin resources into separate .h and .rc files
from the other webkit resources. I'm going to convert webkit_resources.rc to a cross platform .grd file so I'm moving the windows specific default plugin code into a separate file. Review URL: http://codereview.chromium.org/17306 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7812 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/default_plugin')
-rw-r--r--webkit/default_plugin/default_plugin.vcproj4
-rw-r--r--webkit/default_plugin/default_plugin_resources.h13
-rw-r--r--webkit/default_plugin/default_plugin_resources.rc31
-rw-r--r--webkit/default_plugin/install_dialog.h2
4 files changed, 49 insertions, 1 deletions
diff --git a/webkit/default_plugin/default_plugin.vcproj b/webkit/default_plugin/default_plugin.vcproj
index f64f00a..b3ee9cf 100644
--- a/webkit/default_plugin/default_plugin.vcproj
+++ b/webkit/default_plugin/default_plugin.vcproj
@@ -134,6 +134,10 @@
>
</File>
<File
+ RelativePath=".\default_plugin_resources.h"
+ >
+ </File>
+ <File
RelativePath=".\default_plugin_shared.h"
>
</File>
diff --git a/webkit/default_plugin/default_plugin_resources.h b/webkit/default_plugin/default_plugin_resources.h
new file mode 100644
index 0000000..6e6942c
--- /dev/null
+++ b/webkit/default_plugin/default_plugin_resources.h
@@ -0,0 +1,13 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#define IDD_DEFAULT_PLUGIN_INSTALL_DIALOG 2208
+#define IDI_DEFAULT_PLUGIN_ICON 2209
+#define IDB_GET_THE_PLUGIN 2210
+#define IDC_PLUGIN_MAIN_LABEL 2211
+#define IDC_PLUGIN_INSTALL_LABEL 2212
+#define IDC_PLUGIN_URL_LABEL 2213
+#define IDC_PLUGIN_INSTALL_CONFIRMATION_LABEL 2214
+#define IDC_PLUGIN_NAME 2215
+#define IDC_PLUGIN_NAME_VALUE 2216
diff --git a/webkit/default_plugin/default_plugin_resources.rc b/webkit/default_plugin/default_plugin_resources.rc
new file mode 100644
index 0000000..53460af
--- /dev/null
+++ b/webkit/default_plugin/default_plugin_resources.rc
@@ -0,0 +1,31 @@
+// Resources used by webkit/default_plugin.
+//
+// Paths in this file are relative to SolutionDir.
+
+#ifdef APSTUDIO_INVOKED
+ #error // Don't open in the Visual Studio resource editor!
+#endif //APSTUDIO_INVOKED
+
+#include <winuser.h>
+#include "webkit\\default_plugin\\default_plugin_resources.h"
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Dialog template for the plugin installation dialog.
+//
+IDD_DEFAULT_PLUGIN_INSTALL_DIALOG DIALOGEX 0, 0, 240, 130
+STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "Plug-in Needed"
+FONT 8, "MS Shell Dlg", 400, 0, 0x1
+BEGIN
+ DEFPUSHBUTTON "",IDB_GET_THE_PLUGIN,32,100,81,14
+ PUSHBUTTON "",IDCANCEL,133,100,74,14
+ LTEXT "",IDC_PLUGIN_INSTALL_CONFIRMATION_LABEL,17,50,204,27
+END
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Icon used by the default plugin window.
+//
+IDI_DEFAULT_PLUGIN_ICON ICON "webkit\\default_plugin\\default_plugin.ico"
diff --git a/webkit/default_plugin/install_dialog.h b/webkit/default_plugin/install_dialog.h
index d750b07..9a5f3ca 100644
--- a/webkit/default_plugin/install_dialog.h
+++ b/webkit/default_plugin/install_dialog.h
@@ -9,7 +9,7 @@
#include <atlwin.h>
#include <string>
-#include "webkit/glue/webkit_resources.h"
+#include "webkit/default_plugin/default_plugin_resources.h"
class PluginInstallerImpl;