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

Side by Side Diff: chrome/browser/ui/gtk/edit_search_engine_dialog.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_EDIT_SEARCH_ENGINE_DIALOG_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_EDIT_SEARCH_ENGINE_DIALOG_H_
6 #define CHROME_BROWSER_UI_GTK_EDIT_SEARCH_ENGINE_DIALOG_H_ 6 #define CHROME_BROWSER_UI_GTK_EDIT_SEARCH_ENGINE_DIALOG_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 #include <string> 10 #include <string>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // Updates the tooltip and image of the image view based on is_valid. If 42 // Updates the tooltip and image of the image view based on is_valid. If
43 // is_valid is false the tooltip of the image view is set to the message with 43 // is_valid is false the tooltip of the image view is set to the message with
44 // id invalid_message_id, otherwise the tooltip is set to the empty text. 44 // id invalid_message_id, otherwise the tooltip is set to the empty text.
45 void UpdateImage(GtkWidget* image, bool is_valid, int invalid_message_id); 45 void UpdateImage(GtkWidget* image, bool is_valid, int invalid_message_id);
46 46
47 // Callback for entry changes. 47 // Callback for entry changes.
48 CHROMEG_CALLBACK_0(EditSearchEngineDialog, void, OnEntryChanged, 48 CHROMEG_CALLBACK_0(EditSearchEngineDialog, void, OnEntryChanged,
49 GtkEditable*); 49 GtkEditable*);
50 50
51 // Callback for dialog buttons. 51 // Callback for dialog buttons.
52 CHROMEG_CALLBACK_1(EditSearchEngineDialog, void, OnResponse, GtkDialog*, int); 52 CHROMEGTK_CALLBACK_1(EditSearchEngineDialog, void, OnResponse, int);
53 53
54 // Callback for window destruction. 54 // Callback for window destruction.
55 CHROMEGTK_CALLBACK_0(EditSearchEngineDialog, void, OnWindowDestroy); 55 CHROMEGTK_CALLBACK_0(EditSearchEngineDialog, void, OnWindowDestroy);
56 56
57 // The dialog window. 57 // The dialog window.
58 GtkWidget* dialog_; 58 GtkWidget* dialog_;
59 59
60 // Text entries for each field. 60 // Text entries for each field.
61 GtkWidget* title_entry_; 61 GtkWidget* title_entry_;
62 GtkWidget* keyword_entry_; 62 GtkWidget* keyword_entry_;
63 GtkWidget* url_entry_; 63 GtkWidget* url_entry_;
64 64
65 // Images showing whether each entry is okay or has errors. 65 // Images showing whether each entry is okay or has errors.
66 GtkWidget* title_image_; 66 GtkWidget* title_image_;
67 GtkWidget* keyword_image_; 67 GtkWidget* keyword_image_;
68 GtkWidget* url_image_; 68 GtkWidget* url_image_;
69 69
70 // The ok button (we need a reference to it so we can de-activate it when the 70 // The ok button (we need a reference to it so we can de-activate it when the
71 // entries are not all filled in.) 71 // entries are not all filled in.)
72 GtkWidget* ok_button_; 72 GtkWidget* ok_button_;
73 73
74 scoped_ptr<EditSearchEngineController> controller_; 74 scoped_ptr<EditSearchEngineController> controller_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(EditSearchEngineDialog); 76 DISALLOW_COPY_AND_ASSIGN(EditSearchEngineDialog);
77 }; 77 };
78 78
79 #endif // CHROME_BROWSER_UI_GTK_EDIT_SEARCH_ENGINE_DIALOG_H_ 79 #endif // CHROME_BROWSER_UI_GTK_EDIT_SEARCH_ENGINE_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698