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 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2037 void RenderWidgetHostViewAura::SetHasHorizontalScrollbar( | 2037 void RenderWidgetHostViewAura::SetHasHorizontalScrollbar( |
2038 bool has_horizontal_scrollbar) { | 2038 bool has_horizontal_scrollbar) { |
2039 // Not needed. Mac-only. | 2039 // Not needed. Mac-only. |
2040 } | 2040 } |
2041 | 2041 |
2042 void RenderWidgetHostViewAura::SetScrollOffsetPinning( | 2042 void RenderWidgetHostViewAura::SetScrollOffsetPinning( |
2043 bool is_pinned_to_left, bool is_pinned_to_right) { | 2043 bool is_pinned_to_left, bool is_pinned_to_right) { |
2044 // Not needed. Mac-only. | 2044 // Not needed. Mac-only. |
2045 } | 2045 } |
2046 | 2046 |
2047 void RenderWidgetHostViewAura::OnAccessibilityNotifications( | 2047 void RenderWidgetHostViewAura::OnAccessibilityEvents( |
2048 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { | 2048 const std::vector<AccessibilityHostMsg_EventParams>& params) { |
2049 BrowserAccessibilityManager* manager = | 2049 BrowserAccessibilityManager* manager = |
2050 GetOrCreateBrowserAccessibilityManager(); | 2050 GetOrCreateBrowserAccessibilityManager(); |
2051 if (manager) | 2051 if (manager) |
2052 manager->OnAccessibilityNotifications(params); | 2052 manager->OnAccessibilityEvents(params); |
2053 } | 2053 } |
2054 | 2054 |
2055 gfx::GLSurfaceHandle RenderWidgetHostViewAura::GetCompositingSurface() { | 2055 gfx::GLSurfaceHandle RenderWidgetHostViewAura::GetCompositingSurface() { |
2056 if (shared_surface_handle_.is_null()) { | 2056 if (shared_surface_handle_.is_null()) { |
2057 ImageTransportFactory* factory = ImageTransportFactory::GetInstance(); | 2057 ImageTransportFactory* factory = ImageTransportFactory::GetInstance(); |
2058 shared_surface_handle_ = factory->CreateSharedSurfaceHandle(); | 2058 shared_surface_handle_ = factory->CreateSharedSurfaceHandle(); |
2059 if (!shared_surface_handle_.is_null()) | 2059 if (!shared_surface_handle_.is_null()) |
2060 factory->AddObserver(this); | 2060 factory->AddObserver(this); |
2061 } | 2061 } |
2062 return shared_surface_handle_; | 2062 return shared_surface_handle_; |
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3259 RenderWidgetHost* widget) { | 3259 RenderWidgetHost* widget) { |
3260 return new RenderWidgetHostViewAura(widget); | 3260 return new RenderWidgetHostViewAura(widget); |
3261 } | 3261 } |
3262 | 3262 |
3263 // static | 3263 // static |
3264 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { | 3264 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { |
3265 GetScreenInfoForWindow(results, NULL); | 3265 GetScreenInfoForWindow(results, NULL); |
3266 } | 3266 } |
3267 | 3267 |
3268 } // namespace content | 3268 } // namespace content |
OLD | NEW |