Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginClass.h

Issue 5750789393874944: [IE] First round of ATL removal (Closed)
Patch Set: Created June 20, 2014, 9:22 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/plugin/PluginClass.h
===================================================================
--- a/src/plugin/PluginClass.h
+++ b/src/plugin/PluginClass.h
@@ -14,6 +14,7 @@
#include <crtdbg.h>
#include "NotificationMessage.h"
+#include "Wrapper.h"
#define ICON_PLUGIN_DISABLED 0
#define ICON_PLUGIN_ENABLED 1
@@ -86,8 +87,8 @@
private:
- bool SetMenuBar(HMENU hMenu, const CString& url);
- HMENU CreatePluginMenu(const CString& url);
+ bool SetMenuBar(HMENU hMenu, const std::wstring & url);
+ HMENU CreatePluginMenu(const std::wstring & url);
void DisplayPluginMenu(HMENU hMenu, int nToolbarCmdID, POINT pt, UINT nMenuFlags);
bool CreateStatusBarPane();
@@ -105,8 +106,12 @@
static CPluginMimeFilterClient* s_mimeFilter;
private:
+ Wrapper::Browser browser() const
+ {
+ return Wrapper::Browser( GetBrowser() );
+ }
- CString GetBrowserUrl() const;
+ std::wstring GetBrowserUrl() const;
static DWORD WINAPI StartInitObject(LPVOID thisPtr);
@@ -114,7 +119,7 @@
void CloseTheme();
void UpdateTheme();
- static HICON GetStatusBarIcon(const CString& url);
+ static HICON GetStatusBarIcon(const std::wstring & url);
static CPluginClass* FindInstance(HWND hStatusBarWnd);
static LRESULT CALLBACK NewStatusProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
static LRESULT CALLBACK PaneWindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
@@ -170,7 +175,7 @@
static std::map<DWORD,CPluginClass*> s_threadInstances;
#ifdef SUPPORT_WHITELIST
- static std::map<UINT, CString> s_menuDomains;
+ static std::map<UINT, std::wstring> s_menuDomains;
#endif
static CComAutoCriticalSection s_criticalSectionLocal;

Powered by Google App Engine
This is Rietveld