OLD | NEW |
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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 // Otherwise, item's "checked" flag selects it. | 245 // Otherwise, item's "checked" flag selects it. |
246 void ShowSelectPopupMenu(RenderFrameHost* frame, | 246 void ShowSelectPopupMenu(RenderFrameHost* frame, |
247 const gfx::Rect& bounds, | 247 const gfx::Rect& bounds, |
248 const std::vector<MenuItem>& items, | 248 const std::vector<MenuItem>& items, |
249 int selected_item, | 249 int selected_item, |
250 bool multiple, | 250 bool multiple, |
251 bool right_aligned); | 251 bool right_aligned); |
252 // Hides a visible popup menu. | 252 // Hides a visible popup menu. |
253 void HideSelectPopupMenu(); | 253 void HideSelectPopupMenu(); |
254 | 254 |
255 // All sizes and offsets are in CSS pixels as cached by the renderer. | 255 // All sizes and offsets are in CSS pixels (except |top_show_pix|) |
| 256 // as cached by the renderer. |
256 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, | 257 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, |
257 float page_scale_factor, | 258 float page_scale_factor, |
258 const gfx::Vector2dF& page_scale_factor_limits, | 259 const gfx::Vector2dF& page_scale_factor_limits, |
259 const gfx::SizeF& content_size, | 260 const gfx::SizeF& content_size, |
260 const gfx::SizeF& viewport_size, | 261 const gfx::SizeF& viewport_size, |
261 const float top_controls_height, | 262 const float content_offset, |
262 const float top_controls_shown_ratio, | 263 const float top_shown_pix, |
| 264 bool top_changed, |
263 bool is_mobile_optimized_hint); | 265 bool is_mobile_optimized_hint); |
264 | 266 |
265 bool HasFocus(); | 267 bool HasFocus(); |
266 void RequestDisallowInterceptTouchEvent(); | 268 void RequestDisallowInterceptTouchEvent(); |
267 void OnGestureEventAck(const blink::WebGestureEvent& event, | 269 void OnGestureEventAck(const blink::WebGestureEvent& event, |
268 InputEventAckState ack_result); | 270 InputEventAckState ack_result); |
269 bool FilterInputEvent(const blink::WebInputEvent& event); | 271 bool FilterInputEvent(const blink::WebInputEvent& event); |
270 | 272 |
271 // Shows the disambiguation popup | 273 // Shows the disambiguation popup |
272 // |rect_pixels| --> window coordinates which |zoomed_bitmap| represents | 274 // |rect_pixels| --> window coordinates which |zoomed_bitmap| represents |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 382 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
381 | 383 |
382 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 384 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
383 }; | 385 }; |
384 | 386 |
385 bool RegisterContentViewCore(JNIEnv* env); | 387 bool RegisterContentViewCore(JNIEnv* env); |
386 | 388 |
387 } // namespace content | 389 } // namespace content |
388 | 390 |
389 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 391 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |