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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 void OnSelectionChanged(const std::string& text); | 141 void OnSelectionChanged(const std::string& text); |
142 void OnSelectionBoundsChanged(int startx, | 142 void OnSelectionBoundsChanged(int startx, |
143 int starty, | 143 int starty, |
144 base::i18n::TextDirection start_dir, | 144 base::i18n::TextDirection start_dir, |
145 int endx, | 145 int endx, |
146 int endy, | 146 int endy, |
147 base::i18n::TextDirection end_dir); | 147 base::i18n::TextDirection end_dir); |
148 | 148 |
149 // Called when page loading begins. | 149 // Called when page loading begins. |
150 void DidStartLoading(); | 150 void DidStartLoading(); |
151 | |
152 void OnAcceleratedCompositingStateChange(RenderWidgetHostViewAndroid* rwhva, | |
153 bool activated, | |
154 bool force); | |
155 void StartContentIntent(const GURL& content_url); | 151 void StartContentIntent(const GURL& content_url); |
156 | 152 |
157 // -------------------------------------------------------------------------- | 153 // -------------------------------------------------------------------------- |
158 // Methods called from native code | 154 // Methods called from native code |
159 // -------------------------------------------------------------------------- | 155 // -------------------------------------------------------------------------- |
160 | 156 |
161 gfx::Rect GetBounds() const; | 157 gfx::Rect GetBounds() const; |
162 | 158 |
163 WebContents* web_contents() const { return web_contents_; } | 159 WebContents* web_contents() const { return web_contents_; } |
164 void LoadUrl(const GURL& url, int page_transition); | 160 void LoadUrl(const GURL& url, int page_transition); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 bool tab_crashed_; | 207 bool tab_crashed_; |
212 | 208 |
213 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 209 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
214 }; | 210 }; |
215 | 211 |
216 bool RegisterContentViewCore(JNIEnv* env); | 212 bool RegisterContentViewCore(JNIEnv* env); |
217 | 213 |
218 } // namespace content | 214 } // namespace content |
219 | 215 |
220 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 216 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |