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

Side by Side Diff: chrome/views/controls/button/native_button_win.h

Issue 42582: Making the enabled and visible states work in native buttons (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #ifndef CHROME_VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WIN_H_ 5 #ifndef CHROME_VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WIN_H_
6 #define CHROME_VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WIN_H_ 6 #define CHROME_VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WIN_H_
7 7
8 #include "chrome/views/controls/native_control_win.h" 8 #include "chrome/views/controls/native_control_win.h"
9 #include "chrome/views/controls/button/native_button_wrapper.h" 9 #include "chrome/views/controls/button/native_button_wrapper.h"
10 10
11 namespace views { 11 namespace views {
12 12
13 // A View that hosts a native Windows button. 13 // A View that hosts a native Windows button.
14 class NativeButtonWin : public NativeControlWin, 14 class NativeButtonWin : public NativeControlWin,
15 public NativeButtonWrapper { 15 public NativeButtonWrapper {
16 public: 16 public:
17 explicit NativeButtonWin(NativeButton* native_button); 17 explicit NativeButtonWin(NativeButton* native_button);
18 virtual ~NativeButtonWin(); 18 virtual ~NativeButtonWin();
19 19
20 // Overridden from NativeButtonWrapper: 20 // Overridden from NativeButtonWrapper:
21 virtual void UpdateLabel(); 21 virtual void UpdateLabel();
22 virtual void UpdateFont(); 22 virtual void UpdateFont();
23 virtual void UpdateEnabled();
23 virtual void UpdateDefault(); 24 virtual void UpdateDefault();
24 virtual View* GetView(); 25 virtual View* GetView();
25 virtual void SetFocus(); 26 virtual void SetFocus();
26 27
27 // Overridden from View: 28 // Overridden from View:
28 virtual gfx::Size GetPreferredSize(); 29 virtual gfx::Size GetPreferredSize();
29 30
30 // Overridden from NativeControlWin: 31 // Overridden from NativeControlWin:
31 virtual LRESULT ProcessMessage(UINT message, 32 virtual LRESULT ProcessMessage(UINT message,
32 WPARAM w_param, 33 WPARAM w_param,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // Overridden from NativeCheckboxWin: 90 // Overridden from NativeCheckboxWin:
90 virtual void CreateNativeControl(); 91 virtual void CreateNativeControl();
91 92
92 private: 93 private:
93 DISALLOW_COPY_AND_ASSIGN(NativeRadioButtonWin); 94 DISALLOW_COPY_AND_ASSIGN(NativeRadioButtonWin);
94 }; 95 };
95 96
96 } // namespace views 97 } // namespace views
97 98
98 #endif // #ifndef CHROME_VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WIN_H_ 99 #endif // #ifndef CHROME_VIEWS_CONTROLS_BUTTON_NATIVE_BUTTON_WIN_H_
OLDNEW
« no previous file with comments | « chrome/views/controls/button/native_button.cc ('k') | chrome/views/controls/button/native_button_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698