LEFT | RIGHT |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 Eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 ~CPluginClass(); | 79 ~CPluginClass(); |
80 | 80 |
81 // IObjectWithSite | 81 // IObjectWithSite |
82 STDMETHOD(SetSite)(IUnknown *pUnkSite); | 82 STDMETHOD(SetSite)(IUnknown *pUnkSite); |
83 | 83 |
84 // IOleCommandTarget | 84 // IOleCommandTarget |
85 STDMETHOD(QueryStatus)(const GUID* pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[
], OLECMDTEXT* pCmdText); | 85 STDMETHOD(QueryStatus)(const GUID* pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[
], OLECMDTEXT* pCmdText); |
86 STDMETHOD(Exec)(const GUID*, DWORD nCmdID, DWORD, VARIANTARG*, VARIANTARG* pva
Out); | 86 STDMETHOD(Exec)(const GUID*, DWORD nCmdID, DWORD, VARIANTARG*, VARIANTARG* pva
Out); |
87 | 87 |
88 | 88 |
89 static CPluginTab* GetTabCurrentThread(); | 89 static CPluginTab* GetTabForCurrentThread(); |
90 CPluginTab* GetTab(); | 90 CPluginTab* GetTab(); |
91 | 91 |
92 void UpdateStatusBar(); | 92 void UpdateStatusBar(); |
93 | 93 |
94 private: | 94 private: |
95 | 95 |
96 bool SetMenuBar(HMENU hMenu, const std::wstring& url); | 96 bool SetMenuBar(HMENU hMenu, const std::wstring& url); |
97 HMENU CreatePluginMenu(const std::wstring& url); | 97 HMENU CreatePluginMenu(const std::wstring& url); |
98 | 98 |
99 void DisplayPluginMenu(HMENU hMenu, int nToolbarCmdID, POINT pt, UINT nMenuFla
gs); | 99 void DisplayPluginMenu(HMENU hMenu, int nToolbarCmdID, POINT pt, UINT nMenuFla
gs); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 static CComAutoCriticalSection s_criticalSectionWindow; | 180 static CComAutoCriticalSection s_criticalSectionWindow; |
181 | 181 |
182 // Async browser | 182 // Async browser |
183 static CComQIPtr<IWebBrowser2> s_asyncWebBrowser2; | 183 static CComQIPtr<IWebBrowser2> s_asyncWebBrowser2; |
184 static CComQIPtr<IWebBrowser2> GetAsyncBrowser(); | 184 static CComQIPtr<IWebBrowser2> GetAsyncBrowser(); |
185 }; | 185 }; |
186 | 186 |
187 OBJECT_ENTRY_AUTO(__uuidof(PluginClass), CPluginClass) | 187 OBJECT_ENTRY_AUTO(__uuidof(PluginClass), CPluginClass) |
188 | 188 |
189 #endif // _PLUGIN_CLASS_H_ | 189 #endif // _PLUGIN_CLASS_H_ |
LEFT | RIGHT |