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

Side by Side Diff: views/controls/combobox/combobox.h

Issue 6192007: Remove wstring from views. Part 3: Switch accessibility strings to string16.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « views/controls/button/text_button.cc ('k') | views/controls/combobox/combobox.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ 5 #ifndef VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_
6 #define VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ 6 #define VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // Accessor for |model_|. 55 // Accessor for |model_|.
56 ComboboxModel* model() const { return model_; } 56 ComboboxModel* model() const { return model_; }
57 57
58 // Overridden from View: 58 // Overridden from View:
59 virtual gfx::Size GetPreferredSize(); 59 virtual gfx::Size GetPreferredSize();
60 virtual void Layout(); 60 virtual void Layout();
61 virtual void SetEnabled(bool enabled); 61 virtual void SetEnabled(bool enabled);
62 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e); 62 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e);
63 virtual void PaintFocusBorder(gfx::Canvas* canvas); 63 virtual void PaintFocusBorder(gfx::Canvas* canvas);
64 virtual AccessibilityTypes::Role GetAccessibleRole(); 64 virtual AccessibilityTypes::Role GetAccessibleRole() OVERRIDE;
65 virtual std::wstring GetAccessibleValue(); 65 virtual string16 GetAccessibleValue() OVERRIDE;
66 66
67 protected: 67 protected:
68 virtual void Focus(); 68 virtual void Focus();
69 virtual void ViewHierarchyChanged(bool is_add, View* parent, 69 virtual void ViewHierarchyChanged(bool is_add, View* parent,
70 View* child); 70 View* child);
71 virtual std::string GetClassName() const; 71 virtual std::string GetClassName() const;
72 72
73 // The object that actually implements the native combobox. 73 // The object that actually implements the native combobox.
74 NativeComboboxWrapper* native_wrapper_; 74 NativeComboboxWrapper* native_wrapper_;
75 75
76 private: 76 private:
77 // Our model. 77 // Our model.
78 ComboboxModel* model_; 78 ComboboxModel* model_;
79 79
80 // Item change listener. 80 // Item change listener.
81 Listener* listener_; 81 Listener* listener_;
82 82
83 // The current selection. 83 // The current selection.
84 int selected_item_; 84 int selected_item_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(Combobox); 86 DISALLOW_COPY_AND_ASSIGN(Combobox);
87 }; 87 };
88 88
89 } // namespace views 89 } // namespace views
90 90
91 #endif // VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ 91 #endif // VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_
OLDNEW
« no previous file with comments | « views/controls/button/text_button.cc ('k') | views/controls/combobox/combobox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698