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

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

Issue 23983036: [Android] Provide synchronized input flush with BeginFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 2 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 <vector> 8 #include <vector>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 // Methods called from native code 293 // Methods called from native code
294 // -------------------------------------------------------------------------- 294 // --------------------------------------------------------------------------
295 295
296 gfx::Size GetPhysicalBackingSize() const; 296 gfx::Size GetPhysicalBackingSize() const;
297 gfx::Size GetViewportSizeDip() const; 297 gfx::Size GetViewportSizeDip() const;
298 gfx::Size GetViewportSizeOffsetDip() const; 298 gfx::Size GetViewportSizeOffsetDip() const;
299 float GetOverdrawBottomHeightDip() const; 299 float GetOverdrawBottomHeightDip() const;
300 300
301 void AttachLayer(scoped_refptr<cc::Layer> layer); 301 void AttachLayer(scoped_refptr<cc::Layer> layer);
302 void RemoveLayer(scoped_refptr<cc::Layer> layer); 302 void RemoveLayer(scoped_refptr<cc::Layer> layer);
303 void SetNeedsBeginFrame(bool enabled); 303 void AddBeginFrameSubscriber();
304 void RemoveBeginFrameSubscriber();
304 void SetNeedsAnimate(); 305 void SetNeedsAnimate();
305 306
306 private: 307 private:
307 class ContentViewUserData; 308 class ContentViewUserData;
308 309
309 friend class ContentViewUserData; 310 friend class ContentViewUserData;
310 virtual ~ContentViewCoreImpl(); 311 virtual ~ContentViewCoreImpl();
311 312
312 // NotificationObserver implementation. 313 // NotificationObserver implementation.
313 virtual void Observe(int type, 314 virtual void Observe(int type,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 ui::WindowAndroid* window_android_; 374 ui::WindowAndroid* window_android_;
374 375
375 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 376 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
376 }; 377 };
377 378
378 bool RegisterContentViewCore(JNIEnv* env); 379 bool RegisterContentViewCore(JNIEnv* env);
379 380
380 } // namespace content 381 } // namespace content
381 382
382 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 383 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698