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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 } | 998 } |
999 | 999 |
1000 void RenderWidgetHostViewAura::GetScreenInfo(WebScreenInfo* results) { | 1000 void RenderWidgetHostViewAura::GetScreenInfo(WebScreenInfo* results) { |
1001 GetScreenInfoForWindow(results, window_); | 1001 GetScreenInfoForWindow(results, window_); |
1002 } | 1002 } |
1003 | 1003 |
1004 gfx::Rect RenderWidgetHostViewAura::GetBoundsInRootWindow() { | 1004 gfx::Rect RenderWidgetHostViewAura::GetBoundsInRootWindow() { |
1005 return window_->GetToplevelWindow()->GetBoundsInRootWindow(); | 1005 return window_->GetToplevelWindow()->GetBoundsInRootWindow(); |
1006 } | 1006 } |
1007 | 1007 |
1008 void RenderWidgetHostViewAura::ProcessTouchAck( | 1008 void RenderWidgetHostViewAura::ProcessTouchAck(bool processed) { |
1009 WebKit::WebInputEvent::Type type, bool processed) { | |
1010 // The ACKs for the touch-events arrive in the same sequence as they were | 1009 // The ACKs for the touch-events arrive in the same sequence as they were |
1011 // dispatched. | 1010 // dispatched. |
1012 aura::RootWindow* root_window = window_->GetRootWindow(); | 1011 aura::RootWindow* root_window = window_->GetRootWindow(); |
1013 if (root_window) | 1012 if (root_window) |
1014 root_window->AdvanceQueuedTouchEvent(window_, processed); | 1013 root_window->AdvanceQueuedTouchEvent(window_, processed); |
1015 } | 1014 } |
1016 | 1015 |
1017 void RenderWidgetHostViewAura::SetHasHorizontalScrollbar( | 1016 void RenderWidgetHostViewAura::SetHasHorizontalScrollbar( |
1018 bool has_horizontal_scrollbar) { | 1017 bool has_horizontal_scrollbar) { |
1019 // Not needed. Mac-only. | 1018 // Not needed. Mac-only. |
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1874 RenderWidgetHost* widget) { | 1873 RenderWidgetHost* widget) { |
1875 return new RenderWidgetHostViewAura(widget); | 1874 return new RenderWidgetHostViewAura(widget); |
1876 } | 1875 } |
1877 | 1876 |
1878 // static | 1877 // static |
1879 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { | 1878 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { |
1880 GetScreenInfoForWindow(results, NULL); | 1879 GetScreenInfoForWindow(results, NULL); |
1881 } | 1880 } |
1882 | 1881 |
1883 } // namespace content | 1882 } // namespace content |
OLD | NEW |