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