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

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

Issue 2106753004: Introduce bottom controls to CC and let it respond to scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content-offset -> top-controls-shown renaming and respond to bokan's comments Created 4 years, 5 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 <memory> 10 #include <memory>
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 bool right_aligned); 307 bool right_aligned);
308 // Hides a visible popup menu. 308 // Hides a visible popup menu.
309 void HideSelectPopupMenu(); 309 void HideSelectPopupMenu();
310 310
311 // All sizes and offsets are in CSS pixels as cached by the renderer. 311 // All sizes and offsets are in CSS pixels as cached by the renderer.
312 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, 312 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset,
313 float page_scale_factor, 313 float page_scale_factor,
314 const gfx::Vector2dF& page_scale_factor_limits, 314 const gfx::Vector2dF& page_scale_factor_limits,
315 const gfx::SizeF& content_size, 315 const gfx::SizeF& content_size,
316 const gfx::SizeF& viewport_size, 316 const gfx::SizeF& viewport_size,
317 const gfx::Vector2dF& controls_offset, 317 const gfx::Vector2dF& topBarTranslateYCss,
318 const gfx::Vector2dF& content_offset, 318 const gfx::Vector2dF& topBarShownYCss,
319 const gfx::Vector2dF& bottomBarTranslateYCss,
320 const gfx::Vector2dF& bottomBarShownYCss,
319 bool is_mobile_optimized_hint, 321 bool is_mobile_optimized_hint,
320 const gfx::SelectionBound& selection_start); 322 const gfx::SelectionBound& selection_start);
321 323
322 void ForceUpdateImeAdapter(long native_ime_adapter); 324 void ForceUpdateImeAdapter(long native_ime_adapter);
323 void UpdateImeAdapter(long native_ime_adapter, 325 void UpdateImeAdapter(long native_ime_adapter,
324 int text_input_type, 326 int text_input_type,
325 int text_input_flags, 327 int text_input_flags,
326 const std::string& text, 328 const std::string& text,
327 int selection_start, 329 int selection_start,
328 int selection_end, 330 int selection_end,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 bool IsFullscreenRequiredForOrientationLock() const; 376 bool IsFullscreenRequiredForOrientationLock() const;
375 377
376 // -------------------------------------------------------------------------- 378 // --------------------------------------------------------------------------
377 // Methods called from native code 379 // Methods called from native code
378 // -------------------------------------------------------------------------- 380 // --------------------------------------------------------------------------
379 381
380 gfx::Size GetPhysicalBackingSize() const; 382 gfx::Size GetPhysicalBackingSize() const;
381 gfx::Size GetViewportSizeDip() const; 383 gfx::Size GetViewportSizeDip() const;
382 bool DoTopControlsShrinkBlinkSize() const; 384 bool DoTopControlsShrinkBlinkSize() const;
383 float GetTopControlsHeightDip() const; 385 float GetTopControlsHeightDip() const;
386 float GetBottomControlsHeightDip() const;
384 387
385 void AttachLayer(scoped_refptr<cc::Layer> layer); 388 void AttachLayer(scoped_refptr<cc::Layer> layer);
386 void RemoveLayer(scoped_refptr<cc::Layer> layer); 389 void RemoveLayer(scoped_refptr<cc::Layer> layer);
387 390
388 void MoveRangeSelectionExtent(const gfx::PointF& extent); 391 void MoveRangeSelectionExtent(const gfx::PointF& extent);
389 392
390 void SelectBetweenCoordinates(const gfx::PointF& base, 393 void SelectBetweenCoordinates(const gfx::PointF& base,
391 const gfx::PointF& extent); 394 const gfx::PointF& extent);
392 395
393 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip); 396 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip);
(...skipping 24 matching lines...) Expand all
418 421
419 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid() const; 422 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid() const;
420 423
421 blink::WebGestureEvent MakeGestureEvent(blink::WebInputEvent::Type type, 424 blink::WebGestureEvent MakeGestureEvent(blink::WebInputEvent::Type type,
422 int64_t time_ms, 425 int64_t time_ms,
423 float x, 426 float x,
424 float y) const; 427 float y) const;
425 428
426 gfx::Size GetViewportSizePix() const; 429 gfx::Size GetViewportSizePix() const;
427 int GetTopControlsHeightPix() const; 430 int GetTopControlsHeightPix() const;
431 int GetBottomControlsHeightPix() const;
428 432
429 void SendGestureEvent(const blink::WebGestureEvent& event); 433 void SendGestureEvent(const blink::WebGestureEvent& event);
430 434
431 // Update focus state of the RenderWidgetHostView. 435 // Update focus state of the RenderWidgetHostView.
432 void SetFocusInternal(bool focused); 436 void SetFocusInternal(bool focused);
433 437
434 // Send device_orientation_ to renderer. 438 // Send device_orientation_ to renderer.
435 void SendOrientationChangeEventInternal(); 439 void SendOrientationChangeEventInternal();
436 440
437 float dpi_scale() const { return dpi_scale_; } 441 float dpi_scale() const { return dpi_scale_; }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; 475 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_;
472 476
473 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 477 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
474 }; 478 };
475 479
476 bool RegisterContentViewCore(JNIEnv* env); 480 bool RegisterContentViewCore(JNIEnv* env);
477 481
478 } // namespace content 482 } // namespace content
479 483
480 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 484 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698