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

Side by Side Diff: chrome/browser/ui/gtk/importer/import_dialog_gtk.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_IMPORTER_IMPORT_DIALOG_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_IMPORTER_IMPORT_DIALOG_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_IMPORTER_IMPORT_DIALOG_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_IMPORTER_IMPORT_DIALOG_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "chrome/browser/importer/importer.h" 11 #include "chrome/browser/importer/importer.h"
12 #include "chrome/browser/importer/importer_observer.h" 12 #include "chrome/browser/importer/importer_observer.h"
13 #include "ui/base/gtk/gtk_signal.h" 13 #include "ui/base/gtk/gtk_signal.h"
14 14
15 class Profile; 15 class Profile;
16 16
17 class ImportDialogGtk : public ImporterList::Observer, 17 class ImportDialogGtk : public ImporterList::Observer,
18 public ImporterObserver { 18 public ImporterObserver {
19 public: 19 public:
20 // Displays the import box to import data from another browser into |profile| 20 // Displays the import box to import data from another browser into |profile|
21 // |initial_state| is a bitmask of ImportItems. Each checkbox for the bits in 21 // |initial_state| is a bitmask of ImportItems. Each checkbox for the bits in
22 // is checked. 22 // is checked.
23 static void Show(GtkWindow* parent, Profile* profile, uint16 initial_state); 23 static void Show(GtkWindow* parent, Profile* profile, uint16 initial_state);
24 24
25 private: 25 private:
26 ImportDialogGtk(GtkWindow* parent, Profile* profile, uint16 initial_state); 26 ImportDialogGtk(GtkWindow* parent, Profile* profile, uint16 initial_state);
27 virtual ~ImportDialogGtk(); 27 virtual ~ImportDialogGtk();
28 28
29 // Handler to respond to OK or Cancel responses from the dialog. 29 // Handler to respond to OK or Cancel responses from the dialog.
30 CHROMEGTK_CALLBACK_1(ImportDialogGtk, void, OnDialogResponse, int); 30 CHROMEGTK_CALLBACK_1(ImportDialogGtk, void, OnResponse, int);
31 31
32 // Handler to respond to widget clicked actions from the dialog. 32 // Handler to respond to widget clicked actions from the dialog.
33 CHROMEGTK_CALLBACK_0(ImportDialogGtk, void, OnDialogWidgetClicked); 33 CHROMEGTK_CALLBACK_0(ImportDialogGtk, void, OnDialogWidgetClicked);
34 34
35 // Enable or disable the dialog buttons depending on the state of the 35 // Enable or disable the dialog buttons depending on the state of the
36 // checkboxes. 36 // checkboxes.
37 void UpdateDialogButtons(); 37 void UpdateDialogButtons();
38 38
39 // Sets the sensitivity of all controls on the dialog except the cancel 39 // Sets the sensitivity of all controls on the dialog except the cancel
40 // button. 40 // button.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // Enumerates the source profiles. 83 // Enumerates the source profiles.
84 scoped_refptr<ImporterList> importer_list_; 84 scoped_refptr<ImporterList> importer_list_;
85 85
86 // Initial state of the |checkbox_items_|. 86 // Initial state of the |checkbox_items_|.
87 uint16 initial_state_; 87 uint16 initial_state_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(ImportDialogGtk); 89 DISALLOW_COPY_AND_ASSIGN(ImportDialogGtk);
90 }; 90 };
91 91
92 #endif // CHROME_BROWSER_UI_GTK_IMPORTER_IMPORT_DIALOG_GTK_H_ 92 #endif // CHROME_BROWSER_UI_GTK_IMPORTER_IMPORT_DIALOG_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698