Chromium Code Reviews| Index: chrome/browser/ui/translate/translate_bubble_model_impl.h |
| diff --git a/chrome/browser/ui/translate/translate_bubble_model_impl.h b/chrome/browser/ui/translate/translate_bubble_model_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..868e4ad4e358265eb766f2a4479459a50f372056 |
| --- /dev/null |
| +++ b/chrome/browser/ui/translate/translate_bubble_model_impl.h |
| @@ -0,0 +1,47 @@ |
| +// 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_TRANSLATE_TRANSLATE_BUBBLE_MODEL_IMPL_H_ |
| +#define CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_IMPL_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/memory/scoped_ptr.h" |
| +#include "chrome/browser/ui/translate/translate_bubble_model.h" |
| + |
| +class TranslateUIDelegate; |
| + |
| +class TranslateBubbleModelImpl : public TranslateBubbleModel { |
|
sky
2013/10/15 16:10:40
Again, description.
hajimehoshi
2013/10/16 07:35:06
Done.
|
| + public: |
| + explicit TranslateBubbleModelImpl( |
| + TranslateBubbleModel::ViewType view_type, |
| + scoped_ptr<TranslateUIDelegate> ui_delegate); |
| + virtual ~TranslateBubbleModelImpl(); |
| + |
| + // TranslateBubbleModel methods. |
| + virtual int GetNumberOfLanguages() const OVERRIDE; |
| + virtual string16 GetLanguageNameAt(int index) const OVERRIDE; |
| + |
|
sky
2013/10/15 16:10:40
nit: generally no newlines between overriden metho
hajimehoshi
2013/10/16 07:35:06
Done.
|
| + virtual int GetOriginalLanguageIndex() const OVERRIDE; |
| + virtual void SetOriginalLanguageIndex(int index) OVERRIDE; |
| + |
| + virtual int GetTargetLanguageIndex() const OVERRIDE; |
| + virtual void SetTargetLanguageIndex(int index) OVERRIDE; |
| + |
| + virtual void SetLanguageBlocked(bool value) OVERRIDE; |
| + virtual void SetSiteBlacklist(bool value) OVERRIDE; |
| + |
| + virtual bool ShouldAlwaysTranslate() const OVERRIDE; |
| + virtual void SetAlwaysTranslate(bool value) OVERRIDE; |
| + |
| + virtual void Translate() OVERRIDE; |
| + virtual void RevertTranslation() OVERRIDE; |
| + virtual void TranslationDeclined() OVERRIDE; |
| + |
| + private: |
| + scoped_ptr<TranslateUIDelegate> ui_delegate_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(TranslateBubbleModelImpl); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_IMPL_H_ |