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

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

Issue 823703003: Cleanup: Update the path to insets and point headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: point.h Created 6 years 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 #include "chrome/browser/ui/android/context_menu_helper.h" 5 #include "chrome/browser/ui/android/context_menu_helper.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "content/public/browser/android/content_view_core.h" 9 #include "content/public/browser/android/content_view_core.h"
10 #include "content/public/browser/android/download_controller_android.h" 10 #include "content/public/browser/android/download_controller_android.h"
11 #include "content/public/common/context_menu_params.h" 11 #include "content/public/common/context_menu_params.h"
12 #include "jni/ContextMenuHelper_jni.h" 12 #include "jni/ContextMenuHelper_jni.h"
13 #include "jni/ContextMenuParams_jni.h" 13 #include "jni/ContextMenuParams_jni.h"
14 #include "ui/gfx/point.h" 14 #include "ui/gfx/geometry/point.h"
15 15
16 using base::android::ConvertUTF8ToJavaString; 16 using base::android::ConvertUTF8ToJavaString;
17 using base::android::ConvertUTF16ToJavaString; 17 using base::android::ConvertUTF16ToJavaString;
18 using base::android::ScopedJavaLocalRef; 18 using base::android::ScopedJavaLocalRef;
19 19
20 DEFINE_WEB_CONTENTS_USER_DATA_KEY(ContextMenuHelper); 20 DEFINE_WEB_CONTENTS_USER_DATA_KEY(ContextMenuHelper);
21 21
22 ContextMenuHelper::ContextMenuHelper(content::WebContents* web_contents) 22 ContextMenuHelper::ContextMenuHelper(content::WebContents* web_contents)
23 : web_contents_(web_contents) { 23 : web_contents_(web_contents) {
24 JNIEnv* env = base::android::AttachCurrentThread(); 24 JNIEnv* env = base::android::AttachCurrentThread();
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 content::DownloadControllerAndroid::Get()->StartContextMenuDownload( 116 content::DownloadControllerAndroid::Get()->StartContextMenuDownload(
117 context_menu_params_, 117 context_menu_params_,
118 web_contents_, 118 web_contents_,
119 jis_link); 119 jis_link);
120 } 120 }
121 121
122 bool RegisterContextMenuHelper(JNIEnv* env) { 122 bool RegisterContextMenuHelper(JNIEnv* env) {
123 return RegisterNativesImpl(env) && 123 return RegisterNativesImpl(env) &&
124 ContextMenuParamsAndroid::RegisterNativesImpl(env); 124 ContextMenuParamsAndroid::RegisterNativesImpl(env);
125 } 125 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_context_menu/render_view_context_menu.cc ('k') | chrome/browser/ui/app_list/app_list_positioner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698