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

Side by Side Diff: android_webview/browser/aw_javascript_dialog_manager.cc

Issue 2412843002: Simplify the JavaScriptDialogManager. (Closed)
Patch Set: braces Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "android_webview/browser/aw_javascript_dialog_manager.h" 5 #include "android_webview/browser/aw_javascript_dialog_manager.h"
6 6
7 #include "android_webview/browser/aw_contents_client_bridge_base.h" 7 #include "android_webview/browser/aw_contents_client_bridge_base.h"
8 #include "content/public/browser/javascript_dialog_manager.h" 8 #include "content/public/browser/javascript_dialog_manager.h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 AwContentsClientBridgeBase::FromWebContents(web_contents); 44 AwContentsClientBridgeBase::FromWebContents(web_contents);
45 if (!bridge) { 45 if (!bridge) {
46 callback.Run(false, base::string16()); 46 callback.Run(false, base::string16());
47 return; 47 return;
48 } 48 }
49 49
50 bridge->RunBeforeUnloadDialog(web_contents->GetURL(), 50 bridge->RunBeforeUnloadDialog(web_contents->GetURL(),
51 callback); 51 callback);
52 } 52 }
53 53
54 void AwJavaScriptDialogManager::CancelActiveAndPendingDialogs( 54 void AwJavaScriptDialogManager::CancelDialogs(
55 content::WebContents* web_contents) { 55 content::WebContents* web_contents,
56 } 56 bool suppress_callbacks,
57 57 bool reset_state) {}
58 void AwJavaScriptDialogManager::ResetDialogState(
59 content::WebContents* web_contents) {
60 }
61 58
62 } // namespace android_webview 59 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_javascript_dialog_manager.h ('k') | chrome/browser/extensions/content_script_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698