OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_INPUT_WINDOW_DIALOG_GTK_H_ | |
6 #define CHROME_BROWSER_UI_INPUT_WINDOW_DIALOG_GTK_H_ | |
7 #pragma once | |
8 | |
9 #include <gtk/gtk.h> | |
10 #include "base/memory/scoped_ptr.h" | |
tfarina
2011/10/15 03:55:14
please add a blank line above.
mazda
2011/10/17 17:52:25
Done.
| |
11 #include "chrome/browser/ui/input_window_dialog.h" | |
12 #include "ui/base/gtk/gtk_signal.h" | |
13 | |
14 class InputWindowDialogGtk : public InputWindowDialog { | |
15 public: | |
16 // Creates a dialog. Takes ownership of |delegate|. | |
17 InputWindowDialogGtk(GtkWindow* parent, | |
18 const std::string& window_title, | |
tfarina
2011/10/15 03:55:14
include <string>
mazda
2011/10/17 17:52:25
Done.
| |
19 const std::string& label, | |
20 const std::string& contents, | |
21 Delegate* delegate); | |
22 virtual ~InputWindowDialogGtk(); | |
23 | |
24 virtual void Show(); | |
25 virtual void Close(); | |
26 | |
27 private: | |
28 CHROMEG_CALLBACK_0(InputWindowDialogGtk, void, OnEntryChanged, GtkEditable*); | |
29 CHROMEGTK_CALLBACK_1(InputWindowDialogGtk, void, OnResponse, int); | |
30 CHROMEGTK_CALLBACK_1(InputWindowDialogGtk, gboolean, | |
31 OnWindowDeleteEvent, GdkEvent*); | |
32 CHROMEGTK_CALLBACK_0(InputWindowDialogGtk, void, OnWindowDestroy); | |
33 | |
34 // The underlying gtk dialog window. | |
35 GtkWidget* dialog_; | |
36 | |
37 // The GtkEntry in this form. | |
38 GtkWidget* input_; | |
39 | |
40 // Our delegate. Consumes the window's output. | |
41 scoped_ptr<InputWindowDialog::Delegate> delegate_; | |
42 }; | |
tfarina
2011/10/15 03:55:14
DISALLOW_ and basictypes.h for it.
mazda
2011/10/17 17:52:25
Done.
| |
43 | |
44 #endif // CHROME_BROWSER_UI_INPUT_WINDOW_DIALOG_GTK_H_ | |
OLD | NEW |