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

Unified Diff: chrome/browser/chromeos/external_protocol_dialog.h

Issue 342040: Enable ExternalProtocolDialog for linux/views (Closed)
Patch Set: fix linux build 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
« no previous file with comments | « chrome/app/google_chrome_strings.grd ('k') | chrome/browser/chromeos/external_protocol_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/external_protocol_dialog.h
diff --git a/chrome/browser/chromeos/external_protocol_dialog.h b/chrome/browser/chromeos/external_protocol_dialog.h
new file mode 100644
index 0000000000000000000000000000000000000000..9631004bfeafe735f2d0bdcc5331b0de80985226
--- /dev/null
+++ b/chrome/browser/chromeos/external_protocol_dialog.h
@@ -0,0 +1,51 @@
+// 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_CHROMEOS_EXTERNAL_PROTOCOL_DIALOG_H_
+#define CHROME_BROWSER_CHROMEOS_EXTERNAL_PROTOCOL_DIALOG_H_
+
+#include "base/time.h"
+#include "views/window/dialog_delegate.h"
+
+class GURL;
+class MessageBoxView;
+class TabContents;
+
+// An external protocol dialog for ChromeOS. Unlike other platforms,
+// ChromeOS does not support launching external program, therefore,
+// this dialog simply says it is not supported.
+class ExternalProtocolDialog : public views::DialogDelegate {
+ public:
+ // RunExternalProtocolDialog calls this private constructor.
+ ExternalProtocolDialog(TabContents* tab_contents, const GURL& url);
+
+ virtual ~ExternalProtocolDialog();
+
+ // views::DialogDelegate Methods:
+ virtual int GetDialogButtons() const;
+ virtual std::wstring GetDialogButtonLabel(
+ MessageBoxFlags::DialogButton button) const;
+ virtual std::wstring GetWindowTitle() const;
+ virtual void DeleteDelegate();
+ virtual bool Accept();
+ virtual views::View* GetContentsView();
+
+ // views::WindowDelegate Methods:
+ virtual bool IsAlwaysOnTop() const { return false; }
+ virtual bool IsModal() const { return false; }
+
+ private:
+ // The message box view whose commands we handle.
+ MessageBoxView* message_box_view_;
+
+ // The time at which this dialog was created.
+ base::Time creation_time_;
+
+ // The scheme of the url.
+ std::wstring scheme_;
+
+ DISALLOW_COPY_AND_ASSIGN(ExternalProtocolDialog);
+};
+
+#endif // CHROME_BROWSER_CHROMEOS_EXTERNAL_PROTOCOL_DIALOG_H_
« no previous file with comments | « chrome/app/google_chrome_strings.grd ('k') | chrome/browser/chromeos/external_protocol_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698