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

Side by Side Diff: chrome/browser/ui/gtk/crypto_module_password_dialog.cc

Issue 8536036: Devirtualize CHROMEGTK_CALLBACK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 #include "chrome/browser/ui/crypto_module_password_dialog.h" 5 #include "chrome/browser/ui/crypto_module_password_dialog.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // TODO(mattm): change into a constrained dialog. 87 // TODO(mattm): change into a constrained dialog.
88 class CryptoModulePasswordDialog { 88 class CryptoModulePasswordDialog {
89 public: 89 public:
90 CryptoModulePasswordDialog( 90 CryptoModulePasswordDialog(
91 const std::string& slot_name, 91 const std::string& slot_name,
92 bool retry, 92 bool retry,
93 browser::CryptoModulePasswordReason reason, 93 browser::CryptoModulePasswordReason reason,
94 const std::string& server, 94 const std::string& server,
95 const browser::CryptoModulePasswordCallback& callback); 95 const browser::CryptoModulePasswordCallback& callback);
96 96
97 virtual ~CryptoModulePasswordDialog() {} 97 ~CryptoModulePasswordDialog() {}
98 98
99 void Show(); 99 void Show();
100 100
101 private: 101 private:
102 CHROMEGTK_CALLBACK_1(CryptoModulePasswordDialog, void, OnResponse, int); 102 CHROMEGTK_CALLBACK_1(CryptoModulePasswordDialog, void, OnResponse, int);
103 CHROMEGTK_CALLBACK_0(CryptoModulePasswordDialog, void, OnWindowDestroy); 103 CHROMEGTK_CALLBACK_0(CryptoModulePasswordDialog, void, OnWindowDestroy);
104 104
105 browser::CryptoModulePasswordCallback callback_; 105 browser::CryptoModulePasswordCallback callback_;
106 106
107 GtkWidget* dialog_; 107 GtkWidget* dialog_;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 } 229 }
230 230
231 crypto::CryptoModuleBlockingPasswordDelegate* 231 crypto::CryptoModuleBlockingPasswordDelegate*
232 NewCryptoModuleBlockingDialogDelegate( 232 NewCryptoModuleBlockingDialogDelegate(
233 CryptoModulePasswordReason reason, 233 CryptoModulePasswordReason reason,
234 const std::string& server) { 234 const std::string& server) {
235 return new CryptoModuleBlockingDialogDelegate(reason, server); 235 return new CryptoModuleBlockingDialogDelegate(reason, server);
236 } 236 }
237 237
238 } // namespace browser 238 } // namespace browser
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/avatar_menu_button_gtk.h ('k') | chrome/browser/ui/gtk/download/download_in_progress_dialog_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698