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

Side by Side Diff: content/public/browser/android/content_view_core.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 (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_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 17 matching lines...) Expand all
28 // Refer to the public WebContents interface or elsewhere instead. 28 // Refer to the public WebContents interface or elsewhere instead.
29 class CONTENT_EXPORT ContentViewCore { 29 class CONTENT_EXPORT ContentViewCore {
30 public: 30 public:
31 // Returns the existing ContentViewCore for |web_contents|, or nullptr. 31 // Returns the existing ContentViewCore for |web_contents|, or nullptr.
32 static ContentViewCore* FromWebContents(WebContents* web_contents); 32 static ContentViewCore* FromWebContents(WebContents* web_contents);
33 33
34 virtual WebContents* GetWebContents() const = 0; 34 virtual WebContents* GetWebContents() const = 0;
35 35
36 // May return null reference. 36 // May return null reference.
37 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0; 37 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() = 0;
38 virtual bool ShowPastePopup(const ContextMenuParams& params) = 0; 38 virtual bool ShowSelectionMenu(const ContextMenuParams& params) = 0;
39 39
40 virtual ui::WindowAndroid* GetWindowAndroid() const = 0; 40 virtual ui::WindowAndroid* GetWindowAndroid() const = 0;
41 41
42 protected: 42 protected:
43 ~ContentViewCore() {} 43 ~ContentViewCore() {}
44 }; 44 };
45 45
46 }; // namespace content 46 }; // namespace content
47 47
48 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ 48 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698