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

Side by Side Diff: chrome/browser/ui/gtk/clear_browsing_data_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_CLEAR_BROWSING_DATA_DIALOG_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_CLEAR_BROWSING_DATA_DIALOG_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_CLEAR_BROWSING_DATA_DIALOG_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_CLEAR_BROWSING_DATA_DIALOG_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
11 #include "ui/base/gtk/gtk_signal.h" 11 #include "ui/base/gtk/gtk_signal.h"
12 12
13 typedef struct _GtkWidget GtkWidget; 13 typedef struct _GtkWidget GtkWidget;
14 typedef struct _GtkWindow GtkWindow; 14 typedef struct _GtkWindow GtkWindow;
15 15
16 class BrowsingDataRemover; 16 class BrowsingDataRemover;
17 class Profile; 17 class Profile;
18 18
19 class ClearBrowsingDataDialogGtk { 19 class ClearBrowsingDataDialogGtk {
20 public: 20 public:
21 // Displays the dialog box to clear browsing data from |profile|. 21 // Displays the dialog box to clear browsing data from |profile|.
22 static void Show(GtkWindow* parent, Profile* profile); 22 static void Show(GtkWindow* parent, Profile* profile);
23 23
24 private: 24 private:
25 ClearBrowsingDataDialogGtk(GtkWindow* parent, Profile* profile); 25 ClearBrowsingDataDialogGtk(GtkWindow* parent, Profile* profile);
26 ~ClearBrowsingDataDialogGtk(); 26 ~ClearBrowsingDataDialogGtk();
27 27
28 // Handler to respond to Ok and Cancel responses from the dialog. 28 // Handler to respond to OK and Cancel responses from the dialog.
29 CHROMEGTK_CALLBACK_1(ClearBrowsingDataDialogGtk, void, OnDialogResponse, int); 29 CHROMEGTK_CALLBACK_1(ClearBrowsingDataDialogGtk, void, OnResponse, int);
30 30
31 // Handler to respond to widget clicked actions from the dialog. 31 // Handler to respond to widget clicked actions from the dialog.
32 CHROMEGTK_CALLBACK_0(ClearBrowsingDataDialogGtk, void, OnDialogWidgetClicked); 32 CHROMEGTK_CALLBACK_0(ClearBrowsingDataDialogGtk, void, OnDialogWidgetClicked);
33 33
34 CHROMEGTK_CALLBACK_0(ClearBrowsingDataDialogGtk, void, OnFlashLinkClicked); 34 CHROMEGTK_CALLBACK_0(ClearBrowsingDataDialogGtk, void, OnFlashLinkClicked);
35 35
36 // Enable or disable the dialog buttons depending on the state of the 36 // Enable or disable the dialog buttons depending on the state of the
37 // checkboxes. 37 // checkboxes.
38 void UpdateDialogButtons(); 38 void UpdateDialogButtons();
39 39
(...skipping 17 matching lines...) Expand all
57 57
58 // If non-null it means removal is in progress. BrowsingDataRemover takes care 58 // If non-null it means removal is in progress. BrowsingDataRemover takes care
59 // of deleting itself when done. 59 // of deleting itself when done.
60 BrowsingDataRemover* remover_; 60 BrowsingDataRemover* remover_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(ClearBrowsingDataDialogGtk); 62 DISALLOW_COPY_AND_ASSIGN(ClearBrowsingDataDialogGtk);
63 }; 63 };
64 64
65 65
66 #endif // CHROME_BROWSER_UI_GTK_CLEAR_BROWSING_DATA_DIALOG_GTK_H_ 66 #endif // CHROME_BROWSER_UI_GTK_CLEAR_BROWSING_DATA_DIALOG_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698