diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-19 03:37:12 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-19 03:37:12 +0000 |
commit | be06a75bb612b0652f7ba926668b94671b9c6ab8 (patch) | |
tree | bc2efae1a3e66d97e0c6b0c9b95f72793b794398 /chrome/browser/gtk/status_bubble_gtk.h | |
parent | efedc412986c570f16b54e58bb5edc47546e0eee (diff) | |
download | chromium_src-be06a75bb612b0652f7ba926668b94671b9c6ab8.zip chromium_src-be06a75bb612b0652f7ba926668b94671b9c6ab8.tar.gz chromium_src-be06a75bb612b0652f7ba926668b94671b9c6ab8.tar.bz2 |
Super-simplistic status bubble on Linux.
(I just want to see when pages are loading, y'know...)
Review URL: http://codereview.chromium.org/21500
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10004 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/status_bubble_gtk.h')
-rw-r--r-- | chrome/browser/gtk/status_bubble_gtk.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/chrome/browser/gtk/status_bubble_gtk.h b/chrome/browser/gtk/status_bubble_gtk.h new file mode 100644 index 0000000..8135811 --- /dev/null +++ b/chrome/browser/gtk/status_bubble_gtk.h @@ -0,0 +1,47 @@ +// 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_STATUS_BUBBLE_GTK_H_ +#define CHROME_BROWSER_STATUS_BUBBLE_GTK_H_ + +#include <string> + +#include <gtk/gtk.h> + +#include "chrome/browser/status_bubble.h" + +class GURL; + +class StatusBubbleGtk : public StatusBubble { + public: + StatusBubbleGtk(GtkWindow* parent); + virtual ~StatusBubbleGtk(); + + // StatusBubble implementation. + virtual void SetStatus(const std::wstring& status); + virtual void SetURL(const GURL& url, const std::wstring& languages); + virtual void Hide(); + virtual void MouseMoved(); + + void SetStatus(const std::string& status_utf8); + + private: + // Construct the window/widget. + void Create(); + + // Reposition ourselves atop our parent window. + void Reposition(); + + // The window we display on top of. + GtkWindow* parent_; + + // The top-level (popup) window we own. + // NULL when we're not showing. + GtkWidget* window_; + + // The GtkLabel holding the text. + GtkWidget* label_; +}; + +#endif // #ifndef CHROME_BROWSER_STATUS_BUBBLE_GTK_H_ |