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

Unified Diff: content/public/browser/javascript_dialogs.h

Issue 12082123: Rename JavaScriptDialogCreator to JavaScriptDialogManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 11 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 | « content/public/browser/javascript_dialog_manager.h ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/javascript_dialogs.h
diff --git a/content/public/browser/javascript_dialogs.h b/content/public/browser/javascript_dialogs.h
deleted file mode 100644
index 9c67d9397fb01ac7262e70f03e4978025abc4801..0000000000000000000000000000000000000000
--- a/content/public/browser/javascript_dialogs.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_JAVASCRIPT_DIALOGS_H_
-#define CONTENT_PUBLIC_BROWSER_JAVASCRIPT_DIALOGS_H_
-
-#include <string>
-
-#include "base/callback.h"
-#include "base/string16.h"
-#include "content/common/content_export.h"
-#include "content/public/common/javascript_message_type.h"
-#include "googleurl/src/gurl.h"
-#include "ui/gfx/native_widget_types.h"
-
-namespace content {
-
-class WebContents;
-
-// An interface consisting of methods that can be called to produce JavaScript
-// dialogs.
-class JavaScriptDialogCreator {
- public:
- typedef base::Callback<void(bool /* success */,
- const string16& /* user_input */)>
- DialogClosedCallback;
-
- // Displays a JavaScript dialog. |did_suppress_message| will not be nil; if
- // |true| is returned in it, the caller will handle faking the reply.
- virtual void RunJavaScriptDialog(
- WebContents* web_contents,
- const GURL& origin_url,
- const std::string& accept_lang,
- JavaScriptMessageType javascript_message_type,
- const string16& message_text,
- const string16& default_prompt_text,
- const DialogClosedCallback& callback,
- bool* did_suppress_message) = 0;
-
- // Displays a dialog asking the user if they want to leave a page.
- virtual void RunBeforeUnloadDialog(WebContents* web_contents,
- const string16& message_text,
- bool is_reload,
- const DialogClosedCallback& callback) = 0;
-
- // Cancels all pending dialogs and resets any saved JavaScript dialog state
- // for the given WebContents.
- virtual void ResetJavaScriptState(WebContents* web_contents) = 0;
-
- virtual ~JavaScriptDialogCreator() {}
-};
-
-} // namespace content
-
-#endif // CONTENT_PUBLIC_BROWSER_JAVASCRIPT_DIALOGS_H_
« no previous file with comments | « content/public/browser/javascript_dialog_manager.h ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698