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 ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <list> | 9 #include <list> |
10 #include <string> | 10 #include <string> |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 void FindAllAsync(JNIEnv* env, jobject obj, jstring search_string); | 132 void FindAllAsync(JNIEnv* env, jobject obj, jstring search_string); |
133 void FindNext(JNIEnv* env, jobject obj, jboolean forward); | 133 void FindNext(JNIEnv* env, jobject obj, jboolean forward); |
134 void ClearMatches(JNIEnv* env, jobject obj); | 134 void ClearMatches(JNIEnv* env, jobject obj); |
135 FindHelper* GetFindHelper(); | 135 FindHelper* GetFindHelper(); |
136 | 136 |
137 // FindHelper::Listener implementation. | 137 // FindHelper::Listener implementation. |
138 virtual void OnFindResultReceived(int active_ordinal, | 138 virtual void OnFindResultReceived(int active_ordinal, |
139 int match_count, | 139 int match_count, |
140 bool finished) OVERRIDE; | 140 bool finished) OVERRIDE; |
141 // IconHelper::Listener implementation. | 141 // IconHelper::Listener implementation. |
| 142 virtual bool ShouldDownloadFavicon(const GURL& icon_url) OVERRIDE; |
142 virtual void OnReceivedIcon(const GURL& icon_url, | 143 virtual void OnReceivedIcon(const GURL& icon_url, |
143 const SkBitmap& bitmap) OVERRIDE; | 144 const SkBitmap& bitmap) OVERRIDE; |
144 virtual void OnReceivedTouchIconUrl(const std::string& url, | 145 virtual void OnReceivedTouchIconUrl(const std::string& url, |
145 const bool precomposed) OVERRIDE; | 146 const bool precomposed) OVERRIDE; |
146 | 147 |
147 // AwRenderViewHostExtClient implementation. | 148 // AwRenderViewHostExtClient implementation. |
148 virtual void OnWebLayoutPageScaleFactorChanged( | 149 virtual void OnWebLayoutPageScaleFactorChanged( |
149 float page_scale_factor) OVERRIDE; | 150 float page_scale_factor) OVERRIDE; |
150 virtual void OnWebLayoutContentsSizeChanged( | 151 virtual void OnWebLayoutContentsSizeChanged( |
151 const gfx::Size& contents_size) OVERRIDE; | 152 const gfx::Size& contents_size) OVERRIDE; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 std::list<OriginCallback> pending_geolocation_prompts_; | 204 std::list<OriginCallback> pending_geolocation_prompts_; |
204 | 205 |
205 DISALLOW_COPY_AND_ASSIGN(AwContents); | 206 DISALLOW_COPY_AND_ASSIGN(AwContents); |
206 }; | 207 }; |
207 | 208 |
208 bool RegisterAwContents(JNIEnv* env); | 209 bool RegisterAwContents(JNIEnv* env); |
209 | 210 |
210 } // namespace android_webview | 211 } // namespace android_webview |
211 | 212 |
212 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 213 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
OLD | NEW |