OLD | NEW |
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // Called by ContentView: | 75 // Called by ContentView: |
76 void OnInternalPageLoadRequest(WebContents* source, | 76 void OnInternalPageLoadRequest(WebContents* source, |
77 const GURL& url); | 77 const GURL& url); |
78 void OnPageStarted(const GURL& url); | 78 void OnPageStarted(const GURL& url); |
79 void OnPageFinished(const GURL& url); | 79 void OnPageFinished(const GURL& url); |
80 void OnLoadStarted(); | 80 void OnLoadStarted(); |
81 void OnLoadStopped(); | 81 void OnLoadStopped(); |
82 void OnReceivedError(int error_code, | 82 void OnReceivedError(int error_code, |
83 const string16& description, | 83 const string16& description, |
84 const GURL& url); | 84 const GURL& url); |
85 void OnReceivedHttpAuthRequest(jobject auth_handler, | |
86 const string16& host, | |
87 const string16& realm); | |
88 void OnDidCommitMainFrame(const GURL& url, | 85 void OnDidCommitMainFrame(const GURL& url, |
89 const GURL& base_url); | 86 const GURL& base_url); |
90 void OnInterstitialShown(); | 87 void OnInterstitialShown(); |
91 void OnInterstitialHidden(); | 88 void OnInterstitialHidden(); |
92 | 89 |
93 void SetFindHelper(FindHelper* find_helper); | 90 void SetFindHelper(FindHelper* find_helper); |
94 void SetJavaScriptDialogCreator( | 91 void SetJavaScriptDialogCreator( |
95 JavaScriptDialogCreator* javascript_dialog_creator); | 92 JavaScriptDialogCreator* javascript_dialog_creator); |
96 | 93 |
97 bool OnJSModalDialog(JavaScriptMessageType type, | 94 bool OnJSModalDialog(JavaScriptMessageType type, |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 // Indicates the load state of the page. 0.0 means nothing loaded, 1 means | 182 // Indicates the load state of the page. 0.0 means nothing loaded, 1 means |
186 // fully loaded. | 183 // fully loaded. |
187 double load_progress_; | 184 double load_progress_; |
188 }; | 185 }; |
189 | 186 |
190 bool RegisterContentViewClient(JNIEnv* env); | 187 bool RegisterContentViewClient(JNIEnv* env); |
191 | 188 |
192 } // namespace content | 189 } // namespace content |
193 | 190 |
194 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CLIENT_H_ | 191 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CLIENT_H_ |
OLD | NEW |