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

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

Issue 5187613258416128: Issue #1234 - Rewrite internals of debug facility (Closed)
Patch Set: Created March 12, 2015, 10:52 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
OLDNEW
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-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 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 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 return S_OK; 623 return S_OK;
624 } 624 }
625 625
626 // This gets called whenever there's a browser event 626 // This gets called whenever there's a browser event
627 // ENTRY POINT 627 // ENTRY POINT
628 STDMETHODIMP CPluginClass::Invoke(DISPID dispidMember, REFIID riid, LCID lcid, W ORD wFlags, DISPPARAMS* pDispParams, VARIANT* pvarResult, EXCEPINFO* pExcepInfo, UINT* puArgErr) 628 STDMETHODIMP CPluginClass::Invoke(DISPID dispidMember, REFIID riid, LCID lcid, W ORD wFlags, DISPPARAMS* pDispParams, VARIANT* pvarResult, EXCEPINFO* pExcepInfo, UINT* puArgErr)
629 { 629 {
630 try 630 try
631 { 631 {
632 WCHAR tmp[256]; 632 WCHAR tmp[256];
633 wsprintf(tmp, L"Invoke: %d\n", dispidMember); 633 wsprintf(tmp, L"Invoke: %d", dispidMember);
Oleksandr 2015/03/19 03:46:12 How about switching to swprintf_s here. Seems like
Eric 2015/03/19 12:56:35 I need to rebase this change set. There's no analo
634 DEBUG_GENERAL(tmp); 634 DEBUG_GENERAL(tmp);
635 switch (dispidMember) 635 switch (dispidMember)
636 { 636 {
637 case DISPID_WINDOWSTATECHANGED: 637 case DISPID_WINDOWSTATECHANGED:
638 { 638 {
639 // #1163 should validate and convert arguments here 639 // #1163 should validate and convert arguments here
640 return OnTabChanged(pDispParams, wFlags); 640 return OnTabChanged(pDispParams, wFlags);
641 } 641 }
642 642
643 case DISPID_HTMLDOCUMENTEVENTS2_ONBEFOREUPDATE: 643 case DISPID_HTMLDOCUMENTEVENTS2_ONBEFOREUPDATE:
(...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1886 } 1886 }
1887 } 1887 }
1888 } 1888 }
1889 1889
1890 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT); 1890 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT);
1891 } 1891 }
1892 1892
1893 return hTabWnd; 1893 return hTabWnd;
1894 1894
1895 } 1895 }
OLDNEW
« no previous file with comments | « src/plugin/Console.h ('k') | src/plugin/PluginDebug.h » ('j') | src/plugin/PluginDebug.cpp » ('J')

Powered by Google App Engine
This is Rietveld