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

Unified Diff: components/bubble/bubble_delegate.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: Add UI thread checks to controller Created 5 years, 3 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 | « components/bubble/bubble_controller.cc ('k') | components/bubble/bubble_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/bubble/bubble_delegate.h
diff --git a/components/bubble/bubble_delegate.h b/components/bubble/bubble_delegate.h
index ebac50f33a3d5a4a56b7836d5acf225cfe9675b0..178b54263a9cb266d052521ecd55a7769b264f89 100644
--- a/components/bubble/bubble_delegate.h
+++ b/components/bubble/bubble_delegate.h
@@ -8,7 +8,7 @@
#include "base/memory/scoped_ptr.h"
#include "components/bubble/bubble_close_reason.h"
-class BubbleUI;
+class BubbleUi;
// Inherit from this class to define a bubble. A bubble is a small transient UI
// surface anchored to a parent window. Most bubbles are dismissed when they
@@ -25,7 +25,12 @@ class BubbleDelegate {
// Called by BubbleController to build the UI that will represent this bubble.
// BubbleDelegate should not keep a reference to this newly created UI.
- virtual scoped_ptr<BubbleUI> BuildBubbleUI() = 0;
+ virtual scoped_ptr<BubbleUi> BuildBubbleUi() = 0;
+
+ // Called to update an existing UI. This is the same BubbleUi that was created
+ // in |BuildBubbleUi|.
+ // Return true to indicate the UI was updated.
+ virtual bool UpdateBubbleUi(BubbleUi* bubble_ui);
private:
DISALLOW_COPY_AND_ASSIGN(BubbleDelegate);
« no previous file with comments | « components/bubble/bubble_controller.cc ('k') | components/bubble/bubble_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698