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

Unified Diff: chrome/browser/gtk/download_request_dialog_delegate_gtk.h

Issue 275011: Make the multiple download request dialog an infobar.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/gtk/download_request_dialog_delegate_gtk.h
===================================================================
--- chrome/browser/gtk/download_request_dialog_delegate_gtk.h (revision 28899)
+++ chrome/browser/gtk/download_request_dialog_delegate_gtk.h (working copy)
@@ -1,55 +0,0 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_GTK_DOWNLOAD_REQUEST_DIALOG_DELEGATE_GTK_H_
-#define CHROME_BROWSER_GTK_DOWNLOAD_REQUEST_DIALOG_DELEGATE_GTK_H_
-
-#include <gtk/gtk.h>
-
-#include "chrome/browser/download/download_request_dialog_delegate.h"
-#include "chrome/browser/gtk/constrained_window_gtk.h"
-
-class DownloadRequestDialogDelegateGtk : public DownloadRequestDialogDelegate,
- public ConstrainedWindowGtkDelegate {
- public:
- DownloadRequestDialogDelegateGtk(TabContents* tab,
- DownloadRequestManager::TabDownloadState* host);
-
- virtual ~DownloadRequestDialogDelegateGtk();
-
- private:
- // DownloadRequestDialogDelegate methods.
- virtual void CloseWindow();
-
- // ConstrainedWindowGtkDelegate methods.
- virtual GtkWidget* GetWidgetRoot();
- virtual void DeleteDelegate();
-
- // Other methods.
- static void OnAllowClickedThunk(GtkButton* button,
- DownloadRequestDialogDelegateGtk* delegate) {
- delegate->OnAllowClicked();
- }
- void OnAllowClicked();
- static void OnDenyClickedThunk(GtkButton* button,
- DownloadRequestDialogDelegateGtk* delegate) {
- delegate->OnDenyClicked();
- }
- void OnDenyClicked();
-
- // The ConstrainedWindow that is hosting our DownloadRequestDialog.
- ConstrainedWindow* window_;
-
- // Our root widget.
- OwnedWidgetGtk root_;
-
- // Tracks whether we have responded so we can send a cancel response
- // when we are getting deleted. DRDDWin gets this for free from its
- // views::DialogDelegate superclass.
- bool responded_;
-
- DISALLOW_COPY_AND_ASSIGN(DownloadRequestDialogDelegateGtk);
-};
-
-#endif // CHROME_BROWSER_GTK_DOWNLOAD_REQUEST_DIALOG_DELEGATE_GTK_H_

Powered by Google App Engine
This is Rietveld 408576698