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

Unified Diff: chrome/browser/ui/views/location_bar/bubble_icon_view_delegate.h

Issue 25373009: Translate: New Bubble UX (for the view toolkit) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sky's review (3) Created 7 years, 2 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: chrome/browser/ui/views/location_bar/bubble_icon_view_delegate.h
diff --git a/chrome/browser/ui/views/location_bar/bubble_icon_view_delegate.h b/chrome/browser/ui/views/location_bar/bubble_icon_view_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..4612bcb01debeaaafd656a7a09dfaa2399a544d4
--- /dev/null
+++ b/chrome/browser/ui/views/location_bar/bubble_icon_view_delegate.h
@@ -0,0 +1,26 @@
+// Copyright 2013 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 CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_DELEGATE_H_
+#define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_DELEGATE_H_
+
+// The delegate for BubbleIconView.
+class BubbleIconViewDelegate {
sky 2013/10/23 14:43:29 There is no point in both subclassing *and* having
hajimehoshi 2013/10/24 11:31:14 Done.
+ public:
+ virtual ~BubbleIconViewDelegate() {}
+
+ // Returns true if a related bubble is already shown.
+ virtual bool IsBubbleShowing() const = 0;
+
+ // Handles when the command is executed by mouse event.
+ virtual void OnExecutingByMouse() = 0;
sky 2013/10/23 14:43:29 Add an enum and a single OnExecute(EXECUTE_SOURCE)
hajimehoshi 2013/10/24 11:31:14 Done.
+
+ // Handles when the command is executed by key event.
+ virtual void OnExecutingByKey() = 0;
+
+ // Handles when the command is executed by gesture event.
+ virtual void OnExecutingByGesture() = 0;
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698