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

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

Issue 1386403003: Resize only the virtual viewport when the OSK triggers a resize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add inset consumer view one off the root view Created 4 years, 9 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 <vector> 10 #include <vector>
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 358
359 void DidStopFlinging(); 359 void DidStopFlinging();
360 360
361 // Returns the context with which the ContentViewCore was created, typically 361 // Returns the context with which the ContentViewCore was created, typically
362 // the Activity context. 362 // the Activity context.
363 base::android::ScopedJavaLocalRef<jobject> GetContext() const; 363 base::android::ScopedJavaLocalRef<jobject> GetContext() const;
364 364
365 // Returns the viewport size after accounting for the viewport offset. 365 // Returns the viewport size after accounting for the viewport offset.
366 gfx::Size GetViewSize() const; 366 gfx::Size GetViewSize() const;
367 367
368 gfx::Size GetViewSizeWithOSKHidden() const;
369
368 void SetAccessibilityEnabledInternal(bool enabled); 370 void SetAccessibilityEnabledInternal(bool enabled);
369 371
370 bool IsFullscreenRequiredForOrientationLock() const; 372 bool IsFullscreenRequiredForOrientationLock() const;
371 373
372 // -------------------------------------------------------------------------- 374 // --------------------------------------------------------------------------
373 // Methods called from native code 375 // Methods called from native code
374 // -------------------------------------------------------------------------- 376 // --------------------------------------------------------------------------
375 377
376 gfx::Size GetPhysicalBackingSize() const; 378 gfx::Size GetPhysicalBackingSize() const;
377 gfx::Size GetViewportSizeDip() const; 379 gfx::Size GetViewportSizeDip() const;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; 471 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_;
470 472
471 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 473 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
472 }; 474 };
473 475
474 bool RegisterContentViewCore(JNIEnv* env); 476 bool RegisterContentViewCore(JNIEnv* env);
475 477
476 } // namespace content 478 } // namespace content
477 479
478 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 480 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698