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

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: Addressed comments Created 4 years, 5 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 cc::Layer* GetLayer() const override; 64 cc::Layer* GetLayer() const override;
67 bool ShowPastePopup(int x, int y) override; 65 bool ShowPastePopup(int x, int y) override;
68 void PauseOrResumeGeolocation(bool should_pause) override; 66 void PauseOrResumeGeolocation(bool should_pause) override;
69 void RequestTextSurroundingSelection( 67 void RequestTextSurroundingSelection(
70 int max_length, 68 int max_length,
71 const base::Callback<void(const base::string16& content, 69 const base::Callback<void(const base::string16& content,
72 int start_offset, 70 int start_offset,
73 int end_offset)>& callback) override; 71 int end_offset)>& callback) override;
74 72
75 void AddObserver(ContentViewCoreImplObserver* observer); 73 void AddObserver(ContentViewCoreImplObserver* observer);
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 void SetFocusInternal(bool focused); 445 void SetFocusInternal(bool focused);
448 446
449 // Send device_orientation_ to renderer. 447 // Send device_orientation_ to renderer.
450 void SendOrientationChangeEventInternal(); 448 void SendOrientationChangeEventInternal();
451 449
452 float dpi_scale() const { return dpi_scale_; } 450 float dpi_scale() const { return dpi_scale_; }
453 451
454 // A weak reference to the Java ContentViewCore object. 452 // A weak reference to the Java ContentViewCore object.
455 JavaObjectWeakGlobalRef java_ref_; 453 JavaObjectWeakGlobalRef java_ref_;
456 454
455 // Select popup view
456 ui::ViewAndroid::ScopedAnchorView select_popup_;
457
457 ui::ViewAndroid view_; 458 ui::ViewAndroid view_;
458 459
459 // Reference to the current WebContents used to determine how and what to 460 // Reference to the current WebContents used to determine how and what to
460 // display in the ContentViewCore. 461 // display in the ContentViewCore.
461 WebContentsImpl* web_contents_; 462 WebContentsImpl* web_contents_;
462 463
463 // Page scale factor. 464 // Page scale factor.
464 float page_scale_; 465 float page_scale_;
465 466
466 // Device scale factor. 467 // Device scale factor.
(...skipping 12 matching lines...) Expand all
479 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; 480 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_;
480 481
481 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 482 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
482 }; 483 };
483 484
484 bool RegisterContentViewCore(JNIEnv* env); 485 bool RegisterContentViewCore(JNIEnv* env);
485 486
486 } // namespace content 487 } // namespace content
487 488
488 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 489 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698