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

Side by Side Diff: components/translate/core/browser/translate_driver.h

Issue 133273029: Move LanguageState to the translate component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comment + rebase Created 6 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DRIVER_H_
6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DRIVER_H_
7
8 // Interface that allows Translate core code to interact with its driver (i.e.,
9 // obtain information from it and give information to it). A concrete
10 // implementation must be provided by the driver.
11 class TranslateDriver {
12 public:
13 // Returns true if the current page was navigated through a link.
14 virtual bool IsLinkNavigation() = 0;
15
16 // Called when Translate is enabled or disabled.
17 virtual void OnTranslateEnabledChanged() = 0;
18
19 // Called when the page is "translated" state of the page changed.
20 virtual void OnIsPageTranslatedChanged() = 0;
21 };
22
23 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DRIVER_H_
OLDNEW
« no previous file with comments | « components/translate/core/browser/language_state_unittest.cc ('k') | tools/gn/secondary/components/translate/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698