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

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

Issue 11557015: Tooltip notification. Check for update fixes. (Closed)
Patch Set: More and more comments addressing Created Sept. 25, 2013, 12:31 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/NotificationMessage.h » ('j') | src/plugin/NotificationMessage.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 #include "PluginSettings.h" 2 #include "PluginSettings.h"
3 #include "PluginSystem.h" 3 #include "PluginSystem.h"
4 #include "PluginFilter.h" 4 #include "PluginFilter.h"
5 #include "PluginClientFactory.h" 5 #include "PluginClientFactory.h"
6 #include "PluginMutex.h" 6 #include "PluginMutex.h"
7 #include "PluginClass.h" 7 #include "PluginClass.h"
8 8
9 #include "AdblockPlusClient.h" 9 #include "AdblockPlusClient.h"
10 10
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 else 472 else
473 { 473 {
474 DEBUG_GENERAL((L"GetPref: " + name + L" end").c_str()); 474 DEBUG_GENERAL((L"GetPref: " + name + L" end").c_str());
475 return defaultValue; 475 return defaultValue;
476 } 476 }
477 } 477 }
478 478
479 void CAdblockPlusClient::CheckForUpdates(HWND callbackWindow) 479 void CAdblockPlusClient::CheckForUpdates(HWND callbackWindow)
480 { 480 {
481 Communication::OutputBuffer request; 481 Communication::OutputBuffer request;
482 request << Communication::PROC_CHECK_FOR_UPDATES << (int32_t)(callbackWindow); 482 request << Communication::PROC_CHECK_FOR_UPDATES << reinterpret_cast<int32_t>( callbackWindow);
483 CallEngine(request); 483 CallEngine(request);
484 } 484 }
485 485
486 std::wstring CAdblockPlusClient::GetDocumentationLink() 486 std::wstring CAdblockPlusClient::GetDocumentationLink()
487 { 487 {
488 DEBUG_GENERAL("GetDocumentationLink"); 488 DEBUG_GENERAL("GetDocumentationLink");
489 Communication::InputBuffer response; 489 Communication::InputBuffer response;
490 if (!CallEngine(Communication::PROC_GET_DOCUMENTATION_LINK, response)) 490 if (!CallEngine(Communication::PROC_GET_DOCUMENTATION_LINK, response))
491 return L""; 491 return L"";
492 std::wstring docLink; 492 std::wstring docLink;
493 response >> docLink; 493 response >> docLink;
494 return docLink; 494 return docLink;
495 } 495 }
496 496
497 bool CAdblockPlusClient::TogglePluginEnabled() 497 bool CAdblockPlusClient::TogglePluginEnabled()
498 { 498 {
499 DEBUG_GENERAL("TogglePluginEnabled"); 499 DEBUG_GENERAL("TogglePluginEnabled");
500 Communication::InputBuffer response; 500 Communication::InputBuffer response;
501 if (!CallEngine(Communication::PROC_TOGGLE_PLUGIN_ENABLED, response)) 501 if (!CallEngine(Communication::PROC_TOGGLE_PLUGIN_ENABLED, response))
502 return false; 502 return false;
503 bool currentEnabledState; 503 bool currentEnabledState;
504 response >> currentEnabledState; 504 response >> currentEnabledState;
505 return currentEnabledState; 505 return currentEnabledState;
506 } 506 }
OLDNEW
« no previous file with comments | « no previous file | src/plugin/NotificationMessage.h » ('j') | src/plugin/NotificationMessage.cpp » ('J')

Powered by Google App Engine
This is Rietveld