Fix rendering of flash content inside an out-of-process iframe.
This patch moves the tracking of pepper plugins from RenderViewImpl to
RenderWidget.
BUG=593520
Review-Url: https://codereview.chromium.org/1962923002
Cr-Commit-Position: refs/heads/master@{#393012}
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 5d0303e..5eecc23c 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -360,6 +360,9 @@
void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile);
void ResetDeviceColorProfileForTesting();
+ // Indicates whether this widget has focus.
+ bool has_focus() const { return has_focus_; }
+
protected:
// Friend RefCounted so that the dtor can be non-public. Using this class
// without ref-counting is an error.
@@ -495,7 +498,7 @@
// the ACK that the screen has been updated. For a given paint operation,
// these overrides will always be called in the order DidInitiatePaint,
// DidFlushPaint.
- virtual void DidInitiatePaint();
+ virtual void DidInitiatePaint() {}
virtual void DidFlushPaint();
virtual GURL GetURLForGraphicsContext3D();
@@ -758,6 +761,9 @@
// When emulated, this returns original device scale factor.
float GetOriginalDeviceScaleFactor() const;
+ // Indicates whether this widget has focus.
+ bool has_focus_;
+
DISALLOW_COPY_AND_ASSIGN(RenderWidget);
};