Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: content/browser/android/content_view_core_impl.h

Issue 2135493002: Support dragging texts out of webview/Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Workaround b/30148704 Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 const base::android::JavaParamRef<jstring>& j_content); 296 const base::android::JavaParamRef<jstring>& j_content);
297 297
298 jint GetCurrentRenderProcessId( 298 jint GetCurrentRenderProcessId(
299 JNIEnv* env, 299 JNIEnv* env,
300 const base::android::JavaParamRef<jobject>& obj); 300 const base::android::JavaParamRef<jobject>& obj);
301 301
302 // -------------------------------------------------------------------------- 302 // --------------------------------------------------------------------------
303 // Public methods that call to Java via JNI 303 // Public methods that call to Java via JNI
304 // -------------------------------------------------------------------------- 304 // --------------------------------------------------------------------------
305 305
306 void HidePopupsAndPreserveSelection();
307
306 void OnSmartClipDataExtracted(const base::string16& text, 308 void OnSmartClipDataExtracted(const base::string16& text,
307 const base::string16& html, 309 const base::string16& html,
308 const gfx::Rect& clip_rect); 310 const gfx::Rect& clip_rect);
309 311
310 // Creates a popup menu with |items|. 312 // Creates a popup menu with |items|.
311 // |multiple| defines if it should support multi-select. 313 // |multiple| defines if it should support multi-select.
312 // If not |multiple|, |selected_item| sets the initially selected item. 314 // If not |multiple|, |selected_item| sets the initially selected item.
313 // Otherwise, item's "checked" flag selects it. 315 // Otherwise, item's "checked" flag selects it.
314 void ShowSelectPopupMenu(RenderFrameHost* frame, 316 void ShowSelectPopupMenu(RenderFrameHost* frame,
315 const gfx::Rect& bounds, 317 const gfx::Rect& bounds,
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; 480 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_;
479 481
480 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 482 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
481 }; 483 };
482 484
483 bool RegisterContentViewCore(JNIEnv* env); 485 bool RegisterContentViewCore(JNIEnv* env);
484 486
485 } // namespace content 487 } // namespace content
486 488
487 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 489 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698