OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_android.h" | 10 #include "base/android/jni_android.h" |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 jint height); | 231 jint height); |
232 | 232 |
233 void SetBackgroundOpaque(JNIEnv* env, jobject jobj, jboolean opaque); | 233 void SetBackgroundOpaque(JNIEnv* env, jobject jobj, jboolean opaque); |
234 | 234 |
235 jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj); | 235 jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj); |
236 | 236 |
237 // -------------------------------------------------------------------------- | 237 // -------------------------------------------------------------------------- |
238 // Public methods that call to Java via JNI | 238 // Public methods that call to Java via JNI |
239 // -------------------------------------------------------------------------- | 239 // -------------------------------------------------------------------------- |
240 | 240 |
241 void OnSmartClipDataExtracted(const gfx::Rect& clip_rect, | 241 void OnSmartClipDataExtracted(const base::string16& text, |
242 const base::string16& result); | 242 const base::string16& html, |
| 243 const gfx::Rect& clip_rect); |
243 | 244 |
244 // Creates a popup menu with |items|. | 245 // Creates a popup menu with |items|. |
245 // |multiple| defines if it should support multi-select. | 246 // |multiple| defines if it should support multi-select. |
246 // If not |multiple|, |selected_item| sets the initially selected item. | 247 // If not |multiple|, |selected_item| sets the initially selected item. |
247 // Otherwise, item's "checked" flag selects it. | 248 // Otherwise, item's "checked" flag selects it. |
248 void ShowSelectPopupMenu(const gfx::Rect& bounds, | 249 void ShowSelectPopupMenu(const gfx::Rect& bounds, |
249 const std::vector<MenuItem>& items, | 250 const std::vector<MenuItem>& items, |
250 int selected_item, | 251 int selected_item, |
251 bool multiple); | 252 bool multiple); |
252 // Hides a visible popup menu. | 253 // Hides a visible popup menu. |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 java_bridge_dispatcher_host_manager_; | 391 java_bridge_dispatcher_host_manager_; |
391 | 392 |
392 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 393 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
393 }; | 394 }; |
394 | 395 |
395 bool RegisterContentViewCore(JNIEnv* env); | 396 bool RegisterContentViewCore(JNIEnv* env); |
396 | 397 |
397 } // namespace content | 398 } // namespace content |
398 | 399 |
399 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 400 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |