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

Side by Side 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: Sky's review (3) 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_UI_BROWSER_LANGUAGE_STATE_OBSERVER_H_
6 #define CHROME_BROWSER_UI_BROWSER_LANGUAGE_STATE_OBSERVER_H_
7
8 #include "chrome/browser/tab_contents/language_state_observer.h"
9
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12
13 class Browser;
14
15 // The implementation of LanguageStateObserver for Browser. This observes the
sky 2013/10/23 14:43:29 'The implementation' -> 'Implementation of..'
hajimehoshi 2013/10/24 11:31:14 Done.
16 // state if Translate is enabled or not, and updates the toolbar.
sky 2013/10/23 14:43:29 Change second sentence to 'Updates toolbar in resp
hajimehoshi 2013/10/24 11:31:14 Done.
17 class BrowserLanguageStateObserver : public LanguageStateObserver {
18 public:
19 explicit BrowserLanguageStateObserver(Browser* browser);
20
21 virtual ~BrowserLanguageStateObserver();
22
23 // Overridden from LanguageState::Observer
24 virtual void OnTranslateEnabledChanged(content::WebContents* source) OVERRIDE;
25
26 private:
27 Browser* browser_;
28
29 DISALLOW_COPY_AND_ASSIGN(BrowserLanguageStateObserver);
30 };
31
32 #endif // CHROME_BROWSER_UI_BROWSER_LANGUAGE_STATE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698