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

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

Issue 5979857238360064: Issues #1163, #1173 - refactor CPluginUserSettings (Closed)
Patch Set: Created Jan. 9, 2015, 4:36 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/plugin/PluginUserSettings.cpp » ('j') | src/plugin/PluginUserSettings.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #pragma once 1 /*
2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH
4 *
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
7 * published by the Free Software Foundation.
8 *
9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */
17 #ifndef PLUGIN_USER_SETTINGS_H
18 #define PLUGIN_USER_SETTINGS_H
2 19
3 #include <vector> 20 #include <OAIdl.h>
4 #include <utility>
5 21
6 /* 22 /*
7 Class is used to call methods Get,Set,Update of Settings object from JavaScript. 23 Class is used to call methods Get,Set,Update of Settings object from JavaScript.
8 When url is local page "user_mysettings.html", after document is loaded, C++ cre ates Settings object in page's JavaScript. 24 When url is local page "user_mysettings.html", after document is loaded, C++ cre ates Settings object in page's JavaScript.
9 Then var value = window.Settings.Get(par), window.Settings.Set(par, value), wind ow.Settings.Update() can be called from JavaScript 25 Then var value = window.Settings.Get(par), window.Settings.Set(par, value), wind ow.Settings.Update() can be called from JavaScript
10 */ 26 */
11 class CPluginUserSettings: public IDispatch 27 class CPluginUserSettings: public IDispatch
12 { 28 {
13 public: 29 public:
14 CPluginUserSettings();
15
16 // IUnknown 30 // IUnknown
17 STDMETHOD(QueryInterface)(REFIID riid, void **ppvObj); 31 STDMETHOD(QueryInterface)(REFIID riid, void **ppvObj);
18 ULONG __stdcall AddRef(); 32 ULONG __stdcall AddRef();
19 ULONG __stdcall Release(); 33 ULONG __stdcall Release();
20 34
21 // IDispatch 35 // IDispatch
22 STDMETHOD(GetTypeInfoCount)(UINT* pctinfo); 36 STDMETHOD(GetTypeInfoCount)(UINT* pctinfo);
23 STDMETHOD(GetTypeInfo)(UINT itinfo, LCID lcid, ITypeInfo** pptinfo); 37 STDMETHOD(GetTypeInfo)(UINT itinfo, LCID lcid, ITypeInfo** pptinfo);
24 STDMETHOD(GetIDsOfNames)(REFIID riid, LPOLESTR* rgszNames, UINT cNames, LCID l cid, DISPID* rgdispid); 38 STDMETHOD(GetIDsOfNames)(REFIID riid, LPOLESTR* rgszNames, UINT cNames, LCID l cid, DISPID* rgdispid);
25 STDMETHOD(Invoke)(DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags, DI SPPARAMS* pDispparams, VARIANT* pVarResult, 39 STDMETHOD(Invoke)(DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags, DI SPPARAMS* pDispparams, VARIANT* pVarResult,
26 EXCEPINFO* pExcepinfo, UINT* pArgErr); 40 EXCEPINFO* pExcepinfo, UINT* pArgErr);
27 }; 41 };
42
43 #endif
OLDNEW
« no previous file with comments | « no previous file | src/plugin/PluginUserSettings.cpp » ('j') | src/plugin/PluginUserSettings.cpp » ('J')

Powered by Google App Engine
This is Rietveld