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

Side by Side Diff: content/browser/android/content_view_client.h

Issue 10823340: [Android] Upstream Modal Dialogs functionality (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
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 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CLIENT_H_
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CLIENT_H_ 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CLIENT_H_
7 7
8 #include "base/android/jni_helper.h" 8 #include "base/android/jni_helper.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "content/public/browser/native_web_keyboard_event.h" 10 #include "content/public/browser/native_web_keyboard_event.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 const GURL& url); 84 const GURL& url);
85 void OnDidCommitMainFrame(const GURL& url, 85 void OnDidCommitMainFrame(const GURL& url,
86 const GURL& base_url); 86 const GURL& base_url);
87 void OnInterstitialShown(); 87 void OnInterstitialShown();
88 void OnInterstitialHidden(); 88 void OnInterstitialHidden();
89 89
90 void SetFindHelper(FindHelper* find_helper); 90 void SetFindHelper(FindHelper* find_helper);
91 void SetJavaScriptDialogCreator( 91 void SetJavaScriptDialogCreator(
92 JavaScriptDialogCreator* javascript_dialog_creator); 92 JavaScriptDialogCreator* javascript_dialog_creator);
93 93
94 bool OnJSModalDialog(JavaScriptMessageType type, 94 bool OnJsModalDialog(JavaScriptMessageType type,
95 bool is_before_unload_dialog, 95 bool is_before_unload_dialog,
96 const GURL& url, 96 const GURL& url,
97 const string16& message, 97 const string16& message,
98 const string16& default_value); 98 const string16& default_value,
99 jobject js_result);
99 100
100 // Returns the actual load progress, a value between 0 (nothing loaded) and 101 // Returns the actual load progress, a value between 0 (nothing loaded) and
101 // 1 (page fully loaded). 102 // 1 (page fully loaded).
102 virtual double GetLoadProgress() const; 103 virtual double GetLoadProgress() const;
103 104
104 // Overridden from WebContentsDelegate: 105 // Overridden from WebContentsDelegate:
105 virtual WebContents* OpenURLFromTab( 106 virtual WebContents* OpenURLFromTab(
106 WebContents* source, 107 WebContents* source,
107 const OpenURLParams& params) OVERRIDE; 108 const OpenURLParams& params) OVERRIDE;
108 virtual bool ShouldIgnoreNavigation( 109 virtual bool ShouldIgnoreNavigation(
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // Indicates the load state of the page. 0.0 means nothing loaded, 1 means 183 // Indicates the load state of the page. 0.0 means nothing loaded, 1 means
183 // fully loaded. 184 // fully loaded.
184 double load_progress_; 185 double load_progress_;
185 }; 186 };
186 187
187 bool RegisterContentViewClient(JNIEnv* env); 188 bool RegisterContentViewClient(JNIEnv* env);
188 189
189 } // namespace content 190 } // namespace content
190 191
191 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CLIENT_H_ 192 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698