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

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

Issue 2103243002: Factor out ContentViewAndroidDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use px values/rebased Created 4 years, 4 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 jobject obj, 54 jobject obj,
55 WebContents* web_contents, 55 WebContents* web_contents,
56 const base::android::JavaRef<jobject>& view_android_delegate, 56 const base::android::JavaRef<jobject>& view_android_delegate,
57 ui::WindowAndroid* window_android, 57 ui::WindowAndroid* window_android,
58 jobject java_bridge_retained_object_set); 58 jobject java_bridge_retained_object_set);
59 59
60 // ContentViewCore implementation. 60 // ContentViewCore implementation.
61 base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override; 61 base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override;
62 WebContents* GetWebContents() const override; 62 WebContents* GetWebContents() const override;
63 ui::WindowAndroid* GetWindowAndroid() const override; 63 ui::WindowAndroid* GetWindowAndroid() const override;
64 const base::android::JavaRef<jobject>& GetViewAndroidDelegate()
65 const override;
66 bool ShowPastePopup(int x, int y) override; 64 bool ShowPastePopup(int x, int y) override;
67 void PauseOrResumeGeolocation(bool should_pause) override; 65 void PauseOrResumeGeolocation(bool should_pause) override;
68 66
69 void AddObserver(ContentViewCoreImplObserver* observer); 67 void AddObserver(ContentViewCoreImplObserver* observer);
70 void RemoveObserver(ContentViewCoreImplObserver* observer); 68 void RemoveObserver(ContentViewCoreImplObserver* observer);
71 69
72 // -------------------------------------------------------------------------- 70 // --------------------------------------------------------------------------
73 // Methods called from Java via JNI 71 // Methods called from Java via JNI
74 // -------------------------------------------------------------------------- 72 // --------------------------------------------------------------------------
75 73
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 void SetFocusInternal(bool focused); 439 void SetFocusInternal(bool focused);
442 440
443 // Send device_orientation_ to renderer. 441 // Send device_orientation_ to renderer.
444 void SendOrientationChangeEventInternal(); 442 void SendOrientationChangeEventInternal();
445 443
446 float dpi_scale() const { return dpi_scale_; } 444 float dpi_scale() const { return dpi_scale_; }
447 445
448 // A weak reference to the Java ContentViewCore object. 446 // A weak reference to the Java ContentViewCore object.
449 JavaObjectWeakGlobalRef java_ref_; 447 JavaObjectWeakGlobalRef java_ref_;
450 448
449 // Select popup view
450 ui::ViewAndroid::ScopedAnchorView select_popup_;
451
451 ui::ViewAndroid view_; 452 ui::ViewAndroid view_;
452 453
453 // Reference to the current WebContents used to determine how and what to 454 // Reference to the current WebContents used to determine how and what to
454 // display in the ContentViewCore. 455 // display in the ContentViewCore.
455 WebContentsImpl* web_contents_; 456 WebContentsImpl* web_contents_;
456 457
457 // Page scale factor. 458 // Page scale factor.
458 float page_scale_; 459 float page_scale_;
459 460
460 // Device scale factor. 461 // Device scale factor.
(...skipping 12 matching lines...) Expand all
473 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; 474 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_;
474 475
475 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 476 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
476 }; 477 };
477 478
478 bool RegisterContentViewCore(JNIEnv* env); 479 bool RegisterContentViewCore(JNIEnv* env);
479 480
480 } // namespace content 481 } // namespace content
481 482
482 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 483 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698