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 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: Created 5 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 282
283 void DidStopFlinging(); 283 void DidStopFlinging();
284 284
285 // Returns the context with which the ContentViewCore was created, typically 285 // Returns the context with which the ContentViewCore was created, typically
286 // the Activity context. 286 // the Activity context.
287 base::android::ScopedJavaLocalRef<jobject> GetContext() const; 287 base::android::ScopedJavaLocalRef<jobject> GetContext() const;
288 288
289 // Returns the viewport size after accounting for the viewport offset. 289 // Returns the viewport size after accounting for the viewport offset.
290 gfx::Size GetViewSize() const; 290 gfx::Size GetViewSize() const;
291 291
292 gfx::Size GetViewSizeWithoutOSK() const;
293
292 void SetAccessibilityEnabledInternal(bool enabled); 294 void SetAccessibilityEnabledInternal(bool enabled);
293 295
294 bool IsFullscreenRequiredForOrientationLock() const; 296 bool IsFullscreenRequiredForOrientationLock() const;
295 297
296 // -------------------------------------------------------------------------- 298 // --------------------------------------------------------------------------
297 // Methods called from native code 299 // Methods called from native code
298 // -------------------------------------------------------------------------- 300 // --------------------------------------------------------------------------
299 301
300 gfx::Size GetPhysicalBackingSize() const; 302 gfx::Size GetPhysicalBackingSize() const;
301 gfx::Size GetViewportSizeDip() const; 303 gfx::Size GetViewportSizeDip() const;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; 391 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_;
390 392
391 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 393 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
392 }; 394 };
393 395
394 bool RegisterContentViewCore(JNIEnv* env); 396 bool RegisterContentViewCore(JNIEnv* env);
395 397
396 } // namespace content 398 } // namespace content
397 399
398 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 400 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698