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_CORE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/android/jni_helper.h" | 10 #include "base/android/jni_helper.h" |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 int endx, | 143 int endx, |
144 int endy, | 144 int endy, |
145 base::i18n::TextDirection end_dir); | 145 base::i18n::TextDirection end_dir); |
146 | 146 |
147 // Called when page loading begins. | 147 // Called when page loading begins. |
148 void DidStartLoading(); | 148 void DidStartLoading(); |
149 | 149 |
150 void OnAcceleratedCompositingStateChange(RenderWidgetHostViewAndroid* rwhva, | 150 void OnAcceleratedCompositingStateChange(RenderWidgetHostViewAndroid* rwhva, |
151 bool activated, | 151 bool activated, |
152 bool force); | 152 bool force); |
153 virtual void StartContentIntent(const GURL& content_url) OVERRIDE; | 153 void StartContentIntent(const GURL& content_url); |
154 | 154 |
155 // -------------------------------------------------------------------------- | 155 // -------------------------------------------------------------------------- |
156 // Methods called from native code | 156 // Methods called from native code |
157 // -------------------------------------------------------------------------- | 157 // -------------------------------------------------------------------------- |
158 | 158 |
159 gfx::Rect GetBounds() const; | 159 gfx::Rect GetBounds() const; |
160 | 160 |
161 WebContents* web_contents() const { return web_contents_; } | 161 WebContents* web_contents() const { return web_contents_; } |
162 void LoadUrl(const GURL& url, int page_transition); | 162 void LoadUrl(const GURL& url, int page_transition); |
163 void LoadUrlWithUserAgentOverride( | 163 void LoadUrlWithUserAgentOverride( |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 bool tab_crashed_; | 204 bool tab_crashed_; |
205 | 205 |
206 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 206 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
207 }; | 207 }; |
208 | 208 |
209 bool RegisterContentViewCore(JNIEnv* env); | 209 bool RegisterContentViewCore(JNIEnv* env); |
210 | 210 |
211 } // namespace content | 211 } // namespace content |
212 | 212 |
213 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 213 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |