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

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

Issue 9875001: views: Rename Combobox "selected getter/setter" accessors to something more accurate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: combo box -> combobox Created 8 years, 8 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_WIN_H_ 5 #ifndef UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_WIN_H_
6 #define UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_WIN_H_ 6 #define UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/views/controls/combobox/native_combobox_wrapper.h" 9 #include "ui/views/controls/combobox/native_combobox_wrapper.h"
10 #include "ui/views/controls/native_control_win.h" 10 #include "ui/views/controls/native_control_win.h"
11 11
12 namespace views { 12 namespace views {
13 13
14 class NativeComboboxWin : public NativeControlWin, 14 class NativeComboboxWin : public NativeControlWin,
15 public NativeComboboxWrapper { 15 public NativeComboboxWrapper {
16 public: 16 public:
17 explicit NativeComboboxWin(Combobox* combobox); 17 explicit NativeComboboxWin(Combobox* combobox);
18 virtual ~NativeComboboxWin(); 18 virtual ~NativeComboboxWin();
19 19
20 // Overridden from NativeComboboxWrapper: 20 // Overridden from NativeComboboxWrapper:
21 virtual void UpdateFromModel() OVERRIDE; 21 virtual void UpdateFromModel() OVERRIDE;
22 virtual void UpdateSelectedItem() OVERRIDE; 22 virtual void UpdateSelectedIndex() OVERRIDE;
23 virtual void UpdateEnabled() OVERRIDE; 23 virtual void UpdateEnabled() OVERRIDE;
24 virtual int GetSelectedItem() const OVERRIDE; 24 virtual int GetSelectedIndex() const OVERRIDE;
25 virtual bool IsDropdownOpen() const OVERRIDE; 25 virtual bool IsDropdownOpen() const OVERRIDE;
26 virtual gfx::Size GetPreferredSize() OVERRIDE; 26 virtual gfx::Size GetPreferredSize() OVERRIDE;
27 virtual View* GetView() OVERRIDE; 27 virtual View* GetView() OVERRIDE;
28 virtual void SetFocus() OVERRIDE; 28 virtual void SetFocus() OVERRIDE;
29 virtual bool HandleKeyPressed(const views::KeyEvent& event) OVERRIDE; 29 virtual bool HandleKeyPressed(const views::KeyEvent& event) OVERRIDE;
30 virtual bool HandleKeyReleased(const views::KeyEvent& event) OVERRIDE; 30 virtual bool HandleKeyReleased(const views::KeyEvent& event) OVERRIDE;
31 virtual void HandleFocus() OVERRIDE; 31 virtual void HandleFocus() OVERRIDE;
32 virtual void HandleBlur() OVERRIDE; 32 virtual void HandleBlur() OVERRIDE;
33 virtual gfx::NativeView GetTestingHandle() const OVERRIDE; 33 virtual gfx::NativeView GetTestingHandle() const OVERRIDE;
34 34
(...skipping 14 matching lines...) Expand all
49 49
50 // The min width, in pixels, for the text content. 50 // The min width, in pixels, for the text content.
51 int content_width_; 51 int content_width_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(NativeComboboxWin); 53 DISALLOW_COPY_AND_ASSIGN(NativeComboboxWin);
54 }; 54 };
55 55
56 } // namespace views 56 } // namespace views
57 57
58 #endif // UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_WIN_H_ 58 #endif // UI_VIEWS_CONTROLS_COMBOBOX_NATIVE_COMBOBOX_WIN_H_
OLDNEW
« no previous file with comments | « ui/views/controls/combobox/native_combobox_views_unittest.cc ('k') | ui/views/controls/combobox/native_combobox_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698