#include <string>
#include "base/basictypes.h"
+#include "chrome/browser/translate/translate_tab_helper.h"
#include "chrome/browser/ui/translate/language_combobox_model.h"
#include "chrome/browser/ui/translate/translate_bubble_model.h"
#include "components/translate/core/common/translate_errors.h"
#include "ui/views/controls/link_listener.h"
class PrefService;
-class TranslateBubbleModel;
namespace views {
class Checkbox;
// Shows the Translate bubble.
static void ShowBubble(views::View* anchor_view,
content::WebContents* web_contents,
- TranslateBubbleModel::ViewState type,
+ TranslateTabHelper::TranslateStep step,
TranslateErrors::Type error_type);
// If true, the Translate bubble is being shown.
virtual gfx::Size GetPreferredSize() OVERRIDE;
// views::CombboxListener methods.
- virtual void OnSelectedIndexChanged(views::Combobox* combobox) OVERRIDE;
- virtual void OnComboboxTextButtonClicked(views::Combobox* combobox) OVERRIDE;
+ virtual void OnPerformAction(views::Combobox* combobox) OVERRIDE;
// views::LinkListener method.
virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
void HandleLinkClicked(LinkID sender_id);
// Handles the event when the user changes an index of a combobox.
- void HandleComboboxSelectedIndexChanged(ComboboxID sender_id);
+ void HandleComboboxPerformAction(ComboboxID sender_id);
// Updates the visibilities of child views according to the current view type.
void UpdateChildVisibilities();