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

Unified Diff: components/bubble/bubble_controller.h

Issue 1310483003: Add ability for a BubbleReference to update the BubbleUI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bm-reference-own-file.gitbr
Patch Set: Created 5 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 | « no previous file | components/bubble/bubble_controller.cc » ('j') | components/bubble/bubble_controller.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/bubble/bubble_controller.h
diff --git a/components/bubble/bubble_controller.h b/components/bubble/bubble_controller.h
index bd87d2dc7f86d68bc2654f6cbdb6edce4e2feb26..c934059261187ef5a059d86fc5f7120d25d1a437 100644
--- a/components/bubble/bubble_controller.h
+++ b/components/bubble/bubble_controller.h
@@ -23,6 +23,9 @@ class BubbleController : public base::SupportsWeakPtr<BubbleController> {
// Calls CloseBubble on the associated BubbleManager.
bool CloseBubble(BubbleCloseReason reason);
+ // Calls UpdateBubbleUI on the associated BubbleManager.
+ bool UpdateBubbleUI();
groby-ooo-7-16 2015/09/03 17:30:01 Naming convention would make this UpdateBubbleUi.
hcarmona 2015/09/03 18:05:54 Fixed everywhere.
+
private:
friend class BubbleManager;
@@ -37,6 +40,9 @@ class BubbleController : public base::SupportsWeakPtr<BubbleController> {
// Returns true if the bubble was closed.
bool ShouldClose(BubbleCloseReason reason);
+ // Called by BubbleManager to notify the bubble to update its UI.
+ bool UpdateBubbleUIInternal();
+
BubbleManager* manager_;
scoped_ptr<BubbleDelegate> delegate_;
scoped_ptr<BubbleUI> bubble_ui_;
« no previous file with comments | « no previous file | components/bubble/bubble_controller.cc » ('j') | components/bubble/bubble_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698