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

Side by Side Diff: third_party/WebKit/Source/web/InspectorOverlay.cpp

Issue 2729543002: Rename platform/Widget to platform/FrameViewBase in web. (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 void setToolTip(LocalFrame& frame, 155 void setToolTip(LocalFrame& frame,
156 const String& tooltip, 156 const String& tooltip,
157 TextDirection direction) override { 157 TextDirection direction) override {
158 DCHECK_EQ(&frame, m_overlay->overlayMainFrame()); 158 DCHECK_EQ(&frame, m_overlay->overlayMainFrame());
159 m_client->setToolTip(*m_overlay->m_frameImpl->frame(), tooltip, direction); 159 m_client->setToolTip(*m_overlay->m_frameImpl->frame(), tooltip, direction);
160 } 160 }
161 161
162 void invalidateRect(const IntRect&) override { m_overlay->invalidate(); } 162 void invalidateRect(const IntRect&) override { m_overlay->invalidate(); }
163 163
164 void scheduleAnimation(Widget* widget) override { 164 void scheduleAnimation(FrameViewBase* frameViewBase) override {
165 if (m_overlay->m_inLayout) 165 if (m_overlay->m_inLayout)
166 return; 166 return;
167 167
168 m_client->scheduleAnimation(widget); 168 m_client->scheduleAnimation(frameViewBase);
169 } 169 }
170 170
171 private: 171 private:
172 InspectorOverlayChromeClient(ChromeClient& client, InspectorOverlay& overlay) 172 InspectorOverlayChromeClient(ChromeClient& client, InspectorOverlay& overlay)
173 : m_client(&client), m_overlay(&overlay) {} 173 : m_client(&client), m_overlay(&overlay) {}
174 174
175 Member<ChromeClient> m_client; 175 Member<ChromeClient> m_client;
176 Member<InspectorOverlay> m_overlay; 176 Member<InspectorOverlay> m_overlay;
177 }; 177 };
178 178
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 bool InspectorOverlay::shouldSearchForNode() { 787 bool InspectorOverlay::shouldSearchForNode() {
788 return m_inspectMode != InspectorDOMAgent::NotSearching; 788 return m_inspectMode != InspectorDOMAgent::NotSearching;
789 } 789 }
790 790
791 void InspectorOverlay::inspect(Node* node) { 791 void InspectorOverlay::inspect(Node* node) {
792 if (m_domAgent) 792 if (m_domAgent)
793 m_domAgent->inspect(node); 793 m_domAgent->inspect(node);
794 } 794 }
795 795
796 } // namespace blink 796 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ContextMenuClientImpl.cpp ('k') | third_party/WebKit/Source/web/LocalFrameClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698