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

Side by Side Diff: chrome/browser/ui/translate/language_combobox_model.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_LANGUAGE_COMBOBOX_MODEL_H_
6 #define CHROME_BROWSER_UI_TRANSLATE_LANGUAGE_COMBOBOX_MODEL_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/strings/string16.h"
12 #include "ui/base/models/combobox_model.h"
13
14 class TranslateBubbleModel;
15
16 class LanguageComboboxModel : public ui::ComboboxModel {
sky 2013/10/15 16:10:40 Always add a description for classes.
hajimehoshi 2013/10/16 07:35:06 Done.
17 public:
18 LanguageComboboxModel(int default_index,
19 TranslateBubbleModel* model);
20 virtual ~LanguageComboboxModel();
21
22 // Overridden from ui::ComboboxModel:
23 virtual int GetItemCount() const OVERRIDE;
24 virtual string16 GetItemAt(int index) OVERRIDE;
25 virtual bool IsItemSeparatorAt(int index) OVERRIDE;
26 virtual int GetDefaultIndex() const OVERRIDE;
27
28 private:
29 int default_index_;
sky 2013/10/15 16:10:40 const
hajimehoshi 2013/10/16 07:35:06 Done.
30 TranslateBubbleModel* model_;
31
32 DISALLOW_COPY_AND_ASSIGN(LanguageComboboxModel);
33 };
34
35 #endif // CHROME_BROWSER_UI_TRANSLATE_LANGUAGE_COMBOBOX_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698