| Index: chrome/browser/ui/views/location_bar/translate_icon_view.h
|
| diff --git a/chrome/browser/ui/views/location_bar/translate_icon_view.h b/chrome/browser/ui/views/location_bar/translate_icon_view.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1e1e287c734a0f3aa6fe672f7f40655080b13e57
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/views/location_bar/translate_icon_view.h
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2013 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_LOCATION_BAR_TRANSLATE_ICON_VIEW_H_
|
| +#define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_TRANSLATE_ICON_VIEW_H_
|
| +
|
| +#include "chrome/browser/ui/views/location_bar/bubble_icon_view.h"
|
| +
|
| +class CommandUpdater;
|
| +
|
| +// The icon to show the Translate bubble where the user can have the page
|
| +// tarnslated.
|
| +class TranslateIconView : public BubbleIconView {
|
| + public:
|
| + explicit TranslateIconView(CommandUpdater* command_updater);
|
| + virtual ~TranslateIconView();
|
| +
|
| + protected:
|
| + // BubbleIconView:
|
| + virtual bool IsBubbleShowing() const OVERRIDE;
|
| + virtual void OnExecuting(
|
| + BubbleIconView::ExecuteSource execute_source) OVERRIDE;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(TranslateIconView);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_TRANSLATE_ICON_VIEW_H_
|
|
|