Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(775)

Unified Diff: Source/core/inspector/InspectorOverlay.cpp

Issue 22955006: Chrome::client() should return a ChromeClient reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/shadow/PasswordGeneratorButtonElement.cpp ('k') | Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorOverlay.cpp
diff --git a/Source/core/inspector/InspectorOverlay.cpp b/Source/core/inspector/InspectorOverlay.cpp
index 357e1537e00f3aa1ceca29c64046b380b4f020f4..3daeda5851c92d1342c0753591bf285048e12950 100644
--- a/Source/core/inspector/InspectorOverlay.cpp
+++ b/Source/core/inspector/InspectorOverlay.cpp
@@ -59,19 +59,19 @@ namespace {
class InspectorOverlayChromeClient: public EmptyChromeClient {
public:
- InspectorOverlayChromeClient(ChromeClient* client, InspectorOverlay* overlay)
+ InspectorOverlayChromeClient(ChromeClient& client, InspectorOverlay* overlay)
: m_client(client)
, m_overlay(overlay)
{ }
virtual void setCursor(const Cursor& cursor)
{
- m_client->setCursor(cursor);
+ m_client.setCursor(cursor);
}
virtual void setToolTip(const String& tooltip, TextDirection direction)
{
- m_client->setToolTip(tooltip, direction);
+ m_client.setToolTip(tooltip, direction);
}
virtual void invalidateRootView(const IntRect& rect)
@@ -88,8 +88,9 @@ public:
{
m_overlay->invalidate();
}
+
private:
- ChromeClient* m_client;
+ ChromeClient& m_client;
InspectorOverlay* m_overlay;
};
« no previous file with comments | « Source/core/html/shadow/PasswordGeneratorButtonElement.cpp ('k') | Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698