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

Side by Side Diff: components/translate/content/browser/language_state_observer.h

Issue 133273029: Move LanguageState to the translate component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_TAB_CONTENTS_LANGUAGE_STATE_OBSERVER_H_ 5 #ifndef COMPONENTS_TRANSLATE_CONTENT_BROWSER_LANGUAGE_STATE_OBSERVER_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_LANGUAGE_STATE_OBSERVER_H_ 6 #define COMPONENTS_TRANSLATE_CONTENT_BROWSER_LANGUAGE_STATE_OBSERVER_H_
7 7
8 namespace content { 8 namespace content {
9 class WebContents; 9 class WebContents;
10 } 10 }
11 11
12 // The observer for the language state. 12 // The observer for the language state.
13 class LanguageStateObserver { 13 class LanguageStateObserver {
14 public: 14 public:
15 // Handles when the value of IsPageTranslated is changed. 15 // Handles when the value of IsPageTranslated is changed.
16 virtual void OnIsPageTranslatedChanged(content::WebContents* source) = 0; 16 virtual void OnIsPageTranslatedChanged(content::WebContents* source) = 0;
17 17
18 // Handles when the value of translate_enabled is changed. 18 // Handles when the value of translate_enabled is changed.
19 virtual void OnTranslateEnabledChanged(content::WebContents* source) = 0; 19 virtual void OnTranslateEnabledChanged(content::WebContents* source) = 0;
20 20
21 protected: 21 protected:
22 virtual ~LanguageStateObserver() {} 22 virtual ~LanguageStateObserver() {}
23 }; 23 };
24 24
25 #endif // CHROME_BROWSER_TAB_CONTENTS_LANGUAGE_STATE_OBSERVER_H_ 25 #endif // COMPONENTS_TRANSLATE_CONTENT_BROWSER_LANGUAGE_STATE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698