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

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

Issue 2785853002: Selection Action mode triggered like a context menu (Closed)
Patch Set: Fixing rebase bug Created 3 years, 8 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
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 JNIEnv* env, 49 JNIEnv* env,
50 const base::android::JavaRef<jobject>& obj, 50 const base::android::JavaRef<jobject>& obj,
51 WebContents* web_contents, 51 WebContents* web_contents,
52 float dpi_scale, 52 float dpi_scale,
53 const base::android::JavaRef<jobject>& java_bridge_retained_object_set); 53 const base::android::JavaRef<jobject>& java_bridge_retained_object_set);
54 54
55 // ContentViewCore implementation. 55 // ContentViewCore implementation.
56 base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override; 56 base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override;
57 WebContents* GetWebContents() const override; 57 WebContents* GetWebContents() const override;
58 ui::WindowAndroid* GetWindowAndroid() const override; 58 ui::WindowAndroid* GetWindowAndroid() const override;
59 bool ShowPastePopup(const ContextMenuParams& params) override; 59 bool ShowSelectionMenu(const ContextMenuParams& params) override;
60 60
61 void AddObserver(ContentViewCoreImplObserver* observer); 61 void AddObserver(ContentViewCoreImplObserver* observer);
62 void RemoveObserver(ContentViewCoreImplObserver* observer); 62 void RemoveObserver(ContentViewCoreImplObserver* observer);
63 63
64 // -------------------------------------------------------------------------- 64 // --------------------------------------------------------------------------
65 // Methods called from Java via JNI 65 // Methods called from Java via JNI
66 // -------------------------------------------------------------------------- 66 // --------------------------------------------------------------------------
67 67
68 base::android::ScopedJavaLocalRef<jobject> GetWebContentsAndroid( 68 base::android::ScopedJavaLocalRef<jobject> GetWebContentsAndroid(
69 JNIEnv* env, 69 JNIEnv* env,
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; 385 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_;
386 386
387 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 387 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
388 }; 388 };
389 389
390 bool RegisterContentViewCore(JNIEnv* env); 390 bool RegisterContentViewCore(JNIEnv* env);
391 391
392 } // namespace content 392 } // namespace content
393 393
394 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 394 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698