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

Side by Side Diff: views/controls/table/native_table_gtk.cc

Issue 6175002: views: Implement NativeTableGtk::GetColumnWidth method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 void NativeTableGtk::InsertColumn(const TableColumn& column, int index) { 68 void NativeTableGtk::InsertColumn(const TableColumn& column, int index) {
69 NOTIMPLEMENTED(); 69 NOTIMPLEMENTED();
70 } 70 }
71 71
72 void NativeTableGtk::RemoveColumn(int index) { 72 void NativeTableGtk::RemoveColumn(int index) {
73 NOTIMPLEMENTED(); 73 NOTIMPLEMENTED();
74 } 74 }
75 75
76 int NativeTableGtk::GetColumnWidth(int column_index) const { 76 int NativeTableGtk::GetColumnWidth(int column_index) const {
77 NOTIMPLEMENTED(); 77 GtkTreeViewColumn* column = gtk_tree_view_get_column(tree_view_,
78 return -1; 78 column_index);
79 return gtk_tree_view_column_get_width(column);
79 } 80 }
80 81
81 void NativeTableGtk::SetColumnWidth(int column_index, int width) { 82 void NativeTableGtk::SetColumnWidth(int column_index, int width) {
82 NOTIMPLEMENTED(); 83 NOTIMPLEMENTED();
83 } 84 }
84 85
85 int NativeTableGtk::GetSelectedRowCount() const { 86 int NativeTableGtk::GetSelectedRowCount() const {
86 return gtk_tree_selection_count_selected_rows(tree_selection_); 87 return gtk_tree_selection_count_selected_rows(tree_selection_);
87 } 88 }
88 89
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 SkBitmap icon = table_->model()->GetIcon(row); 345 SkBitmap icon = table_->model()->GetIcon(row);
345 return gfx::GdkPixbufFromSkBitmap(&icon); 346 return gfx::GdkPixbufFromSkBitmap(&icon);
346 } 347 }
347 348
348 // static 349 // static
349 NativeTableWrapper* NativeTableWrapper::CreateNativeWrapper(TableView2* table) { 350 NativeTableWrapper* NativeTableWrapper::CreateNativeWrapper(TableView2* table) {
350 return new NativeTableGtk(table); 351 return new NativeTableGtk(table);
351 } 352 }
352 353
353 } // namespace views 354 } // namespace views
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698