Index: components/bubble/bubble_controller.h |
diff --git a/components/bubble/bubble_controller.h b/components/bubble/bubble_controller.h |
index f86452f762c9a95ee541bee1fb32a8f913ebd3b0..78889be30a242b2f59ffcc45662b8c9429986be2 100644 |
--- a/components/bubble/bubble_controller.h |
+++ b/components/bubble/bubble_controller.h |
@@ -15,6 +15,10 @@ class BubbleDelegate; |
class BubbleManager; |
class BubbleUi; |
+namespace content { |
+class RenderFrameHost; |
+} |
+ |
// BubbleController is responsible for the lifetime of the delegate and its UI. |
class BubbleController : public base::SupportsWeakPtr<BubbleController> { |
public: |
@@ -48,6 +52,9 @@ class BubbleController : public base::SupportsWeakPtr<BubbleController> { |
// Returns true if the bubble should be closed. |
bool ShouldClose(BubbleCloseReason reason) const; |
+ // Returns true if |frame| owns this bubble. |
+ bool OwningFrameIs(const content::RenderFrameHost* frame) const; |
+ |
// Cleans up the delegate and its UI. |
void DoClose(); |