1 // Copyright 2014 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_BROWSER_CONTENT_TRANSLATE_DRIVER_OBSERVER_H_
6 #define CHROME_BROWSER_UI_BROWSER_CONTENT_TRANSLATE_DRIVER_OBSERVER_H_
8 #include "components/translate/content/browser/content_translate_driver.h"
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
15 // Implementation of ContentTranslateDriver::Observer for Browser. This observes
16 // wether Translate is enabled or not, and updates toolbar in response to
17 // changes in state of translate.
18 class BrowserContentTranslateDriverObserver
19 : public ContentTranslateDriver::Observer
{
21 explicit BrowserContentTranslateDriverObserver(Browser
* browser
);
23 virtual ~BrowserContentTranslateDriverObserver();
25 // Overridden from ContentTranslateDriver::Observer
26 virtual void OnIsPageTranslatedChanged(content::WebContents
* source
) OVERRIDE
;
27 virtual void OnTranslateEnabledChanged(content::WebContents
* source
) OVERRIDE
;
32 DISALLOW_COPY_AND_ASSIGN(BrowserContentTranslateDriverObserver
);
35 #endif // CHROME_BROWSER_UI_BROWSER_CONTENT_TRANSLATE_DRIVER_OBSERVER_H_