| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "content/browser/renderer_host/render_widget_host_view_aura.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "content/browser/accessibility/browser_accessibility_manager.h" | 22 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 23 #include "content/browser/accessibility/browser_accessibility_state_impl.h" | 23 #include "content/browser/accessibility/browser_accessibility_state_impl.h" |
| 24 #include "content/browser/aura/compositor_resize_lock.h" | 24 #include "content/browser/aura/compositor_resize_lock.h" |
| 25 #include "content/browser/gpu/compositor_util.h" | 25 #include "content/browser/gpu/compositor_util.h" |
| 26 #include "content/browser/renderer_host/backing_store_aura.h" | 26 #include "content/browser/renderer_host/backing_store_aura.h" |
| 27 #include "content/browser/renderer_host/dip_util.h" | 27 #include "content/browser/renderer_host/dip_util.h" |
| 28 #include "content/browser/renderer_host/input/synthetic_gesture_target_aura.h" | 28 #include "content/browser/renderer_host/input/synthetic_gesture_target_aura.h" |
| 29 #include "content/browser/renderer_host/overscroll_controller.h" | 29 #include "content/browser/renderer_host/overscroll_controller.h" |
| 30 #include "content/browser/renderer_host/render_view_host_delegate.h" | 30 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 31 #include "content/browser/renderer_host/render_widget_host_impl.h" | 31 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 32 #include "content/browser/renderer_host/touch_smooth_scroll_gesture_aura.h" | |
| 33 #include "content/browser/renderer_host/ui_events_helper.h" | 32 #include "content/browser/renderer_host/ui_events_helper.h" |
| 34 #include "content/browser/renderer_host/web_input_event_aura.h" | 33 #include "content/browser/renderer_host/web_input_event_aura.h" |
| 35 #include "content/common/gpu/client/gl_helper.h" | 34 #include "content/common/gpu/client/gl_helper.h" |
| 36 #include "content/common/gpu/gpu_messages.h" | 35 #include "content/common/gpu/gpu_messages.h" |
| 37 #include "content/common/view_messages.h" | 36 #include "content/common/view_messages.h" |
| 38 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" | 37 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" |
| 39 #include "content/port/browser/render_widget_host_view_port.h" | 38 #include "content/port/browser/render_widget_host_view_port.h" |
| 40 #include "content/public/browser/browser_thread.h" | 39 #include "content/public/browser/browser_thread.h" |
| 41 #include "content/public/browser/content_browser_client.h" | 40 #include "content/public/browser/content_browser_client.h" |
| 42 #include "content/public/browser/render_process_host.h" | 41 #include "content/public/browser/render_process_host.h" |
| (...skipping 1969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2012 dispatcher->ProcessedTouchEvent((*iter), window_, result); | 2011 dispatcher->ProcessedTouchEvent((*iter), window_, result); |
| 2013 } | 2012 } |
| 2014 } | 2013 } |
| 2015 | 2014 |
| 2016 scoped_ptr<SyntheticGestureTarget> | 2015 scoped_ptr<SyntheticGestureTarget> |
| 2017 RenderWidgetHostViewAura::CreateSyntheticGestureTarget() { | 2016 RenderWidgetHostViewAura::CreateSyntheticGestureTarget() { |
| 2018 return scoped_ptr<SyntheticGestureTarget>( | 2017 return scoped_ptr<SyntheticGestureTarget>( |
| 2019 new SyntheticGestureTargetAura(host_)); | 2018 new SyntheticGestureTargetAura(host_)); |
| 2020 } | 2019 } |
| 2021 | 2020 |
| 2022 SyntheticGesture* RenderWidgetHostViewAura::CreateSmoothScrollGesture( | |
| 2023 bool scroll_down, | |
| 2024 int pixels_to_scroll, | |
| 2025 int mouse_event_x, | |
| 2026 int mouse_event_y) { | |
| 2027 return new TouchSmoothScrollGestureAura(scroll_down, | |
| 2028 pixels_to_scroll, | |
| 2029 mouse_event_x, | |
| 2030 mouse_event_y, | |
| 2031 window_); | |
| 2032 } | |
| 2033 | |
| 2034 void RenderWidgetHostViewAura::SetHasHorizontalScrollbar( | 2021 void RenderWidgetHostViewAura::SetHasHorizontalScrollbar( |
| 2035 bool has_horizontal_scrollbar) { | 2022 bool has_horizontal_scrollbar) { |
| 2036 // Not needed. Mac-only. | 2023 // Not needed. Mac-only. |
| 2037 } | 2024 } |
| 2038 | 2025 |
| 2039 void RenderWidgetHostViewAura::SetScrollOffsetPinning( | 2026 void RenderWidgetHostViewAura::SetScrollOffsetPinning( |
| 2040 bool is_pinned_to_left, bool is_pinned_to_right) { | 2027 bool is_pinned_to_left, bool is_pinned_to_right) { |
| 2041 // Not needed. Mac-only. | 2028 // Not needed. Mac-only. |
| 2042 } | 2029 } |
| 2043 | 2030 |
| (...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3334 RenderWidgetHost* widget) { | 3321 RenderWidgetHost* widget) { |
| 3335 return new RenderWidgetHostViewAura(widget); | 3322 return new RenderWidgetHostViewAura(widget); |
| 3336 } | 3323 } |
| 3337 | 3324 |
| 3338 // static | 3325 // static |
| 3339 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { | 3326 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { |
| 3340 GetScreenInfoForWindow(results, NULL); | 3327 GetScreenInfoForWindow(results, NULL); |
| 3341 } | 3328 } |
| 3342 | 3329 |
| 3343 } // namespace content | 3330 } // namespace content |
| OLD | NEW |