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

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

Issue 26775007: Translate: Add TranslateBubbleView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move implementation of the view type transitions to TranslateBubbleModel 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_TRANSLATE_TRANSLATE_BUBBLE_MODEL_IMPL_H_
6 #define CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_IMPL_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/translate/translate_bubble_model.h"
11
12 class TranslateUIDelegate;
13
14 class TranslateBubbleModelImpl : public TranslateBubbleModel {
sky 2013/10/15 16:10:40 Again, description.
hajimehoshi 2013/10/16 07:35:06 Done.
15 public:
16 explicit TranslateBubbleModelImpl(
17 TranslateBubbleModel::ViewType view_type,
18 scoped_ptr<TranslateUIDelegate> ui_delegate);
19 virtual ~TranslateBubbleModelImpl();
20
21 // TranslateBubbleModel methods.
22 virtual int GetNumberOfLanguages() const OVERRIDE;
23 virtual string16 GetLanguageNameAt(int index) const OVERRIDE;
24
sky 2013/10/15 16:10:40 nit: generally no newlines between overriden metho
hajimehoshi 2013/10/16 07:35:06 Done.
25 virtual int GetOriginalLanguageIndex() const OVERRIDE;
26 virtual void SetOriginalLanguageIndex(int index) OVERRIDE;
27
28 virtual int GetTargetLanguageIndex() const OVERRIDE;
29 virtual void SetTargetLanguageIndex(int index) OVERRIDE;
30
31 virtual void SetLanguageBlocked(bool value) OVERRIDE;
32 virtual void SetSiteBlacklist(bool value) OVERRIDE;
33
34 virtual bool ShouldAlwaysTranslate() const OVERRIDE;
35 virtual void SetAlwaysTranslate(bool value) OVERRIDE;
36
37 virtual void Translate() OVERRIDE;
38 virtual void RevertTranslation() OVERRIDE;
39 virtual void TranslationDeclined() OVERRIDE;
40
41 private:
42 scoped_ptr<TranslateUIDelegate> ui_delegate_;
43
44 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleModelImpl);
45 };
46
47 #endif // CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698