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

Side by Side Diff: chrome/browser/ui/android/context_menu_helper.h

Issue 2360103002: Removing unnecessary context menu logic (Closed)
Patch Set: fixed nits Created 4 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_UI_ANDROID_CONTEXT_MENU_HELPER_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_CONTEXT_MENU_HELPER_H_
6 #define CHROME_BROWSER_UI_ANDROID_CONTEXT_MENU_HELPER_H_ 6 #define CHROME_BROWSER_UI_ANDROID_CONTEXT_MENU_HELPER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/android/jni_android.h" 11 #include "base/android/jni_android.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "content/public/browser/web_contents_user_data.h" 14 #include "content/public/browser/web_contents_user_data.h"
15 #include "content/public/common/context_menu_params.h" 15 #include "content/public/common/context_menu_params.h"
16 #include "ui/gfx/geometry/size.h" 16 #include "ui/gfx/geometry/size.h"
17 17
18 namespace content { 18 namespace content {
19 struct ContextMenuParams; 19 struct ContextMenuParams;
20 class RenderFrameHost; 20 class RenderFrameHost;
21 class WebContents; 21 class WebContents;
22 } 22 }
23 23
24 class ContextMenuHelper 24 class ContextMenuHelper
25 : public content::WebContentsUserData<ContextMenuHelper> { 25 : public content::WebContentsUserData<ContextMenuHelper> {
26 public: 26 public:
27 ~ContextMenuHelper() override; 27 ~ContextMenuHelper() override;
28 28
29 bool ShowContextMenu(content::RenderFrameHost* render_frame_host, 29 void ShowContextMenu(content::RenderFrameHost* render_frame_host,
30 const content::ContextMenuParams& params); 30 const content::ContextMenuParams& params);
31 31
32 void SetPopulator(jobject jpopulator); 32 void SetPopulator(jobject jpopulator);
33 33
34 // Methods called from Java via JNI ------------------------------------------ 34 // Methods called from Java via JNI ------------------------------------------
35 void OnStartDownload(JNIEnv* env, 35 void OnStartDownload(JNIEnv* env,
36 const base::android::JavaParamRef<jobject>& obj, 36 const base::android::JavaParamRef<jobject>& obj,
37 jboolean jis_link, 37 jboolean jis_link,
38 jboolean jis_data_reduction_proxy_enabled); 38 jboolean jis_data_reduction_proxy_enabled);
39 void SearchForImage(JNIEnv* env, 39 void SearchForImage(JNIEnv* env,
(...skipping 16 matching lines...) Expand all
56 content::ContextMenuParams context_menu_params_; 56 content::ContextMenuParams context_menu_params_;
57 int render_frame_id_; 57 int render_frame_id_;
58 int render_process_id_; 58 int render_process_id_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(ContextMenuHelper); 60 DISALLOW_COPY_AND_ASSIGN(ContextMenuHelper);
61 }; 61 };
62 62
63 bool RegisterContextMenuHelper(JNIEnv* env); 63 bool RegisterContextMenuHelper(JNIEnv* env);
64 64
65 #endif // CHROME_BROWSER_UI_ANDROID_CONTEXT_MENU_HELPER_H_ 65 #endif // CHROME_BROWSER_UI_ANDROID_CONTEXT_MENU_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698