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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 void UpdatePageScaleLimits(float minimum_scale, float maximum_scale); | 191 void UpdatePageScaleLimits(float minimum_scale, float maximum_scale); |
192 void ImeUpdateAdapter(int native_ime_adapter, int text_input_type, | 192 void ImeUpdateAdapter(int native_ime_adapter, int text_input_type, |
193 const std::string& text, | 193 const std::string& text, |
194 int selection_start, int selection_end, | 194 int selection_start, int selection_end, |
195 int composition_start, int composition_end, | 195 int composition_start, int composition_end, |
196 bool show_ime_if_needed); | 196 bool show_ime_if_needed); |
197 void SetTitle(const string16& title); | 197 void SetTitle(const string16& title); |
198 | 198 |
199 bool HasFocus(); | 199 bool HasFocus(); |
200 void ConfirmTouchEvent(bool handled); | 200 void ConfirmTouchEvent(bool handled); |
201 void DidSetNeedTouchEvents(bool need_touch_events); | 201 void HasTouchEventHandlers(bool need_touch_events); |
202 void OnSelectionChanged(const std::string& text); | 202 void OnSelectionChanged(const std::string& text); |
203 void OnSelectionBoundsChanged( | 203 void OnSelectionBoundsChanged( |
204 const gfx::Rect& start_rect, base::i18n::TextDirection start_dir, | 204 const gfx::Rect& start_rect, base::i18n::TextDirection start_dir, |
205 const gfx::Rect& end_rect, base::i18n::TextDirection end_dir); | 205 const gfx::Rect& end_rect, base::i18n::TextDirection end_dir); |
206 | 206 |
207 void StartContentIntent(const GURL& content_url); | 207 void StartContentIntent(const GURL& content_url); |
208 | 208 |
209 // -------------------------------------------------------------------------- | 209 // -------------------------------------------------------------------------- |
210 // Methods called from native code | 210 // Methods called from native code |
211 // -------------------------------------------------------------------------- | 211 // -------------------------------------------------------------------------- |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 ui::WindowAndroid* window_android_; | 258 ui::WindowAndroid* window_android_; |
259 | 259 |
260 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 260 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
261 }; | 261 }; |
262 | 262 |
263 bool RegisterContentViewCore(JNIEnv* env); | 263 bool RegisterContentViewCore(JNIEnv* env); |
264 | 264 |
265 } // namespace content | 265 } // namespace content |
266 | 266 |
267 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 267 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |