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/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
(...skipping 2131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2142 rect.Inset(GetSystemMetrics(SM_CXSIZEFRAME), | 2142 rect.Inset(GetSystemMetrics(SM_CXSIZEFRAME), |
2143 GetSystemMetrics(SM_CYSIZEFRAME)); | 2143 GetSystemMetrics(SM_CYSIZEFRAME)); |
2144 } | 2144 } |
2145 | 2145 |
2146 return gfx::win::ScreenToDIPRect(rect); | 2146 return gfx::win::ScreenToDIPRect(rect); |
2147 #else | 2147 #else |
2148 return window_->GetToplevelWindow()->GetBoundsInScreen(); | 2148 return window_->GetToplevelWindow()->GetBoundsInScreen(); |
2149 #endif | 2149 #endif |
2150 } | 2150 } |
2151 | 2151 |
2152 void RenderWidgetHostViewAura::GestureEventAck(int gesture_event_type, | 2152 void RenderWidgetHostViewAura::GestureEventAck( |
2153 InputEventAckState ack_result) { | 2153 const blink::WebGestureEvent& event, |
| 2154 InputEventAckState ack_result) { |
2154 if (touch_editing_client_) | 2155 if (touch_editing_client_) |
2155 touch_editing_client_->GestureEventAck(gesture_event_type); | 2156 touch_editing_client_->GestureEventAck(event.type); |
2156 } | 2157 } |
2157 | 2158 |
2158 void RenderWidgetHostViewAura::ProcessAckedTouchEvent( | 2159 void RenderWidgetHostViewAura::ProcessAckedTouchEvent( |
2159 const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) { | 2160 const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) { |
2160 ScopedVector<ui::TouchEvent> events; | 2161 ScopedVector<ui::TouchEvent> events; |
2161 if (!MakeUITouchEventsFromWebTouchEvents(touch, &events, | 2162 if (!MakeUITouchEventsFromWebTouchEvents(touch, &events, |
2162 SCREEN_COORDINATES)) | 2163 SCREEN_COORDINATES)) |
2163 return; | 2164 return; |
2164 | 2165 |
2165 aura::WindowEventDispatcher* dispatcher = window_->GetDispatcher(); | 2166 aura::WindowEventDispatcher* dispatcher = window_->GetDispatcher(); |
(...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3566 RenderWidgetHost* widget) { | 3567 RenderWidgetHost* widget) { |
3567 return new RenderWidgetHostViewAura(widget); | 3568 return new RenderWidgetHostViewAura(widget); |
3568 } | 3569 } |
3569 | 3570 |
3570 // static | 3571 // static |
3571 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { | 3572 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { |
3572 GetScreenInfoForWindow(results, NULL); | 3573 GetScreenInfoForWindow(results, NULL); |
3573 } | 3574 } |
3574 | 3575 |
3575 } // namespace content | 3576 } // namespace content |
OLD | NEW |