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

Unified Diff: components/bubble/bubble_delegate.h

Issue 1251633002: Add BubbleManager to manage bubbles and ChromeBubbleManager for events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update 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
Index: components/bubble/bubble_delegate.h
diff --git a/components/bubble/bubble_delegate.h b/components/bubble/bubble_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..44008714d71019d8d1894eb07273adcd9a2a5787
--- /dev/null
+++ b/components/bubble/bubble_delegate.h
@@ -0,0 +1,25 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_BUBBLE_BUBBLE_DELEGATE_H_
+#define COMPONENTS_BUBBLE_BUBBLE_DELEGATE_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
+
+class BubbleUI;
+
+class BubbleDelegate : public base::SupportsWeakPtr<BubbleDelegate> {
+ public:
+ virtual ~BubbleDelegate() {}
+
+ // Build UI to represent this bubble.
+ virtual scoped_ptr<BubbleUI> BuildBubbleUI() = 0;
+
+ // Get the context for this bubble. This allows a bubble to be
+ // hidden/closed/shown on the correct events.
+ virtual void* GetContext() = 0;
+};
+
+#endif // COMPONENTS_BUBBLE_BUBBLE_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698