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_gtk.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" |
6 | 6 |
7 // If this gets included after the gtk headers, then a bunch of compiler | 7 // If this gets included after the gtk headers, then a bunch of compiler |
8 // errors happen because of a "#define Status int" in Xlib.h, which interacts | 8 // errors happen because of a "#define Status int" in Xlib.h, which interacts |
9 // badly with net::URLRequestStatus::Status. | 9 // badly with net::URLRequestStatus::Status. |
10 #include "content/common/view_messages.h" | 10 #include "content/common/view_messages.h" |
(...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1022 skia::PlatformCanvas* output, | 1022 skia::PlatformCanvas* output, |
1023 base::Callback<void(bool)> callback) { | 1023 base::Callback<void(bool)> callback) { |
1024 // TODO(mazda): Implement this. | 1024 // TODO(mazda): Implement this. |
1025 NOTIMPLEMENTED(); | 1025 NOTIMPLEMENTED(); |
1026 callback.Run(false); | 1026 callback.Run(false); |
1027 } | 1027 } |
1028 | 1028 |
1029 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped( | 1029 void RenderWidgetHostViewGtk::AcceleratedSurfaceBuffersSwapped( |
1030 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 1030 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
1031 int gpu_host_id) { | 1031 int gpu_host_id) { |
1032 RenderWidgetHostImpl::AcknowledgeSwapBuffers(params.route_id, gpu_host_id); | 1032 RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id, gpu_host_id); |
1033 } | 1033 } |
1034 | 1034 |
1035 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer( | 1035 void RenderWidgetHostViewGtk::AcceleratedSurfacePostSubBuffer( |
1036 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 1036 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
1037 int gpu_host_id) { | 1037 int gpu_host_id) { |
1038 RenderWidgetHostImpl::AcknowledgePostSubBuffer(params.route_id, gpu_host_id); | 1038 RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id, gpu_host_id); |
1039 } | 1039 } |
1040 | 1040 |
1041 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() { | 1041 void RenderWidgetHostViewGtk::AcceleratedSurfaceSuspend() { |
1042 } | 1042 } |
1043 | 1043 |
1044 bool RenderWidgetHostViewGtk::HasAcceleratedSurface( | 1044 bool RenderWidgetHostViewGtk::HasAcceleratedSurface( |
1045 const gfx::Size& desired_size) { | 1045 const gfx::Size& desired_size) { |
1046 // TODO(jbates) Implement this so this view can use GetBackingStore for both | 1046 // TODO(jbates) Implement this so this view can use GetBackingStore for both |
1047 // software and GPU frames. Defaulting to false just makes GetBackingStore | 1047 // software and GPU frames. Defaulting to false just makes GetBackingStore |
1048 // only useable for software frames. | 1048 // only useable for software frames. |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1507 parent, | 1507 parent, |
1508 static_cast<content::AccessibilityNodeData::State>(0), | 1508 static_cast<content::AccessibilityNodeData::State>(0), |
1509 this)); | 1509 this)); |
1510 } | 1510 } |
1511 BrowserAccessibilityGtk* root = | 1511 BrowserAccessibilityGtk* root = |
1512 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk(); | 1512 browser_accessibility_manager_->GetRoot()->ToBrowserAccessibilityGtk(); |
1513 | 1513 |
1514 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER); | 1514 atk_object_set_role(root->GetAtkObject(), ATK_ROLE_HTML_CONTAINER); |
1515 return root->GetAtkObject(); | 1515 return root->GetAtkObject(); |
1516 } | 1516 } |
OLD | NEW |