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

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

Issue 6627038: gtk: Rename OnDialogResponse() to OnResponse() to standardize on a consistent naming scheme. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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
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_KEYWORD_EDITOR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_KEYWORD_EDITOR_VIEW_H_
6 #define CHROME_BROWSER_UI_GTK_KEYWORD_EDITOR_VIEW_H_ 6 #define CHROME_BROWSER_UI_GTK_KEYWORD_EDITOR_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/scoped_ptr.h" 13 #include "base/scoped_ptr.h"
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "chrome/browser/search_engines/template_url_model_observer.h" 15 #include "chrome/browser/search_engines/template_url_model_observer.h"
16 #include "chrome/browser/ui/search_engines/edit_search_engine_controller.h" 16 #include "chrome/browser/ui/search_engines/edit_search_engine_controller.h"
17 #include "ui/base/gtk/gtk_signal.h"
17 #include "ui/base/models/table_model_observer.h" 18 #include "ui/base/models/table_model_observer.h"
18 19
19 class KeywordEditorController; 20 class KeywordEditorController;
20 class Profile; 21 class Profile;
21 class TemplateURLTableModel; 22 class TemplateURLTableModel;
22 23
23 class KeywordEditorView : public ui::TableModelObserver, 24 class KeywordEditorView : public ui::TableModelObserver,
24 public TemplateURLModelObserver, 25 public TemplateURLModelObserver,
25 public EditSearchEngineControllerDelegate { 26 public EditSearchEngineControllerDelegate {
26 public: 27 public:
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 virtual void OnItemsAdded(int start, int length); 83 virtual void OnItemsAdded(int start, int length);
83 virtual void OnItemsRemoved(int start, int length); 84 virtual void OnItemsRemoved(int start, int length);
84 85
85 // TemplateURLModelObserver notification. 86 // TemplateURLModelObserver notification.
86 virtual void OnTemplateURLModelChanged(); 87 virtual void OnTemplateURLModelChanged();
87 88
88 // Callback for window destruction. 89 // Callback for window destruction.
89 static void OnWindowDestroy(GtkWidget* widget, KeywordEditorView* window); 90 static void OnWindowDestroy(GtkWidget* widget, KeywordEditorView* window);
90 91
91 // Callback for dialog buttons. 92 // Callback for dialog buttons.
92 static void OnResponse(GtkDialog* dialog, int response_id, 93 CHROMEGTK_CALLBACK_1(KeywordEditorView, void, OnResponse, int);
93 KeywordEditorView* window);
94 94
95 // Callback checking whether a row should be drawn as a separator. 95 // Callback checking whether a row should be drawn as a separator.
96 static gboolean OnCheckRowIsSeparator(GtkTreeModel* model, 96 static gboolean OnCheckRowIsSeparator(GtkTreeModel* model,
97 GtkTreeIter* iter, 97 GtkTreeIter* iter,
98 gpointer user_data); 98 gpointer user_data);
99 99
100 // Callback checking whether a row may be selected. We use some rows in the 100 // Callback checking whether a row may be selected. We use some rows in the
101 // table as headers/separators for the groups, which should not be selectable. 101 // table as headers/separators for the groups, which should not be selectable.
102 static gboolean OnSelectionFilter(GtkTreeSelection* selection, 102 static gboolean OnSelectionFilter(GtkTreeSelection* selection,
103 GtkTreeModel* model, 103 GtkTreeModel* model,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, Empty); 154 FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, Empty);
155 FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, Add); 155 FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, Add);
156 FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, MakeDefault); 156 FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, MakeDefault);
157 FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, Remove); 157 FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, Remove);
158 FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, Edit); 158 FRIEND_TEST_ALL_PREFIXES(KeywordEditorViewTest, Edit);
159 159
160 DISALLOW_COPY_AND_ASSIGN(KeywordEditorView); 160 DISALLOW_COPY_AND_ASSIGN(KeywordEditorView);
161 }; 161 };
162 162
163 #endif // CHROME_BROWSER_UI_GTK_KEYWORD_EDITOR_VIEW_H_ 163 #endif // CHROME_BROWSER_UI_GTK_KEYWORD_EDITOR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698