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

Unified Diff: chrome/browser/ui/views/infobars/translate_infobar_base.h

Issue 325483003: Remove unused Views Translate InfoBar code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove test-only infobar toggle; no-op tests for incompatible UX. Created 6 years, 6 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/ui/views/infobars/translate_infobar_base.h
diff --git a/chrome/browser/ui/views/infobars/translate_infobar_base.h b/chrome/browser/ui/views/infobars/translate_infobar_base.h
deleted file mode 100644
index 71962496e42ee8b6fedee27e967c0fa1648ff583..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/infobars/translate_infobar_base.h
+++ /dev/null
@@ -1,59 +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_UI_VIEWS_INFOBARS_TRANSLATE_INFOBAR_BASE_H_
-#define CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_INFOBAR_BASE_H_
-
-#include "base/compiler_specific.h"
-#include "chrome/browser/ui/views/infobars/infobar_background.h"
-#include "chrome/browser/ui/views/infobars/infobar_view.h"
-
-class TranslateInfoBarDelegate;
-
-namespace views {
-class MenuButton;
-}
-
-// This class contains some of the base functionality that translate infobars
-// use.
-class TranslateInfoBarBase : public InfoBarView {
- public:
- // Sets the text of the provided language menu button.
- void UpdateLanguageButtonText(views::MenuButton* button,
- const base::string16& text);
-
- protected:
- explicit TranslateInfoBarBase(scoped_ptr<TranslateInfoBarDelegate> delegate);
- virtual ~TranslateInfoBarBase();
-
- // InfoBarView:
- virtual void ViewHierarchyChanged(
- const ViewHierarchyChangedDetails& details) OVERRIDE;
-
- // Convenience to retrieve the TranslateInfoBarDelegate for this infobar.
- TranslateInfoBarDelegate* GetDelegate();
-
- static const int kButtonInLabelSpacing;
-
- private:
- // InfoBarView:
- virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE;
- virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE;
-
- // Returns the background that should be displayed when not animating.
- const views::Background& GetBackground();
-
- // Paints |background| to |canvas| with the opacity level based on
- // |animation_value|.
- void FadeBackground(gfx::Canvas* canvas,
- double animation_value,
- const views::Background& background);
-
- InfoBarBackground error_background_;
- scoped_ptr<gfx::SlideAnimation> background_color_animation_;
-
- DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarBase);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_TRANSLATE_INFOBAR_BASE_H_

Powered by Google App Engine
This is Rietveld 408576698