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

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

Issue 65273002: Add a mechanism to pause and resume geolocation requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 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 <vector> 8 #include <vector>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual void LoadUrl(NavigationController::LoadURLParams& params) OVERRIDE; 56 virtual void LoadUrl(NavigationController::LoadURLParams& params) OVERRIDE;
57 virtual jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj) OVERRIDE; 57 virtual jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj) OVERRIDE;
58 virtual void ShowPastePopup(int x, int y) OVERRIDE; 58 virtual void ShowPastePopup(int x, int y) OVERRIDE;
59 virtual unsigned int GetScaledContentTexture( 59 virtual unsigned int GetScaledContentTexture(
60 float scale, 60 float scale,
61 gfx::Size* out_size) OVERRIDE; 61 gfx::Size* out_size) OVERRIDE;
62 virtual float GetDpiScale() const OVERRIDE; 62 virtual float GetDpiScale() const OVERRIDE;
63 virtual void RequestContentClipping(const gfx::Rect& clipping, 63 virtual void RequestContentClipping(const gfx::Rect& clipping,
64 const gfx::Size& content_size) OVERRIDE; 64 const gfx::Size& content_size) OVERRIDE;
65 virtual void PauseVideo() OVERRIDE; 65 virtual void PauseVideo() OVERRIDE;
66 virtual void PauseOrResumeGeolocation(bool should_pause) OVERRIDE;
66 67
67 // -------------------------------------------------------------------------- 68 // --------------------------------------------------------------------------
68 // Methods called from Java via JNI 69 // Methods called from Java via JNI
69 // -------------------------------------------------------------------------- 70 // --------------------------------------------------------------------------
70 71
71 base::android::ScopedJavaLocalRef<jobject> GetWebContentsAndroid(JNIEnv* env, 72 base::android::ScopedJavaLocalRef<jobject> GetWebContentsAndroid(JNIEnv* env,
72 jobject obj); 73 jobject obj);
73 74
74 void OnJavaContentViewCoreDestroyed(JNIEnv* env, jobject obj); 75 void OnJavaContentViewCoreDestroyed(JNIEnv* env, jobject obj);
75 76
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 // like AutofillPopup. 373 // like AutofillPopup.
373 ui::ViewAndroid* view_android_; 374 ui::ViewAndroid* view_android_;
374 375
375 // The owning window that has a hold of main application activity. 376 // The owning window that has a hold of main application activity.
376 ui::WindowAndroid* window_android_; 377 ui::WindowAndroid* window_android_;
377 378
378 // The cache of device's current orientation set from Java side, this value 379 // The cache of device's current orientation set from Java side, this value
379 // will be sent to Renderer once it is ready. 380 // will be sent to Renderer once it is ready.
380 int device_orientation_; 381 int device_orientation_;
381 382
383 bool geolocation_needs_pause_;
384
382 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 385 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
383 }; 386 };
384 387
385 bool RegisterContentViewCore(JNIEnv* env); 388 bool RegisterContentViewCore(JNIEnv* env);
386 389
387 } // namespace content 390 } // namespace content
388 391
389 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 392 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698