| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_VIEWS_NATIVE_CONTROL_H__ | 5 #ifndef CHROME_VIEWS_NATIVE_CONTROL_H__ |
| 6 #define CHROME_VIEWS_NATIVE_CONTROL_H__ | 6 #define CHROME_VIEWS_NATIVE_CONTROL_H__ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include "chrome/views/view.h" | 10 #include "chrome/views/view.h" |
| 11 | 11 |
| 12 namespace views { | 12 namespace views { |
| 13 | 13 |
| 14 class HWNDView; | 14 class HWNDView; |
| 15 class NativeControlContainer; | 15 class NativeControlContainer; |
| 16 class RootView; | |
| 17 | 16 |
| 18 //////////////////////////////////////////////////////////////////////////////// | 17 //////////////////////////////////////////////////////////////////////////////// |
| 19 // | 18 // |
| 20 // NativeControl is an abstract view that is used to implement views wrapping | 19 // NativeControl is an abstract view that is used to implement views wrapping |
| 21 // native controls. Subclasses can simply implement CreateNativeControl() to | 20 // native controls. Subclasses can simply implement CreateNativeControl() to |
| 22 // wrap a new kind of control | 21 // wrap a new kind of control |
| 23 // | 22 // |
| 24 //////////////////////////////////////////////////////////////////////////////// | 23 //////////////////////////////////////////////////////////////////////////////// |
| 25 class NativeControl : public View { | 24 class NativeControl : public View { |
| 26 public: | 25 public: |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 117 |
| 119 private: | 118 private: |
| 120 | 119 |
| 121 void ValidateNativeControl(); | 120 void ValidateNativeControl(); |
| 122 | 121 |
| 123 static LRESULT CALLBACK NativeControlWndProc(HWND window, UINT message, | 122 static LRESULT CALLBACK NativeControlWndProc(HWND window, UINT message, |
| 124 WPARAM w_param, LPARAM l_param); | 123 WPARAM w_param, LPARAM l_param); |
| 125 | 124 |
| 126 NativeControlContainer* container_; | 125 NativeControlContainer* container_; |
| 127 | 126 |
| 128 DISALLOW_EVIL_CONSTRUCTORS(NativeControl); | 127 DISALLOW_COPY_AND_ASSIGN(NativeControl); |
| 129 }; | 128 }; |
| 130 | 129 |
| 131 } // namespace views | 130 } // namespace views |
| 132 | 131 |
| 133 #endif // CHROME_VIEWS_NATIVE_CONTROL_H__ | 132 #endif // CHROME_VIEWS_NATIVE_CONTROL_H__ |
| 134 | |
| OLD | NEW |