NaCl docs: add sanitizers to GSoC ideas
[chromium-blink-merge.git] / chrome / browser / ui / views / location_bar / translate_icon_view.h
blob4ebafd35673f45ba806c37b3042963e5dfd63ec4
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_TRANSLATE_ICON_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_TRANSLATE_ICON_VIEW_H_
8 #include "chrome/browser/ui/views/location_bar/bubble_icon_view.h"
10 class CommandUpdater;
12 // The icon to show the Translate bubble where the user can have the page
13 // tarnslated.
14 class TranslateIconView : public BubbleIconView {
15 public:
16 explicit TranslateIconView(CommandUpdater* command_updater);
17 ~TranslateIconView() override;
19 // Toggles the icon on or off.
20 void SetToggled(bool on);
22 protected:
23 // BubbleIconView:
24 bool IsBubbleShowing() const override;
25 void OnExecuting(BubbleIconView::ExecuteSource execute_source) override;
27 private:
28 DISALLOW_COPY_AND_ASSIGN(TranslateIconView);
31 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_TRANSLATE_ICON_VIEW_H_