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

Unified Diff: chrome/browser/ui/browser_language_state_observer.h

Issue 25373009: Translate: New Bubble UX (for the view toolkit) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug fix: view id on tests Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/browser/ui/browser_language_state_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_language_state_observer.h
diff --git a/chrome/browser/ui/browser_language_state_observer.h b/chrome/browser/ui/browser_language_state_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..83abf69e9203662bcbc1cafce4ab82d65776e952
--- /dev/null
+++ b/chrome/browser/ui/browser_language_state_observer.h
@@ -0,0 +1,33 @@
+// 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_BROWSER_LANGUAGE_STATE_OBSERVER_H_
+#define CHROME_BROWSER_UI_BROWSER_LANGUAGE_STATE_OBSERVER_H_
+
+#include "chrome/browser/tab_contents/language_state_observer.h"
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+
+class Browser;
+
+// Implementation of LanguageStateObserver for Browser. This observes the state
+// if Translate is enabled or not, and updates toolbar in response to changes in
+// state of translate.
+class BrowserLanguageStateObserver : public LanguageStateObserver {
+ public:
+ explicit BrowserLanguageStateObserver(Browser* browser);
+
+ virtual ~BrowserLanguageStateObserver();
+
+ // Overridden from LanguageState::Observer
+ virtual void OnTranslateEnabledChanged(content::WebContents* source) OVERRIDE;
+
+ private:
+ Browser* browser_;
+
+ DISALLOW_COPY_AND_ASSIGN(BrowserLanguageStateObserver);
+};
+
+#endif // CHROME_BROWSER_UI_BROWSER_LANGUAGE_STATE_OBSERVER_H_
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/browser/ui/browser_language_state_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698