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

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

Issue 679493002: [Android] Add a native pull-to-refresh overscroll effect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix lint Created 6 years, 1 month 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 WebContents* web_contents, 44 WebContents* web_contents,
45 ui::ViewAndroid* view_android, 45 ui::ViewAndroid* view_android,
46 ui::WindowAndroid* window_android, 46 ui::WindowAndroid* window_android,
47 jobject java_bridge_retained_object_set); 47 jobject java_bridge_retained_object_set);
48 48
49 // ContentViewCore implementation. 49 // ContentViewCore implementation.
50 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override; 50 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override;
51 virtual WebContents* GetWebContents() const override; 51 virtual WebContents* GetWebContents() const override;
52 virtual ui::ViewAndroid* GetViewAndroid() const override; 52 virtual ui::ViewAndroid* GetViewAndroid() const override;
53 virtual ui::WindowAndroid* GetWindowAndroid() const override; 53 virtual ui::WindowAndroid* GetWindowAndroid() const override;
54 virtual scoped_refptr<cc::Layer> GetLayer() const override; 54 virtual const scoped_refptr<cc::Layer>& GetLayer() const override;
55 virtual void ShowPastePopup(int x, int y) override; 55 virtual void ShowPastePopup(int x, int y) override;
56 virtual void GetScaledContentBitmap( 56 virtual void GetScaledContentBitmap(
57 float scale, 57 float scale,
58 SkColorType color_type, 58 SkColorType color_type,
59 gfx::Rect src_subrect, 59 gfx::Rect src_subrect,
60 const base::Callback<void(bool, const SkBitmap&)>& result_callback) 60 const base::Callback<void(bool, const SkBitmap&)>& result_callback)
61 override; 61 override;
62 virtual float GetDpiScale() const override; 62 virtual float GetDpiScale() const override;
63 virtual void PauseOrResumeGeolocation(bool should_pause) override; 63 virtual void PauseOrResumeGeolocation(bool should_pause) override;
64 virtual void RequestTextSurroundingSelection( 64 virtual void RequestTextSurroundingSelection(
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 virtual void RenderViewHostChanged(RenderViewHost* old_host, 289 virtual void RenderViewHostChanged(RenderViewHost* old_host,
290 RenderViewHost* new_host) override; 290 RenderViewHost* new_host) override;
291 virtual void WebContentsDestroyed() override; 291 virtual void WebContentsDestroyed() override;
292 292
293 // -------------------------------------------------------------------------- 293 // --------------------------------------------------------------------------
294 // Other private methods and data 294 // Other private methods and data
295 // -------------------------------------------------------------------------- 295 // --------------------------------------------------------------------------
296 296
297 void InitWebContents(); 297 void InitWebContents();
298 298
299 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); 299 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid() const;
300 300
301 blink::WebGestureEvent MakeGestureEvent( 301 blink::WebGestureEvent MakeGestureEvent(
302 blink::WebInputEvent::Type type, int64 time_ms, float x, float y) const; 302 blink::WebInputEvent::Type type, int64 time_ms, float x, float y) const;
303 303
304 gfx::Size GetViewportSizePix() const; 304 gfx::Size GetViewportSizePix() const;
305 int GetTopControlsLayoutHeightPix() const; 305 int GetTopControlsLayoutHeightPix() const;
306 306
307 void SendGestureEvent(const blink::WebGestureEvent& event); 307 void SendGestureEvent(const blink::WebGestureEvent& event);
308 308
309 // Update focus state of the RenderWidgetHostView. 309 // Update focus state of the RenderWidgetHostView.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 java_bridge_dispatcher_host_; 345 java_bridge_dispatcher_host_;
346 346
347 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 347 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
348 }; 348 };
349 349
350 bool RegisterContentViewCore(JNIEnv* env); 350 bool RegisterContentViewCore(JNIEnv* env);
351 351
352 } // namespace content 352 } // namespace content
353 353
354 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 354 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698