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

Unified Diff: chrome/browser/chromeos/status/status_area_bubble.h

Issue 10056001: chromeos: Remove old status-area related code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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/chromeos/status/status_area_bubble.h
diff --git a/chrome/browser/chromeos/status/status_area_bubble.h b/chrome/browser/chromeos/status/status_area_bubble.h
deleted file mode 100644
index 5d2ab2eb83a6b74a970708911b2713b59e1dd767..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/status/status_area_bubble.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) 2011 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_CHROMEOS_STATUS_STATUS_AREA_BUBBLE_H_
-#define CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_BUBBLE_H_
-#pragma once
-
-#include "base/timer.h"
-#include "ui/views/widget/widget.h"
-
-namespace views {
-class Label;
-}
-
-namespace chromeos {
-
-// StatusAreaBubbleContentView is used as the content view of
-// StatusAreaBubbleController.
-// It can be also used to show a bubble-like menu under the status area.
-class StatusAreaBubbleContentView : public views::View {
- public:
- // |icon_view| is used to show icon, |this| will take its ownership.
- StatusAreaBubbleContentView(views::View* icon_view, const string16& message);
- virtual ~StatusAreaBubbleContentView();
-
- string16 GetMessage() const;
- void SetMessage(const string16& message);
-
- views::View* icon_view() const { return icon_view_; }
-
- // views::View override
- virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
-
- private:
- views::View* icon_view_;
- views::Label* message_view_;
-
- DISALLOW_COPY_AND_ASSIGN(StatusAreaBubbleContentView);
-};
-
-// StatusAreaBubbleController is used to show a bubble under the status area
-class StatusAreaBubbleController : public views::Widget::Observer {
- public:
- virtual ~StatusAreaBubbleController();
-
- // Show bubble under |view| for a while.
- static StatusAreaBubbleController* ShowBubbleUnderViewForAWhile(
- views::View* view,
- StatusAreaBubbleContentView* content);
-
- // views::Widget::Observer override
- virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE;
-
- bool IsBubbleShown() const;
- void HideBubble();
-
- private:
- class StatusAreaBubbleDelegateView;
-
- StatusAreaBubbleController();
-
- StatusAreaBubbleDelegateView* bubble_;
- // A timer to hide this bubble.
- base::OneShotTimer<StatusAreaBubbleController> timer_;
-
- DISALLOW_COPY_AND_ASSIGN(StatusAreaBubbleController);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_BUBBLE_H_
« no previous file with comments | « chrome/browser/chromeos/status/power_menu_button.cc ('k') | chrome/browser/chromeos/status/status_area_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698