diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 21:11:57 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 21:11:57 +0000 |
commit | 8710e40ca5da072e49ca2e5c5ba5c17eb3379896 (patch) | |
tree | 32cb57353d287426d44d18347933fbfd0247f6e7 /chrome/browser/jsmessage_box_client.h | |
parent | a034b50b091f08d0a1ef5dbd61b7bc3c91afe5a9 (diff) | |
download | chromium_src-8710e40ca5da072e49ca2e5c5ba5c17eb3379896.zip chromium_src-8710e40ca5da072e49ca2e5c5ba5c17eb3379896.tar.gz chromium_src-8710e40ca5da072e49ca2e5c5ba5c17eb3379896.tar.bz2 |
Revert 31110 - Implement window.alert() and its cousins for extensions.
BUG=12126
TEST=put a window.prompt() in a background page, a browser action, and a page action.
Make sure it gets the result back correctly. Also make sure it still works when
called from a web page.
Review URL: http://codereview.chromium.org/341089
TBR=pam@chromium.org
Review URL: http://codereview.chromium.org/360063
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31126 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/jsmessage_box_client.h')
-rw-r--r-- | chrome/browser/jsmessage_box_client.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/chrome/browser/jsmessage_box_client.h b/chrome/browser/jsmessage_box_client.h deleted file mode 100644 index 5e60c5d..0000000 --- a/chrome/browser/jsmessage_box_client.h +++ /dev/null @@ -1,50 +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_JSMESSAGE_BOX_CLIENT_H_ -#define CHROME_BROWSER_JSMESSAGE_BOX_CLIENT_H_ - -// JavaScriptMessageBoxClient -// -// An interface implemented by an object that receives results from JavaScript -// message boxes (alert, confirm, and prompt). -// - -#include <string> - -#include "app/gfx/native_widget_types.h" - -class GURL; -class Profile; -class TabContents; -namespace IPC { -class Message; -} - -class JavaScriptMessageBoxClient { - public: - virtual ~JavaScriptMessageBoxClient() {} - - // Returns the title to use for the message box. - virtual std::wstring GetMessageBoxTitle(const GURL& frame_url, - bool is_alert) = 0; - - // Returns the root native window with which the message box is associated. - virtual gfx::NativeWindow GetMessageBoxRootWindow() = 0; - - // AppModalDialog calls this when the dialog is closed. - virtual void OnMessageBoxClosed(IPC::Message* reply_msg, - bool success, - const std::wstring& prompt) = 0; - - // Indicates whether additional message boxes should be suppressed. - virtual void SetSuppressMessageBoxes(bool suppress_message_boxes) = 0; - - // Returns the TabContents associated with this message box -- in practice, - // the TabContents implementing this interface -- or NULL if it has no - // TabContents (e.g., it's an ExtensionHost). - virtual TabContents* AsTabContents() = 0; -}; - -# endif // CHROME_BROWSER_JSMESSAGE_BOX_CLIENT_H_ |