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

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

Issue 325483003: Remove unused Views Translate InfoBar code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comments, add early return for PolicyTest.DISABLED_TranslateEnabled. 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/before_translate_infobar.h
diff --git a/chrome/browser/ui/views/infobars/before_translate_infobar.h b/chrome/browser/ui/views/infobars/before_translate_infobar.h
deleted file mode 100644
index 73ee3cadb7d845c5171817d50129dde509c8bbd1..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/infobars/before_translate_infobar.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) 2012 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_BEFORE_TRANSLATE_INFOBAR_H_
-#define CHROME_BROWSER_UI_VIEWS_INFOBARS_BEFORE_TRANSLATE_INFOBAR_H_
-
-#include "chrome/browser/ui/views/infobars/translate_infobar_base.h"
-#include "ui/views/controls/button/menu_button_listener.h"
-
-class OptionsMenuModel;
-class TranslateInfoBarDelegate;
-class TranslateLanguageMenuModel;
-
-namespace views {
-class MenuButton;
-}
-
-class BeforeTranslateInfoBar : public TranslateInfoBarBase,
- public views::MenuButtonListener {
- public:
- explicit BeforeTranslateInfoBar(
- scoped_ptr<TranslateInfoBarDelegate> delegate);
-
- private:
- virtual ~BeforeTranslateInfoBar();
-
- // TranslateInfoBarBase:
- virtual void Layout() OVERRIDE;
- virtual void ButtonPressed(views::Button* sender,
- const ui::Event& event) OVERRIDE;
- virtual void ViewHierarchyChanged(
- const ViewHierarchyChangedDetails& details) OVERRIDE;
- virtual int ContentMinimumWidth() const OVERRIDE;
-
- // views::MenuButtonListener:
- virtual void OnMenuButtonClicked(views::View* source,
- const gfx::Point& point) OVERRIDE;
-
- // Returns the width of all content other than the labels. Layout() uses this
- // to determine how much space the labels can take.
- int NonLabelWidth() const;
-
- // The text displayed in the infobar is something like:
- // "The page is in <lang>. Would you like to translate it?"
- // ...where <lang> is a combobox. So the text is split in 2 chunks, each
- // displayed in one of the labels below.
- views::Label* label_1_;
- views::Label* label_2_;
-
- views::MenuButton* language_menu_button_;
- views::LabelButton* accept_button_;
- views::LabelButton* deny_button_;
- views::LabelButton* never_translate_button_;
- views::LabelButton* always_translate_button_;
- views::MenuButton* options_menu_button_;
-
- scoped_ptr<TranslateLanguageMenuModel> language_menu_model_;
- scoped_ptr<OptionsMenuModel> options_menu_model_;
-
- DISALLOW_COPY_AND_ASSIGN(BeforeTranslateInfoBar);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_BEFORE_TRANSLATE_INFOBAR_H_

Powered by Google App Engine
This is Rietveld 408576698