| Index: content/renderer/render_widget.h
|
| diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
|
| index 5d0303e01c9cea44d23ba2fb5d8f651cbaa22337..5eecc23c2729d62504f4a4ed8ebf4fef2d0cd047 100644
|
| --- a/content/renderer/render_widget.h
|
| +++ b/content/renderer/render_widget.h
|
| @@ -360,6 +360,9 @@ class CONTENT_EXPORT RenderWidget
|
| 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 @@ class CONTENT_EXPORT RenderWidget
|
| // 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 @@ class CONTENT_EXPORT RenderWidget
|
| // 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);
|
| };
|
|
|
|
|