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

Unified Diff: src/plugin/PluginUtil.cpp

Issue 6567422169448448: Issue 119 - Switch to injecting CSS for element hiding (Closed)
Patch Set: Created Dec. 10, 2014, 5:12 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/plugin/PluginUtil.cpp
diff --git a/src/plugin/PluginUtil.cpp b/src/plugin/PluginUtil.cpp
index a077d4e7e6058fa0cd1361d0ace6ad8f0e3597d8..8b4aa33ba719a02f2042c22f6cefa2f928b9e98a 100644
--- a/src/plugin/PluginUtil.cpp
+++ b/src/plugin/PluginUtil.cpp
@@ -28,3 +28,14 @@ std::wstring FileUrl(const std::wstring& path)
std::replace(url.begin(), url.end(), L'\\', L'/');
return L"file:///" + url;
}
+
+std::wstring GetLocationUrl(IWebBrowser2& browser)
+{
+ std::wstring retValue;
+ ATL::CComBSTR locationUrl;
+ if (SUCCEEDED(browser.get_LocationURL(&locationUrl)) && !!locationUrl)
+ {
+ retValue.assign(locationUrl, locationUrl.Length());
+ }
+ return retValue;
+}

Powered by Google App Engine
This is Rietveld