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

Side by Side Diff: chrome/browser/ui/translate/translate_bubble_model_impl.h

Issue 98643003: Translate new UX: Fix the visual and behavior of 'Done' button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sky's review Created 7 years 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_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_IMPL_H_
6 #define CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_IMPL_H_ 6 #define CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/translate/translate_bubble_model.h" 10 #include "chrome/browser/ui/translate/translate_bubble_model.h"
(...skipping 19 matching lines...) Expand all
30 virtual void UpdateOriginalLanguageIndex(int index) OVERRIDE; 30 virtual void UpdateOriginalLanguageIndex(int index) OVERRIDE;
31 virtual int GetTargetLanguageIndex() const OVERRIDE; 31 virtual int GetTargetLanguageIndex() const OVERRIDE;
32 virtual void UpdateTargetLanguageIndex(int index) OVERRIDE; 32 virtual void UpdateTargetLanguageIndex(int index) OVERRIDE;
33 virtual void SetNeverTranslateLanguage(bool value) OVERRIDE; 33 virtual void SetNeverTranslateLanguage(bool value) OVERRIDE;
34 virtual void SetNeverTranslateSite(bool value) OVERRIDE; 34 virtual void SetNeverTranslateSite(bool value) OVERRIDE;
35 virtual bool ShouldAlwaysTranslate() const OVERRIDE; 35 virtual bool ShouldAlwaysTranslate() const OVERRIDE;
36 virtual void SetAlwaysTranslate(bool value) OVERRIDE; 36 virtual void SetAlwaysTranslate(bool value) OVERRIDE;
37 virtual void Translate() OVERRIDE; 37 virtual void Translate() OVERRIDE;
38 virtual void RevertTranslation() OVERRIDE; 38 virtual void RevertTranslation() OVERRIDE;
39 virtual void TranslationDeclined() OVERRIDE; 39 virtual void TranslationDeclined() OVERRIDE;
40 virtual bool IsPageTranslatedInCurrentLanguages() const OVERRIDE;
40 41
41 private: 42 private:
42 scoped_ptr<TranslateUIDelegate> ui_delegate_; 43 scoped_ptr<TranslateUIDelegate> ui_delegate_;
43 TranslateBubbleViewStateTransition view_state_transition_; 44 TranslateBubbleViewStateTransition view_state_transition_;
44 45
45 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleModelImpl); 46 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleModelImpl);
46 }; 47 };
47 48
48 #endif // CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_IMPL_H_ 49 #endif // CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/translate/translate_bubble_model.h ('k') | chrome/browser/ui/translate/translate_bubble_model_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698