OLD | NEW |
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 #include "views/controls/table/native_table_gtk.h" | 5 #include "ui/views/controls/table/native_table_gtk.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "third_party/skia/include/core/SkBitmap.h" | 11 #include "third_party/skia/include/core/SkBitmap.h" |
12 #include "ui/gfx/gtk_util.h" | 12 #include "ui/gfx/gtk_util.h" |
| 13 #include "ui/views/controls/table/table_view2.h" |
| 14 #include "ui/views/controls/table/table_view_observer.h" |
13 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
14 #include "views/controls/table/table_view2.h" | |
15 #include "views/controls/table/table_view_observer.h" | |
16 | 16 |
17 namespace views { | 17 namespace views { |
18 | 18 |
19 //////////////////////////////////////////////////////////////////////////////// | 19 //////////////////////////////////////////////////////////////////////////////// |
20 // NativeTableGtk, public: | 20 // NativeTableGtk, public: |
21 | 21 |
22 NativeTableGtk::NativeTableGtk(TableView2* table) | 22 NativeTableGtk::NativeTableGtk(TableView2* table) |
23 : table_(table), | 23 : table_(table), |
24 gtk_model_(NULL), | 24 gtk_model_(NULL), |
25 tree_view_(NULL), | 25 tree_view_(NULL), |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 SkBitmap icon = table_->model()->GetIcon(row); | 362 SkBitmap icon = table_->model()->GetIcon(row); |
363 return gfx::GdkPixbufFromSkBitmap(&icon); | 363 return gfx::GdkPixbufFromSkBitmap(&icon); |
364 } | 364 } |
365 | 365 |
366 // static | 366 // static |
367 NativeTableWrapper* NativeTableWrapper::CreateNativeWrapper(TableView2* table) { | 367 NativeTableWrapper* NativeTableWrapper::CreateNativeWrapper(TableView2* table) { |
368 return new NativeTableGtk(table); | 368 return new NativeTableGtk(table); |
369 } | 369 } |
370 | 370 |
371 } // namespace views | 371 } // namespace views |
OLD | NEW |