diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-09 07:35:32 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-09 07:35:32 +0000 |
commit | 213dac2f0bff9162502fe325b6ebb85a255efcb2 (patch) | |
tree | 3640cb1f19976e38677b8632537d2d41f8444d0f /chrome/browser/views/external_protocol_dialog.h | |
parent | 6de53d401aa8dc6c7e0a9874c71a95ce88ade50d (diff) | |
download | chromium_src-213dac2f0bff9162502fe325b6ebb85a255efcb2.zip chromium_src-213dac2f0bff9162502fe325b6ebb85a255efcb2.tar.gz chromium_src-213dac2f0bff9162502fe325b6ebb85a255efcb2.tar.bz2 |
Move browser/views to browser/ui/views
TBR=brettw
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/4694005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65508 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/external_protocol_dialog.h')
-rw-r--r-- | chrome/browser/views/external_protocol_dialog.h | 54 |
1 files changed, 4 insertions, 50 deletions
diff --git a/chrome/browser/views/external_protocol_dialog.h b/chrome/browser/views/external_protocol_dialog.h index 3932f58..9925dd4 100644 --- a/chrome/browser/views/external_protocol_dialog.h +++ b/chrome/browser/views/external_protocol_dialog.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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. @@ -6,54 +6,8 @@ #define CHROME_BROWSER_VIEWS_EXTERNAL_PROTOCOL_DIALOG_H_ #pragma once -#include "base/time.h" -#include "googleurl/src/gurl.h" -#include "views/window/dialog_delegate.h" - -class MessageBoxView; -class TabContents; - -class ExternalProtocolDialog : public views::DialogDelegate { - public: - // RunExternalProtocolDialog calls this private constructor. - ExternalProtocolDialog(TabContents* tab_contents, - const GURL& url, - const std::wstring& command); - - // Returns the path of the application to be launched given the protocol - // of the requested url. Returns an empty string on failure. - static std::wstring GetApplicationForProtocol(const GURL& url); - - virtual ~ExternalProtocolDialog(); - - // views::DialogDelegate Methods: - virtual int GetDefaultDialogButton() const; - virtual std::wstring GetDialogButtonLabel( - MessageBoxFlags::DialogButton button) const; - virtual std::wstring GetWindowTitle() const; - virtual void DeleteDelegate(); - virtual bool Cancel(); - 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 associated TabContents. - TabContents* tab_contents_; - - // URL of the external protocol request. - GURL url_; - - // The time at which this dialog was created. - base::TimeTicks creation_time_; - - DISALLOW_COPY_AND_ASSIGN(ExternalProtocolDialog); -}; +#include "chrome/browser/ui/views/external_protocol_dialog.h" +// TODO(beng): remove this file once all includes have been updated. #endif // CHROME_BROWSER_VIEWS_EXTERNAL_PROTOCOL_DIALOG_H_ + |