| 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 #ifndef CHROME_BROWSER_GTK_KEYWORD_EDITOR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_GTK_KEYWORD_EDITOR_VIEW_H_ | 
| 6 #define CHROME_BROWSER_GTK_KEYWORD_EDITOR_VIEW_H_ | 6 #define CHROME_BROWSER_GTK_KEYWORD_EDITOR_VIEW_H_ | 
| 7 | 7 | 
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> | 
| 9 | 9 | 
| 10 #include "app/table_model_observer.h" | 10 #include "app/table_model_observer.h" | 
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 97 | 97 | 
| 98   // Callback checking whether a row may be selected.  We use some rows in the | 98   // Callback checking whether a row may be selected.  We use some rows in the | 
| 99   // table as headers/separators for the groups, which should not be selectable. | 99   // table as headers/separators for the groups, which should not be selectable. | 
| 100   static gboolean OnSelectionFilter(GtkTreeSelection* selection, | 100   static gboolean OnSelectionFilter(GtkTreeSelection* selection, | 
| 101                                     GtkTreeModel* model, | 101                                     GtkTreeModel* model, | 
| 102                                     GtkTreePath* path, | 102                                     GtkTreePath* path, | 
| 103                                     gboolean path_currently_selected, | 103                                     gboolean path_currently_selected, | 
| 104                                     gpointer user_data); | 104                                     gpointer user_data); | 
| 105 | 105 | 
| 106   // Callback for when user selects something. | 106   // Callback for when user selects something. | 
| 107   static void OnSelectionChanged(GtkTreeSelection *selection, | 107   static void OnSelectionChanged(GtkTreeSelection* selection, | 
| 108                                  KeywordEditorView* editor); | 108                                  KeywordEditorView* editor); | 
| 109 | 109 | 
| 110   // Callbacks for user actions modifying the table. | 110   // Callbacks for user actions modifying the table. | 
| 111   static void OnRowActivated(GtkTreeView* tree_view, | 111   static void OnRowActivated(GtkTreeView* tree_view, | 
| 112                              GtkTreePath* path, | 112                              GtkTreePath* path, | 
| 113                              GtkTreeViewColumn* column, | 113                              GtkTreeViewColumn* column, | 
| 114                              KeywordEditorView* editor); | 114                              KeywordEditorView* editor); | 
| 115   static void OnAddButtonClicked(GtkButton* button, | 115   static void OnAddButtonClicked(GtkButton* button, | 
| 116                                  KeywordEditorView* editor); | 116                                  KeywordEditorView* editor); | 
| 117   static void OnEditButtonClicked(GtkButton* button, | 117   static void OnEditButtonClicked(GtkButton* button, | 
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 155   FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, Empty); | 155   FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, Empty); | 
| 156   FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, Add); | 156   FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, Add); | 
| 157   FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, MakeDefault); | 157   FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, MakeDefault); | 
| 158   FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, Remove); | 158   FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, Remove); | 
| 159   FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, Edit); | 159   FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, Edit); | 
| 160 | 160 | 
| 161   DISALLOW_COPY_AND_ASSIGN(KeywordEditorView); | 161   DISALLOW_COPY_AND_ASSIGN(KeywordEditorView); | 
| 162 }; | 162 }; | 
| 163 | 163 | 
| 164 #endif  // CHROME_BROWSER_GTK_KEYWORD_EDITOR_VIEW_H_ | 164 #endif  // CHROME_BROWSER_GTK_KEYWORD_EDITOR_VIEW_H_ | 
| OLD | NEW | 
|---|