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

Side by Side Diff: chrome/browser/ui/gtk/gtk_tree.h

Issue 8632022: Add OVERRIDE to chrome/browser/ui/gtk/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/gtk/gtk_theme_service.h ('k') | chrome/browser/ui/gtk/hover_controller_gtk.h » ('j') | 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) 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 #ifndef CHROME_BROWSER_UI_GTK_GTK_TREE_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_GTK_TREE_H_
6 #define CHROME_BROWSER_UI_GTK_GTK_TREE_H_ 6 #define CHROME_BROWSER_UI_GTK_GTK_TREE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 // Callback checking whether a row may be selected. We use some rows in the 107 // Callback checking whether a row may be selected. We use some rows in the
108 // table as headers/separators for the groups, which should not be selectable. 108 // table as headers/separators for the groups, which should not be selectable.
109 static gboolean OnSelectionFilter(GtkTreeSelection* selection, 109 static gboolean OnSelectionFilter(GtkTreeSelection* selection,
110 GtkTreeModel* model, 110 GtkTreeModel* model,
111 GtkTreePath* path, 111 GtkTreePath* path,
112 gboolean path_currently_selected, 112 gboolean path_currently_selected,
113 gpointer user_data); 113 gpointer user_data);
114 114
115 // ui::TableModelObserver implementation. 115 // ui::TableModelObserver implementation.
116 virtual void OnModelChanged(); 116 virtual void OnModelChanged() OVERRIDE;
117 virtual void OnItemsChanged(int start, int length); 117 virtual void OnItemsChanged(int start, int length) OVERRIDE;
118 virtual void OnItemsAdded(int start, int length); 118 virtual void OnItemsAdded(int start, int length) OVERRIDE;
119 virtual void OnItemsRemoved(int start, int length); 119 virtual void OnItemsRemoved(int start, int length) OVERRIDE;
120 120
121 private: 121 private:
122 // Return whether the row pointed to by |iter| is a group row, i.e. a group 122 // Return whether the row pointed to by |iter| is a group row, i.e. a group
123 // header, or a separator. 123 // header, or a separator.
124 bool IsGroupRow(GtkTreeIter* iter) const; 124 bool IsGroupRow(GtkTreeIter* iter) const;
125 125
126 // Return the index into the list store for the given model row. 126 // Return the index into the list store for the given model row.
127 int GetListStoreIndexForModelRow(int model_row) const; 127 int GetListStoreIndexForModelRow(int model_row) const;
128 128
129 // Add the values from |row| of the ui::TableModel. 129 // Add the values from |row| of the ui::TableModel.
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 GtkTreeStore* tree_store_; 204 GtkTreeStore* tree_store_;
205 ui::TreeModel* tree_model_; 205 ui::TreeModel* tree_model_;
206 std::vector<GdkPixbuf*> pixbufs_; 206 std::vector<GdkPixbuf*> pixbufs_;
207 207
208 DISALLOW_COPY_AND_ASSIGN(TreeAdapter); 208 DISALLOW_COPY_AND_ASSIGN(TreeAdapter);
209 }; 209 };
210 210
211 } // namespace gtk_tree 211 } // namespace gtk_tree
212 212
213 #endif // CHROME_BROWSER_UI_GTK_GTK_TREE_H_ 213 #endif // CHROME_BROWSER_UI_GTK_GTK_TREE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/gtk_theme_service.h ('k') | chrome/browser/ui/gtk/hover_controller_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698