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 #include "views/controls/table/native_table_gtk.h" | 5 #include "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 "gfx/gtk_util.h" | |
12 #include "third_party/skia/include/core/SkBitmap.h" | 11 #include "third_party/skia/include/core/SkBitmap.h" |
| 12 #include "ui/gfx/gtk_util.h" |
13 #include "views/controls/table/table_view2.h" | 13 #include "views/controls/table/table_view2.h" |
14 #include "views/controls/table/table_view_observer.h" | 14 #include "views/controls/table/table_view_observer.h" |
15 #include "views/widget/widget.h" | 15 #include "views/widget/widget.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) |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 SkBitmap icon = table_->model()->GetIcon(row); | 361 SkBitmap icon = table_->model()->GetIcon(row); |
362 return gfx::GdkPixbufFromSkBitmap(&icon); | 362 return gfx::GdkPixbufFromSkBitmap(&icon); |
363 } | 363 } |
364 | 364 |
365 // static | 365 // static |
366 NativeTableWrapper* NativeTableWrapper::CreateNativeWrapper(TableView2* table) { | 366 NativeTableWrapper* NativeTableWrapper::CreateNativeWrapper(TableView2* table) { |
367 return new NativeTableGtk(table); | 367 return new NativeTableGtk(table); |
368 } | 368 } |
369 | 369 |
370 } // namespace views | 370 } // namespace views |
OLD | NEW |