diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-20 23:03:14 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-20 23:03:14 +0000 |
commit | 1fc025209fbaeb2eb91cfeac8dbced8bc493f3b2 (patch) | |
tree | 13faf73a68138e0cd30e7b628a677ebb0422aa8c /chrome/browser/views/delay_view.h | |
parent | 91f57782b0dd7a847b8d31020003f00099366545 (diff) | |
download | chromium_src-1fc025209fbaeb2eb91cfeac8dbced8bc493f3b2.zip chromium_src-1fc025209fbaeb2eb91cfeac8dbced8bc493f3b2.tar.gz chromium_src-1fc025209fbaeb2eb91cfeac8dbced8bc493f3b2.tar.bz2 |
Rework the command updater to not be dependent on views::Button (needed for porting).
TEST=make sure back/forward buttons still enable/disable correctly depending on the length of the back/forward navigation list.
Review URL: http://codereview.chromium.org/18343
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8332 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/delay_view.h')
-rw-r--r-- | chrome/browser/views/delay_view.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/chrome/browser/views/delay_view.h b/chrome/browser/views/delay_view.h deleted file mode 100644 index 86ac7cc..0000000 --- a/chrome/browser/views/delay_view.h +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) 2006-2008 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. - -// A simple view that indicates to the user that a time-consuming operation -// is being performed, using a throbber and some explanatory text. - -#ifndef CHROME_BROWSER_VIEWS_DELAY_VIEW_H__ -#define CHROME_BROWSER_VIEWS_DELAY_VIEW_H__ - -#include "chrome/browser/controller.h" -#include "base/basictypes.h" -#include "chrome/views/label.h" -#include "chrome/views/native_button.h" -#include "chrome/views/throbber.h" - -class DelayView : public views::View, - public views::NativeButton::Listener { - public: - // |text| explains the delay - // |controller| receives notifications when the "cancel" button is pressed - // |show_cancel| determines whether the cancel button is shown - DelayView(const std::wstring& text, - CommandController* controller, - bool show_cancel); - virtual ~DelayView(); - - enum ViewID { - ID_CANCEL = 10000, - }; - - // Overridden from views::View - virtual void Layout(); - - // Implemented from views::NativeButton::Listener - virtual void ButtonPressed(views::NativeButton *sender); - - private: - CommandController* controller_; - - views::Label* label_; - views::NativeButton* cancel_button_; - views::Throbber* throbber_; - - DISALLOW_EVIL_CONSTRUCTORS(DelayView); -}; - -#endif // CHROME_BROWSER_VIEWS_DELAY_VIEW_H__ - |