blob: 769c36b92c64323a8c07f5d30e5a8eeb28890793 [file] [log] [blame]
[email protected]2a906c02012-01-06 03:52:121// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]733d0c42009-10-30 17:58:242// 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_CHROMEOS_EXTERNAL_PROTOCOL_DIALOG_H_
6#define CHROME_BROWSER_CHROMEOS_EXTERNAL_PROTOCOL_DIALOG_H_
7
[email protected]956b3d32011-09-28 09:38:488#include <string>
9
avi8a07d53892015-12-24 22:13:5310#include "base/macros.h"
[email protected]5c073322013-06-11 08:03:3011#include "base/strings/string16.h"
[email protected]f248ebe02013-06-28 00:58:2812#include "base/time/time.h"
[email protected]4cce6c22011-11-14 15:32:4413#include "ui/views/window/dialog_delegate.h"
[email protected]733d0c42009-10-30 17:58:2414
15class GURL;
[email protected]ef9572e2012-01-04 22:14:1216
17namespace content {
18class WebContents;
19}
[email protected]733d0c42009-10-30 17:58:2420
[email protected]41e5a1d2011-03-22 17:26:0021namespace views {
22class MessageBoxView;
23}
24
Joel Hockey5ef5d582020-10-07 00:57:4425// The external protocol dialog for Chrome OS shown when there are no handlers.
26class ExternalProtocolNoHandlersDialog : public views::DialogDelegate {
[email protected]733d0c42009-10-30 17:58:2427 public:
Joel Hockey5ef5d582020-10-07 00:57:4428 ExternalProtocolNoHandlersDialog(content::WebContents* web_contents,
29 const GURL& url);
30 ~ExternalProtocolNoHandlersDialog() override;
[email protected]733d0c42009-10-30 17:58:2431
Peter Kasting9ffb58bc72020-01-13 17:28:0532 // views::DialogDelegate:
dchengc97a0282015-01-15 23:04:2433 base::string16 GetWindowTitle() const override;
dchengc97a0282015-01-15 23:04:2434 views::View* GetContentsView() override;
Allen Bauerd66100e2020-02-10 18:11:4335 const views::Widget* GetWidget() const override;
36 views::Widget* GetWidget() override;
[email protected]733d0c42009-10-30 17:58:2437
38 private:
[email protected]733d0c42009-10-30 17:58:2439 // The message box view whose commands we handle.
[email protected]41e5a1d2011-03-22 17:26:0040 views::MessageBoxView* message_box_view_;
[email protected]733d0c42009-10-30 17:58:2441
42 // The time at which this dialog was created.
[email protected]f691f0e2010-05-12 16:43:1643 base::TimeTicks creation_time_;
[email protected]733d0c42009-10-30 17:58:2444
45 // The scheme of the url.
[email protected]a65175d2010-08-17 04:00:5746 std::string scheme_;
[email protected]733d0c42009-10-30 17:58:2447
Joel Hockey5ef5d582020-10-07 00:57:4448 DISALLOW_COPY_AND_ASSIGN(ExternalProtocolNoHandlersDialog);
[email protected]733d0c42009-10-30 17:58:2449};
50
51#endif // CHROME_BROWSER_CHROMEOS_EXTERNAL_PROTOCOL_DIALOG_H_