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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 const std::string& text, | 181 const std::string& text, |
182 int selection_start, int selection_end, | 182 int selection_start, int selection_end, |
183 int composition_start, int composition_end, | 183 int composition_start, int composition_end, |
184 bool show_ime_if_needed); | 184 bool show_ime_if_needed); |
185 void SetTitle(const string16& title); | 185 void SetTitle(const string16& title); |
186 | 186 |
187 bool HasFocus(); | 187 bool HasFocus(); |
188 void ConfirmTouchEvent(bool handled); | 188 void ConfirmTouchEvent(bool handled); |
189 void DidSetNeedTouchEvents(bool need_touch_events); | 189 void DidSetNeedTouchEvents(bool need_touch_events); |
190 void OnSelectionChanged(const std::string& text); | 190 void OnSelectionChanged(const std::string& text); |
191 void OnSelectionBoundsChanged(int startx, | 191 virtual void OnSelectionBoundsChanged( |
192 int starty, | 192 const gfx::Rect& start_rect, base::i18n::TextDirection start_dir, |
193 base::i18n::TextDirection start_dir, | 193 const gfx::Rect& end_rect, base::i18n::TextDirection end_dir) OVERRIDE; |
194 int endx, | |
195 int endy, | |
196 base::i18n::TextDirection end_dir); | |
197 | 194 |
198 void StartContentIntent(const GURL& content_url); | 195 void StartContentIntent(const GURL& content_url); |
199 | 196 |
200 // -------------------------------------------------------------------------- | 197 // -------------------------------------------------------------------------- |
201 // Methods called from native code | 198 // Methods called from native code |
202 // -------------------------------------------------------------------------- | 199 // -------------------------------------------------------------------------- |
203 | 200 |
204 gfx::Rect GetBounds() const; | 201 gfx::Rect GetBounds() const; |
205 | 202 |
206 private: | 203 private: |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 ui::WindowAndroid* window_android_; | 245 ui::WindowAndroid* window_android_; |
249 | 246 |
250 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 247 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
251 }; | 248 }; |
252 | 249 |
253 bool RegisterContentViewCore(JNIEnv* env); | 250 bool RegisterContentViewCore(JNIEnv* env); |
254 | 251 |
255 } // namespace content | 252 } // namespace content |
256 | 253 |
257 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 254 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |