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

Unified Diff: components/bubble/bubble_ui.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: gn nit 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 | « components/bubble/bubble_manager_unittest.cc ('k') | components/components.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/bubble/bubble_ui.h
diff --git a/components/bubble/bubble_ui.h b/components/bubble/bubble_ui.h
new file mode 100644
index 0000000000000000000000000000000000000000..5c52f4fb0675cc144dfce7a86437709761ea89b0
--- /dev/null
+++ b/components/bubble/bubble_ui.h
@@ -0,0 +1,24 @@
+// 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_UI_H_
+#define COMPONENTS_BUBBLE_BUBBLE_UI_H_
+
+class BubbleUI {
+ public:
+ virtual ~BubbleUI() {}
+
+ // Should display the bubble UI.
+ virtual void Show() = 0;
+
+ // Should close the bubble UI.
+ virtual void Close() = 0;
+
+ // Should update the bubble UI's position.
+ // Important to verify that an anchor is still available.
+ // ex: fullscreen might not have a location bar in views.
+ virtual void UpdateAnchorPosition() = 0;
+};
+
+#endif // COMPONENTS_BUBBLE_BUBBLE_UI_H_
« no previous file with comments | « components/bubble/bubble_manager_unittest.cc ('k') | components/components.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698