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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
189 const std::string& text, | 189 const std::string& text, |
190 int selection_start, int selection_end, | 190 int selection_start, int selection_end, |
191 int composition_start, int composition_end, | 191 int composition_start, int composition_end, |
192 bool show_ime_if_needed); | 192 bool show_ime_if_needed); |
193 void SetTitle(const string16& title); | 193 void SetTitle(const string16& title); |
194 | 194 |
195 bool HasFocus(); | 195 bool HasFocus(); |
196 void ConfirmTouchEvent(bool handled); | 196 void ConfirmTouchEvent(bool handled); |
197 void DidSetNeedTouchEvents(bool need_touch_events); | 197 void DidSetNeedTouchEvents(bool need_touch_events); |
198 void OnSelectionChanged(const std::string& text); | 198 void OnSelectionChanged(const std::string& text); |
199 void OnSelectionBoundsChanged(int startx, | 199 virtual void OnSelectionBoundsChanged( |
200 int starty, | 200 const gfx::Rect& start_rect, base::i18n::TextDirection start_dir, |
201 base::i18n::TextDirection start_dir, | 201 const gfx::Rect& end_rect, base::i18n::TextDirection end_dir) OVERRIDE; |
nilesh
2012/10/10 20:35:42
Unless I am missing something, you need to add thi
Iain Merrick
2012/10/11 09:51:23
Argh, good catch! I need to add content_view_core.
| |
202 int endx, | |
203 int endy, | |
204 base::i18n::TextDirection end_dir); | |
205 | 202 |
206 void StartContentIntent(const GURL& content_url); | 203 void StartContentIntent(const GURL& content_url); |
207 | 204 |
208 // -------------------------------------------------------------------------- | 205 // -------------------------------------------------------------------------- |
209 // Methods called from native code | 206 // Methods called from native code |
210 // -------------------------------------------------------------------------- | 207 // -------------------------------------------------------------------------- |
211 | 208 |
212 gfx::Rect GetBounds() const; | 209 gfx::Rect GetBounds() const; |
213 | 210 |
214 private: | 211 private: |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
258 ui::WindowAndroid* window_android_; | 255 ui::WindowAndroid* window_android_; |
259 | 256 |
260 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 257 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
261 }; | 258 }; |
262 | 259 |
263 bool RegisterContentViewCore(JNIEnv* env); | 260 bool RegisterContentViewCore(JNIEnv* env); |
264 | 261 |
265 } // namespace content | 262 } // namespace content |
266 | 263 |
267 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 264 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |