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

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

Issue 8298019: Implement InputWindowDialog with WebUI for bookmark folder management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again Created 9 years, 2 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
(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
11 #include <string>
12
13 #include "base/basictypes.h"
14 #include "base/memory/scoped_ptr.h"
15 #include "chrome/browser/ui/input_window_dialog.h"
16 #include "ui/base/gtk/gtk_signal.h"
17
18 class InputWindowDialogGtk : public InputWindowDialog {
19 public:
20 // Creates a dialog. Takes ownership of |delegate|.
21 InputWindowDialogGtk(GtkWindow* parent,
22 const std::string& window_title,
23 const std::string& label,
24 const std::string& contents,
25 Delegate* delegate);
26 virtual ~InputWindowDialogGtk();
27
28 virtual void Show();
29 virtual void Close();
30
31 private:
32 CHROMEG_CALLBACK_0(InputWindowDialogGtk, void, OnEntryChanged, GtkEditable*);
33 CHROMEGTK_CALLBACK_1(InputWindowDialogGtk, void, OnResponse, int);
34 CHROMEGTK_CALLBACK_1(InputWindowDialogGtk, gboolean,
35 OnWindowDeleteEvent, GdkEvent*);
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
50 #endif // CHROME_BROWSER_UI_INPUT_WINDOW_DIALOG_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/input_window_dialog.js ('k') | chrome/browser/ui/input_window_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698