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

Side by Side Diff: chrome/browser/ui/gtk/tab_modal_confirm_dialog_gtk.h

Issue 10528002: TabContentsWrapper -> TabContents, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TAB_MODAL_CONFIRM_DIALOG_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_TAB_MODAL_CONFIRM_DIALOG_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_TAB_MODAL_CONFIRM_DIALOG_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_TAB_MODAL_CONFIRM_DIALOG_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" 13 #include "chrome/browser/ui/gtk/constrained_window_gtk.h"
14 #include "ui/base/gtk/gtk_signal.h" 14 #include "ui/base/gtk/gtk_signal.h"
15 15
16 class TabContentsWrapper; 16 class TabContents;
17 typedef TabContents TabContentsWrapper;
17 class TabModalConfirmDialogDelegate; 18 class TabModalConfirmDialogDelegate;
18 19
19 // Displays a tab-modal dialog, i.e. a dialog that will block the current page 20 // Displays a tab-modal dialog, i.e. a dialog that will block the current page
20 // but still allow the user to switch to a different page. 21 // but still allow the user to switch to a different page.
21 // To display the dialog, allocate this object on the heap. It will open the 22 // To display the dialog, allocate this object on the heap. It will open the
22 // dialog from its constructor and then delete itself when the user dismisses 23 // dialog from its constructor and then delete itself when the user dismisses
23 // the dialog. 24 // the dialog.
24 class TabModalConfirmDialogGtk : public ConstrainedWindowGtkDelegate { 25 class TabModalConfirmDialogGtk : public ConstrainedWindowGtkDelegate {
25 public: 26 public:
26 TabModalConfirmDialogGtk(TabModalConfirmDialogDelegate* delegate, 27 TabModalConfirmDialogGtk(TabModalConfirmDialogDelegate* delegate,
(...skipping 16 matching lines...) Expand all
43 scoped_ptr<TabModalConfirmDialogDelegate> delegate_; 44 scoped_ptr<TabModalConfirmDialogDelegate> delegate_;
44 45
45 GtkWidget* dialog_; 46 GtkWidget* dialog_;
46 GtkWidget* ok_; 47 GtkWidget* ok_;
47 GtkWidget* cancel_; 48 GtkWidget* cancel_;
48 49
49 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogGtk); 50 DISALLOW_COPY_AND_ASSIGN(TabModalConfirmDialogGtk);
50 }; 51 };
51 52
52 #endif // CHROME_BROWSER_UI_GTK_TAB_MODAL_CONFIRM_DIALOG_GTK_H_ 53 #endif // CHROME_BROWSER_UI_GTK_TAB_MODAL_CONFIRM_DIALOG_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/tab_contents_container_gtk.h ('k') | chrome/browser/ui/gtk/tabs/drag_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698