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

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: Code review 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 bool IsFullscreenRequiredForOrientationLock() const; 260 bool IsFullscreenRequiredForOrientationLock() const;
261 261
262 // -------------------------------------------------------------------------- 262 // --------------------------------------------------------------------------
263 // Methods called from native code 263 // Methods called from native code
264 // -------------------------------------------------------------------------- 264 // --------------------------------------------------------------------------
265 265
266 gfx::Size GetPhysicalBackingSize() const; 266 gfx::Size GetPhysicalBackingSize() const;
267 gfx::Size GetViewportSizeDip() const; 267 gfx::Size GetViewportSizeDip() const;
268 float GetTopControlsLayoutHeightDip() const; 268 float GetTopControlsLayoutHeightDip() const;
269 269
270 void SetNeedsAnimate();
270 void AttachLayer(scoped_refptr<cc::Layer> layer); 271 void AttachLayer(scoped_refptr<cc::Layer> layer);
271 void RemoveLayer(scoped_refptr<cc::Layer> layer); 272 void RemoveLayer(scoped_refptr<cc::Layer> layer);
272 273
273 void SelectBetweenCoordinates(const gfx::PointF& start, 274 void SelectBetweenCoordinates(const gfx::PointF& start,
274 const gfx::PointF& end); 275 const gfx::PointF& end);
275 276
276 private: 277 private:
277 class ContentViewUserData; 278 class ContentViewUserData;
278 279
279 friend class ContentViewUserData; 280 friend class ContentViewUserData;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 java_bridge_dispatcher_host_; 341 java_bridge_dispatcher_host_;
341 342
342 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 343 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
343 }; 344 };
344 345
345 bool RegisterContentViewCore(JNIEnv* env); 346 bool RegisterContentViewCore(JNIEnv* env);
346 347
347 } // namespace content 348 } // namespace content
348 349
349 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 350 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698