summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/bookmark_bubble_gtk.h
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-30 15:24:37 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-30 15:24:37 +0000
commit4d8c97a0fc89283697f3a580a6febad4c2fe972b (patch)
tree45641ce2e01861653f9b68842edd3e41781c82f3 /chrome/browser/gtk/bookmark_bubble_gtk.h
parent900e7368646c6d45d62df9eb03f252cfacdf6111 (diff)
downloadchromium_src-4d8c97a0fc89283697f3a580a6febad4c2fe972b.zip
chromium_src-4d8c97a0fc89283697f3a580a6febad4c2fe972b.tar.gz
chromium_src-4d8c97a0fc89283697f3a580a6febad4c2fe972b.tar.bz2
Implement a mostly working InfoBubble with a shim BookmarkBubble.
This ended up being implemented as a toplevel instead of a popup, to handle things like virtual desktop switching. I imagine there are some other problems we might hit, like the window getting decorated, etc. Although I think the shape mask might prevent decorations from being visible. This is not pixel perfect with Windows, since we're not anti-aliasing the frame border. Review URL: http://codereview.chromium.org/100203 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14941 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_bubble_gtk.h')
-rw-r--r--chrome/browser/gtk/bookmark_bubble_gtk.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/chrome/browser/gtk/bookmark_bubble_gtk.h b/chrome/browser/gtk/bookmark_bubble_gtk.h
new file mode 100644
index 0000000..f456ba1
--- /dev/null
+++ b/chrome/browser/gtk/bookmark_bubble_gtk.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2009 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_GTK_BOOKMARK_BUBBLE_GTK_H_
+#define CHROME_BROWSER_GTK_BOOKMARK_BUBBLE_GTK_H_
+
+#include "base/basictypes.h"
+#include "googleurl/src/gurl.h"
+
+typedef struct _GtkWidget GtkWidget;
+
+class Profile;
+namespace gfx {
+class Rect;
+}
+
+class BookmarkBubbleGtk {
+ public:
+ static void Show(const gfx::Rect& rect,
+ Profile* profile,
+ const GURL& url,
+ bool newly_bookmarked);
+};
+
+#endif // CHROME_BROWSER_GTK_BOOKMARK_BUBBLE_GTK_H_