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

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

Issue 6976048: views: Add OnEnabledChanged() method to View class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DisableOnHover test? Created 9 years, 6 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 return native_wrapper_ ? native_wrapper_->GetTestingHandle() : NULL; 71 return native_wrapper_ ? native_wrapper_->GetTestingHandle() : NULL;
72 } 72 }
73 NativeComboboxWrapper* native_wrapper() const { 73 NativeComboboxWrapper* native_wrapper() const {
74 return native_wrapper_; 74 return native_wrapper_;
75 } 75 }
76 #endif 76 #endif
77 77
78 // Overridden from View: 78 // Overridden from View:
79 virtual gfx::Size GetPreferredSize() OVERRIDE; 79 virtual gfx::Size GetPreferredSize() OVERRIDE;
80 virtual void Layout() OVERRIDE; 80 virtual void Layout() OVERRIDE;
81 virtual void SetEnabled(bool enabled) OVERRIDE; 81 virtual void OnEnabledChanged() OVERRIDE;
82 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE; 82 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE;
83 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; 83 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE;
84 virtual bool OnKeyPressed(const views::KeyEvent& e) OVERRIDE; 84 virtual bool OnKeyPressed(const views::KeyEvent& e) OVERRIDE;
85 virtual bool OnKeyReleased(const views::KeyEvent& e) OVERRIDE; 85 virtual bool OnKeyReleased(const views::KeyEvent& e) OVERRIDE;
86 virtual void OnFocus() OVERRIDE; 86 virtual void OnFocus() OVERRIDE;
87 virtual void OnBlur() OVERRIDE; 87 virtual void OnBlur() OVERRIDE;
88 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 88 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
89 89
90 protected: 90 protected:
91 // Overridden from View: 91 // Overridden from View:
(...skipping 16 matching lines...) Expand all
108 108
109 // The accessible name of the text field. 109 // The accessible name of the text field.
110 string16 accessible_name_; 110 string16 accessible_name_;
111 111
112 DISALLOW_COPY_AND_ASSIGN(Combobox); 112 DISALLOW_COPY_AND_ASSIGN(Combobox);
113 }; 113 };
114 114
115 } // namespace views 115 } // namespace views
116 116
117 #endif // VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ 117 #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