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

Side by Side Diff: src/plugin/PluginClass.h

Issue 4912420225024000: Issue #1234 - Convert strings associated with URL's (Closed)
Patch Set: Created Oct. 20, 2014, 2:34 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * http://msdn.microsoft.com/en-us/library/bb250436.aspx 2 * http://msdn.microsoft.com/en-us/library/bb250436.aspx
3 */ 3 */
4 4
5 #ifndef _PLUGIN_CLASS_H_ 5 #ifndef _PLUGIN_CLASS_H_
6 #define _PLUGIN_CLASS_H_ 6 #define _PLUGIN_CLASS_H_
7 7
8 8
9 #include "PluginTypedef.h" 9 #include "PluginTypedef.h"
10 #include "Plugin.h" 10 #include "Plugin.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 DISPPARAMS * pdispparams, VARIANT * pvarResult,EXCEPINFO * pexcepinfo, UINT * puArgErr); 75 DISPPARAMS * pdispparams, VARIANT * pvarResult,EXCEPINFO * pexcepinfo, UINT * puArgErr);
76 76
77 static CPluginTab* GetTab(DWORD dwThreadId); 77 static CPluginTab* GetTab(DWORD dwThreadId);
78 CPluginTab* GetTab(); 78 CPluginTab* GetTab();
79 79
80 void UpdateStatusBar(); 80 void UpdateStatusBar();
81 static DWORD WINAPI MainThreadProc(LPVOID pParam); 81 static DWORD WINAPI MainThreadProc(LPVOID pParam);
82 82
83 private: 83 private:
84 84
85 bool SetMenuBar(HMENU hMenu, const CString& url); 85 bool SetMenuBar(HMENU hMenu, const std::wstring& url);
86 HMENU CreatePluginMenu(const CString& url); 86 HMENU CreatePluginMenu(const std::wstring& url);
87 87
88 void DisplayPluginMenu(HMENU hMenu, int nToolbarCmdID, POINT pt, UINT nMenuFla gs); 88 void DisplayPluginMenu(HMENU hMenu, int nToolbarCmdID, POINT pt, UINT nMenuFla gs);
89 bool CreateStatusBarPane(); 89 bool CreateStatusBarPane();
90 90
91 CComPtr<IConnectionPoint> GetConnectionPoint(); 91 CComPtr<IConnectionPoint> GetConnectionPoint();
92 CComPtr<IConnectionPoint> GetConnectionPointPropSink(); 92 CComPtr<IConnectionPoint> GetConnectionPointPropSink();
93 93
94 public: 94 public:
95 HWND GetBrowserHWND() const; 95 HWND GetBrowserHWND() const;
96 HWND GetTabHWND() const; 96 HWND GetTabHWND() const;
97 CComQIPtr<IWebBrowser2> GetBrowser() const; 97 CComQIPtr<IWebBrowser2> GetBrowser() const;
98 98
99 STDMETHODIMP OnTabChanged(DISPPARAMS* pDispParams, WORD wFlags); 99 STDMETHODIMP OnTabChanged(DISPPARAMS* pDispParams, WORD wFlags);
100 100
101 static CPluginMimeFilterClient* s_mimeFilter; 101 static CPluginMimeFilterClient* s_mimeFilter;
102 102
103 private: 103 private:
104 104
105 CString GetBrowserUrl() const; 105 std::wstring GetBrowserUrl() const;
106
107 106
108 static DWORD WINAPI StartInitObject(LPVOID thisPtr); 107 static DWORD WINAPI StartInitObject(LPVOID thisPtr);
109 bool InitObject(bool bBHO); 108 bool InitObject(bool bBHO);
110 void CloseTheme(); 109 void CloseTheme();
111 void UpdateTheme(); 110 void UpdateTheme();
112 111
113 static HICON GetStatusBarIcon(const CString& url); 112 static HICON GetStatusBarIcon(const std::wstring& url);
114 static CPluginClass* FindInstance(HWND hStatusBarWnd); 113 static CPluginClass* FindInstance(HWND hStatusBarWnd);
115 static LRESULT CALLBACK NewStatusProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); 114 static LRESULT CALLBACK NewStatusProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
116 static LRESULT CALLBACK PaneWindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); 115 static LRESULT CALLBACK PaneWindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
117 static void FirstRunThread(); 116 static void FirstRunThread();
118 void BeforeNavigate2(DISPPARAMS* pDispParams); 117 void BeforeNavigate2(DISPPARAMS* pDispParams);
119 118
120 void Unadvice(); 119 void Unadvice();
121 120
122 void ShowStatusBar(); 121 void ShowStatusBar();
123 bool IsStatusBarEnabled(); 122 bool IsStatusBarEnabled();
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 170
172 // Async browser 171 // Async browser
173 static CComQIPtr<IWebBrowser2> s_asyncWebBrowser2; 172 static CComQIPtr<IWebBrowser2> s_asyncWebBrowser2;
174 static CComQIPtr<IWebBrowser2> GetAsyncBrowser(); 173 static CComQIPtr<IWebBrowser2> GetAsyncBrowser();
175 }; 174 };
176 175
177 OBJECT_ENTRY_AUTO(__uuidof(PluginClass), CPluginClass) 176 OBJECT_ENTRY_AUTO(__uuidof(PluginClass), CPluginClass)
178 177
179 178
180 #endif // _PLUGIN_CLASS_H_ 179 #endif // _PLUGIN_CLASS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld