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

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

Issue 11292028: Status bar menu added (Closed)
Patch Set: Created July 29, 2013, 5:25 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
« src/plugin/PluginTabBase.h ('K') | « src/plugin/PluginTabBase.h ('k') | no next file » | no next file with comments »
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 2
3 #include "PluginClient.h" 3 #include "PluginClient.h"
4 #include "PluginSettings.h" 4 #include "PluginSettings.h"
5 #ifdef SUPPORT_CONFIG 5 #ifdef SUPPORT_CONFIG
6 #include "PluginConfig.h" 6 #include "PluginConfig.h"
7 #endif 7 #endif
8 #include "PluginTab.h" 8 #include "PluginTab.h"
9 #include "PluginDomTraverser.h" 9 #include "PluginDomTraverser.h"
10 #include "PluginClass.h" 10 #include "PluginClass.h"
11 11
12 #include "PluginTabBase.h" 12 #include "PluginTabBase.h"
13 #include "PluginUtil.h" 13 #include "PluginUtil.h"
14 #include <dispex.h> 14 #include <dispex.h>
15 15
16 int CPluginTabBase::s_dictionaryVersion = 0; 16 int CPluginTabBase::s_dictionaryVersion = 0;
17 int CPluginTabBase::s_settingsVersion = 1; 17 int CPluginTabBase::s_settingsVersion = 1;
18 #ifdef SUPPORT_FILTER 18 #ifdef SUPPORT_FILTER
19 int CPluginTabBase::s_filterVersion = 0; 19 int CPluginTabBase::s_filterVersion = 0;
20 #endif 20 #endif
21 #ifdef SUPPORT_WHITELIST 21 #ifdef SUPPORT_WHITELIST
22 int CPluginTabBase::s_whitelistVersion = 0; 22 int CPluginTabBase::s_whitelistVersion = 0;
23 #endif 23 #endif
24 #ifdef SUPPORT_CONFIG 24 #ifdef SUPPORT_CONFIG
25 int CPluginTabBase::s_configVersion = 0; 25 int CPluginTabBase::s_configVersion = 0;
26 #endif 26 #endif
27 27
28 namespace
29 {
30 CString ExtractDomain(const CString& url)
31 {
32 int pos = 0;
33 if (url.Find('/', pos) >= 0)
34 url.Tokenize(L"/", pos);
35 CString domain = url.Tokenize(L"/", pos);
36 domain.MakeLower();
37 return domain;
38 }
39 }
40 28
41 CPluginTabBase::CPluginTabBase(CPluginClass* plugin) : m_plugin(plugin), m_isAct ivated(false) 29 CPluginTabBase::CPluginTabBase(CPluginClass* plugin) : m_plugin(plugin), m_isAct ivated(false)
42 { 30 {
43 m_filter = std::auto_ptr<CPluginFilter>(new CPluginFilter()); 31 m_filter = std::auto_ptr<CPluginFilter>(new CPluginFilter());
44 32
45 CPluginClient* client = CPluginClient::GetInstance(); 33 CPluginClient* client = CPluginClient::GetInstance();
46 if (client->GetIEVersion() < 10) 34 if (client->GetIEVersion() < 10)
47 { 35 {
48 m_isActivated = true; 36 m_isActivated = true;
49 } 37 }
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 347
360 // Non-hanging sleep 348 // Non-hanging sleep
361 Sleep(50); 349 Sleep(50);
362 } 350 }
363 351
364 tabLoopIteration++; 352 tabLoopIteration++;
365 } 353 }
366 354
367 return 0; 355 return 0;
368 } 356 }
OLDNEW
« src/plugin/PluginTabBase.h ('K') | « src/plugin/PluginTabBase.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld