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

Unified Diff: views/controls/table/native_table_wrapper.h

Issue 8655001: views: Move table and tree directories to ui/views/controls/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: exclude native_widget_win_unittest too Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/controls/table/native_table_win.cc ('k') | views/controls/table/table_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/table/native_table_wrapper.h
diff --git a/views/controls/table/native_table_wrapper.h b/views/controls/table/native_table_wrapper.h
deleted file mode 100644
index 5b331b413d4460ab15100b038ab2f4233b929cff..0000000000000000000000000000000000000000
--- a/views/controls/table/native_table_wrapper.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef VIEWS_CONTROLS_TABLE_NATIVE_TABLE_WRAPPER_H_
-#define VIEWS_CONTROLS_TABLE_NATIVE_TABLE_WRAPPER_H_
-#pragma once
-
-#include "ui/gfx/native_widget_types.h"
-
-namespace ui {
-struct TableColumn;
-}
-
-namespace views {
-
-class TableView2;
-class View;
-
-// An interface implemented by an object that provides a platform-native
-// table.
-class NativeTableWrapper {
- public:
- // Returns the number of rows in the table.
- virtual int GetRowCount() const = 0;
-
- // Inserts/removes a column at the specified index.
- virtual void InsertColumn(const ui::TableColumn& column, int index) = 0;
- virtual void RemoveColumn(int index) = 0;
-
- // Returns the number of rows that are selected.
- virtual int GetSelectedRowCount() const = 0;
-
- // Returns the first row that is selected/focused in terms of the model.
- virtual int GetFirstSelectedRow() const = 0;
- virtual int GetFirstFocusedRow() const = 0;
-
- // Unselect all rows.
- virtual void ClearSelection() = 0;
-
- virtual void ClearRowFocus() = 0;
-
- virtual void SetSelectedState(int model_row, bool state) = 0;
-
- virtual void SetFocusState(int model_row, bool state) = 0;
-
- // Returns true if the row at the specified index is selected.
- virtual bool IsRowSelected(int model_row) const = 0;
-
- // Returns true if the row at the specified index has the focus.
- virtual bool IsRowFocused(int model_row) const = 0;
-
- // Retrieves the views::View that hosts the native control.
- virtual View* GetView() = 0;
-
- // Sets the focus to the table.
- virtual void SetFocus() = 0;
-
- // Returns a handle to the underlying native view for testing.
- virtual gfx::NativeView GetTestingHandle() const = 0;
-
- // Gets/sets the columns width.
- virtual int GetColumnWidth(int column_index) const = 0;
- virtual void SetColumnWidth(int column_index, int width) = 0;
-
- // Called by the table view to indicate that some rows have changed, been
- // added or been removed.
- virtual void OnRowsChanged(int start, int length) = 0;
- virtual void OnRowsAdded(int start, int length) = 0;
- virtual void OnRowsRemoved(int start, int length) = 0;
-
- // Returns the bounds of the native table.
- virtual gfx::Rect GetBounds() const = 0;
-
- // Creates an appropriate NativeTableWrapper for the platform.
- static NativeTableWrapper* CreateNativeWrapper(TableView2* table);
-
- protected:
- virtual ~NativeTableWrapper() {}
-};
-
-} // namespace views
-
-#endif // VIEWS_CONTROLS_TABLE_NATIVE_TABLE_WRAPPER_H_
« no previous file with comments | « views/controls/table/native_table_win.cc ('k') | views/controls/table/table_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698