OLD | NEW |
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_TABLE_NATIVE_TABLE_WIN_H_ | 5 #ifndef VIEWS_CONTROLS_TABLE_NATIVE_TABLE_WIN_H_ |
6 #define VIEWS_CONTROLS_TABLE_NATIVE_TABLE_WIN_H_ | 6 #define VIEWS_CONTROLS_TABLE_NATIVE_TABLE_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <windows.h> | 9 #include <windows.h> |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // changed. | 67 // changed. |
68 virtual void OnSelectedStateChanged(); | 68 virtual void OnSelectedStateChanged(); |
69 | 69 |
70 // Notification from the ListView that the used double clicked the table. | 70 // Notification from the ListView that the used double clicked the table. |
71 virtual void OnDoubleClick(); | 71 virtual void OnDoubleClick(); |
72 | 72 |
73 // Notification from the ListView that the user middle clicked the table. | 73 // Notification from the ListView that the user middle clicked the table. |
74 virtual void OnMiddleClick(); | 74 virtual void OnMiddleClick(); |
75 | 75 |
76 // Overridden from NativeControl. Notifies the observer. | 76 // Overridden from NativeControl. Notifies the observer. |
77 virtual bool OnKeyDown(app::KeyboardCode virtual_keycode); | 77 virtual bool OnKeyDown(base::KeyboardCode virtual_keycode); |
78 | 78 |
79 // Custom drawing of our icons. | 79 // Custom drawing of our icons. |
80 LRESULT OnCustomDraw(NMLVCUSTOMDRAW* draw_info); | 80 LRESULT OnCustomDraw(NMLVCUSTOMDRAW* draw_info); |
81 | 81 |
82 void UpdateListViewCache(int start, int length, bool add); | 82 void UpdateListViewCache(int start, int length, bool add); |
83 | 83 |
84 void UpdateContentOffset(); | 84 void UpdateContentOffset(); |
85 | 85 |
86 // Window procedure of the list view class. We subclass the list view to | 86 // Window procedure of the list view class. We subclass the list view to |
87 // ignore WM_ERASEBKGND, which gives smoother painting during resizing. | 87 // ignore WM_ERASEBKGND, which gives smoother painting during resizing. |
(...skipping 30 matching lines...) Expand all Loading... |
118 | 118 |
119 // Size (width and height) of images. | 119 // Size (width and height) of images. |
120 static const int kImageSize; | 120 static const int kImageSize; |
121 | 121 |
122 DISALLOW_COPY_AND_ASSIGN(NativeTableWin); | 122 DISALLOW_COPY_AND_ASSIGN(NativeTableWin); |
123 }; | 123 }; |
124 | 124 |
125 } // namespace views | 125 } // namespace views |
126 | 126 |
127 #endif // VIEWS_CONTROLS_TABLE_NATIVE_TABLE_WIN_H_ | 127 #endif // VIEWS_CONTROLS_TABLE_NATIVE_TABLE_WIN_H_ |
OLD | NEW |