| 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/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 999 } | 999 } |
| 1000 | 1000 |
| 1001 void RenderWidgetHostViewAura::GetScreenInfo(WebScreenInfo* results) { | 1001 void RenderWidgetHostViewAura::GetScreenInfo(WebScreenInfo* results) { |
| 1002 GetScreenInfoForWindow(results, window_); | 1002 GetScreenInfoForWindow(results, window_); |
| 1003 } | 1003 } |
| 1004 | 1004 |
| 1005 gfx::Rect RenderWidgetHostViewAura::GetBoundsInRootWindow() { | 1005 gfx::Rect RenderWidgetHostViewAura::GetBoundsInRootWindow() { |
| 1006 return window_->GetToplevelWindow()->GetBoundsInRootWindow(); | 1006 return window_->GetToplevelWindow()->GetBoundsInRootWindow(); |
| 1007 } | 1007 } |
| 1008 | 1008 |
| 1009 void RenderWidgetHostViewAura::ProcessTouchAck(bool processed) { | 1009 void RenderWidgetHostViewAura::ProcessAckedTouchEvent( |
| 1010 const WebKit::WebTouchEvent& touch_event, |
| 1011 bool processed) { |
| 1010 // The ACKs for the touch-events arrive in the same sequence as they were | 1012 // The ACKs for the touch-events arrive in the same sequence as they were |
| 1011 // dispatched. | 1013 // dispatched. |
| 1012 aura::RootWindow* root_window = window_->GetRootWindow(); | 1014 aura::RootWindow* root_window = window_->GetRootWindow(); |
| 1013 if (root_window) | 1015 if (root_window) |
| 1014 root_window->AdvanceQueuedTouchEvent(window_, processed); | 1016 root_window->AdvanceQueuedTouchEvent(window_, processed); |
| 1015 } | 1017 } |
| 1016 | 1018 |
| 1017 void RenderWidgetHostViewAura::SetHasHorizontalScrollbar( | 1019 void RenderWidgetHostViewAura::SetHasHorizontalScrollbar( |
| 1018 bool has_horizontal_scrollbar) { | 1020 bool has_horizontal_scrollbar) { |
| 1019 // Not needed. Mac-only. | 1021 // Not needed. Mac-only. |
| (...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1875 RenderWidgetHost* widget) { | 1877 RenderWidgetHost* widget) { |
| 1876 return new RenderWidgetHostViewAura(widget); | 1878 return new RenderWidgetHostViewAura(widget); |
| 1877 } | 1879 } |
| 1878 | 1880 |
| 1879 // static | 1881 // static |
| 1880 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { | 1882 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { |
| 1881 GetScreenInfoForWindow(results, NULL); | 1883 GetScreenInfoForWindow(results, NULL); |
| 1882 } | 1884 } |
| 1883 | 1885 |
| 1884 } // namespace content | 1886 } // namespace content |
| OLD | NEW |