summaryrefslogtreecommitdiffstats
path: root/chrome/browser/status_bubble.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-22 22:57:19 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-22 22:57:19 +0000
commitfeb3cf74585fba3a97b4b85d74ac053acbf203e7 (patch)
tree3f434355d7502717703b09d23336ad3c913f8905 /chrome/browser/status_bubble.h
parent131272f965eab9197a4054027e80aa48b1d70eb1 (diff)
downloadchromium_src-feb3cf74585fba3a97b4b85d74ac053acbf203e7.zip
chromium_src-feb3cf74585fba3a97b4b85d74ac053acbf203e7.tar.gz
chromium_src-feb3cf74585fba3a97b4b85d74ac053acbf203e7.tar.bz2
Make the browser talk to the status bubble through an abstract interface to remove the views dependency.
Review URL: http://codereview.chromium.org/18487 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8515 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/status_bubble.h')
-rw-r--r--chrome/browser/status_bubble.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/chrome/browser/status_bubble.h b/chrome/browser/status_bubble.h
new file mode 100644
index 0000000..0f6cd04
--- /dev/null
+++ b/chrome/browser/status_bubble.h
@@ -0,0 +1,40 @@
+// 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_H_
+#define CHROME_BROWSER_STATUS_BUBBLE_H_
+
+class GURL;
+
+////////////////////////////////////////////////////////////////////////////////
+// StatusBubble interface
+// An interface implemented by an object providing the status display area of
+// the browser window.
+//
+class StatusBubble {
+ public:
+ // Sets the bubble contents to a specific string and causes the bubble
+ // to display immediately. Subsequent empty SetURL calls (typically called
+ // when the cursor exits a link) will set the status bubble back to its
+ // status text. To hide the status bubble again, either call SetStatus
+ // with an empty string, or call Hide().
+ virtual void SetStatus(const std::wstring& status) = 0;
+
+ // Sets the bubble text to a URL - if given a non-empty URL, this will cause
+ // the bubble to fade in and remain open until given an empty URL or until
+ // the Hide() method is called. languages is the value of Accept-Language
+ // to determine what characters are understood by a user.
+ virtual void SetURL(const GURL& url, const std::wstring& languages) = 0;
+
+ // Skip the fade and instant-hide the bubble.
+ virtual void Hide() = 0;
+
+ // Called when the user's mouse has moved over web content. This is used to
+ // determine when the status area should move out of the way of the user's
+ // mouse. This may be windows specific pain due to the way messages are
+ // processed for child HWNDs.
+ virtual void MouseMoved() = 0;
+};
+
+#endif // #ifndef CHROME_BROWSER_STATUS_BUBBLE_H_ \ No newline at end of file