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

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

Issue 476113004: Replace overdraw_bottom_height with top_controls_layout_height. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ScrollViewportRounding test Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // Hides a visible popup menu. 223 // Hides a visible popup menu.
224 void HideSelectPopupMenu(); 224 void HideSelectPopupMenu();
225 225
226 // All sizes and offsets are in CSS pixels as cached by the renderer. 226 // All sizes and offsets are in CSS pixels as cached by the renderer.
227 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, 227 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset,
228 float page_scale_factor, 228 float page_scale_factor,
229 const gfx::Vector2dF& page_scale_factor_limits, 229 const gfx::Vector2dF& page_scale_factor_limits,
230 const gfx::SizeF& content_size, 230 const gfx::SizeF& content_size,
231 const gfx::SizeF& viewport_size, 231 const gfx::SizeF& viewport_size,
232 const gfx::Vector2dF& controls_offset, 232 const gfx::Vector2dF& controls_offset,
233 const gfx::Vector2dF& content_offset, 233 const gfx::Vector2dF& content_offset);
234 float overdraw_bottom_height);
235 234
236 void UpdateImeAdapter(long native_ime_adapter, 235 void UpdateImeAdapter(long native_ime_adapter,
237 int text_input_type, 236 int text_input_type,
238 int text_input_flags, 237 int text_input_flags,
239 const std::string& text, 238 const std::string& text,
240 int selection_start, 239 int selection_start,
241 int selection_end, 240 int selection_end,
242 int composition_start, 241 int composition_start,
243 int composition_end, 242 int composition_end,
244 bool show_ime_if_needed, 243 bool show_ime_if_needed,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 void SetAccessibilityEnabledInternal(bool enabled); 283 void SetAccessibilityEnabledInternal(bool enabled);
285 284
286 bool IsFullscreenRequiredForOrientationLock() const; 285 bool IsFullscreenRequiredForOrientationLock() const;
287 286
288 // -------------------------------------------------------------------------- 287 // --------------------------------------------------------------------------
289 // Methods called from native code 288 // Methods called from native code
290 // -------------------------------------------------------------------------- 289 // --------------------------------------------------------------------------
291 290
292 gfx::Size GetPhysicalBackingSize() const; 291 gfx::Size GetPhysicalBackingSize() const;
293 gfx::Size GetViewportSizeDip() const; 292 gfx::Size GetViewportSizeDip() const;
294 gfx::Size GetViewportSizeOffsetDip() const; 293 float GetTopControlsLayoutHeightDip() const;
295 float GetOverdrawBottomHeightDip() const;
296 294
297 void AttachLayer(scoped_refptr<cc::Layer> layer); 295 void AttachLayer(scoped_refptr<cc::Layer> layer);
298 void RemoveLayer(scoped_refptr<cc::Layer> layer); 296 void RemoveLayer(scoped_refptr<cc::Layer> layer);
299 297
300 void SelectBetweenCoordinates(const gfx::PointF& start, 298 void SelectBetweenCoordinates(const gfx::PointF& start,
301 const gfx::PointF& end); 299 const gfx::PointF& end);
302 300
303 private: 301 private:
304 class ContentViewUserData; 302 class ContentViewUserData;
305 303
(...skipping 11 matching lines...) Expand all
317 // -------------------------------------------------------------------------- 315 // --------------------------------------------------------------------------
318 316
319 void InitWebContents(); 317 void InitWebContents();
320 318
321 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); 319 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid();
322 320
323 blink::WebGestureEvent MakeGestureEvent( 321 blink::WebGestureEvent MakeGestureEvent(
324 blink::WebInputEvent::Type type, int64 time_ms, float x, float y) const; 322 blink::WebInputEvent::Type type, int64 time_ms, float x, float y) const;
325 323
326 gfx::Size GetViewportSizePix() const; 324 gfx::Size GetViewportSizePix() const;
327 gfx::Size GetViewportSizeOffsetPix() const; 325 int GetTopControlsLayoutHeightPix() const;
328 326
329 void SendGestureEvent(const blink::WebGestureEvent& event); 327 void SendGestureEvent(const blink::WebGestureEvent& event);
330 328
331 // Update focus state of the RenderWidgetHostView. 329 // Update focus state of the RenderWidgetHostView.
332 void SetFocusInternal(bool focused); 330 void SetFocusInternal(bool focused);
333 331
334 // Send device_orientation_ to renderer. 332 // Send device_orientation_ to renderer.
335 void SendOrientationChangeEventInternal(); 333 void SendOrientationChangeEventInternal();
336 334
337 float dpi_scale() const { return dpi_scale_; } 335 float dpi_scale() const { return dpi_scale_; }
(...skipping 29 matching lines...) Expand all
367 java_bridge_dispatcher_host_; 365 java_bridge_dispatcher_host_;
368 366
369 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 367 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
370 }; 368 };
371 369
372 bool RegisterContentViewCore(JNIEnv* env); 370 bool RegisterContentViewCore(JNIEnv* env);
373 371
374 } // namespace content 372 } // namespace content
375 373
376 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 374 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698