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

Side by Side Diff: chrome/browser/gtk/input_window_dialog_gtk.h

Issue 2835043: Revert 52721 - Refactor the implementation of InputWindowDialog.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/gtk/input_window_dialog_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 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_GTK_INPUT_WINDOW_DIALOG_GTK_H_
6 #define CHROME_BROWSER_GTK_INPUT_WINDOW_DIALOG_GTK_H_
7
8 #include <gtk/gtk.h>
9
10 #include "app/gtk_signal.h"
11 #include "base/basictypes.h"
12 #include "base/scoped_ptr.h"
13 #include "chrome/browser/input_window_dialog.h"
14
15 class InputWindowDialogGtk : public InputWindowDialog {
16 public:
17 // Creates a dialog. Takes ownership of |delegate|.
18 InputWindowDialogGtk(GtkWindow* parent,
19 const std::string& window_title,
20 const std::string& label,
21 const std::string& contents,
22 Delegate* delegate);
23 virtual ~InputWindowDialogGtk();
24
25 virtual void Show();
26 virtual void Close();
27
28 private:
29 CHROMEG_CALLBACK_0(InputWindowDialogGtk, void, OnEntryChanged, GtkEditable*);
30
31 CHROMEGTK_CALLBACK_1(InputWindowDialogGtk, void, OnResponse, int);
32
33 CHROMEGTK_CALLBACK_1(InputWindowDialogGtk, gboolean,
34 OnWindowDeleteEvent, GdkEvent*);
35
36 CHROMEGTK_CALLBACK_0(InputWindowDialogGtk, void, OnWindowDestroy);
37
38 // The underlying gtk dialog window.
39 GtkWidget* dialog_;
40
41 // The GtkEntry in this form.
42 GtkWidget* input_;
43
44 // Our delegate. Consumes the window's output.
45 scoped_ptr<InputWindowDialog::Delegate> delegate_;
46
47 DISALLOW_COPY_AND_ASSIGN(InputWindowDialogGtk);
48 };
49 #endif // CHROME_BROWSER_GTK_INPUT_WINDOW_DIALOG_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/input_window_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698