Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_win.cc

Issue 8513013: Plumb the partial swap though image transport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now with a few compile fixes (tested Win, Mac, Linux, and Aura) Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_win.h" 5 #include "content/browser/renderer_host/render_widget_host_view_win.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 2084 matching lines...) Expand 10 before | Expand all | Expand 10 after
2095 new AcceleratedSurfaceMsg_BuffersSwappedACK(params.route_id)); 2095 new AcceleratedSurfaceMsg_BuffersSwappedACK(params.route_id));
2096 2096
2097 accelerated_surface_->AsyncPresentAndAcknowledge( 2097 accelerated_surface_->AsyncPresentAndAcknowledge(
2098 params.size, 2098 params.size,
2099 params.surface_id, 2099 params.surface_id,
2100 base::Bind(PostTaskOnIOThread, 2100 base::Bind(PostTaskOnIOThread,
2101 FROM_HERE, 2101 FROM_HERE,
2102 acknowledge_task)); 2102 acknowledge_task));
2103 } 2103 }
2104 2104
2105 void RenderWidgetHostViewWin::AcceleratedSurfacePostSubBuffer(
2106 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
2107 int gpu_host_id) {
2108 NOTREACHED();
2109 }
2110
2105 void RenderWidgetHostViewWin::SetAccessibilityFocus(int acc_obj_id) { 2111 void RenderWidgetHostViewWin::SetAccessibilityFocus(int acc_obj_id) {
2106 if (!render_widget_host_) 2112 if (!render_widget_host_)
2107 return; 2113 return;
2108 2114
2109 render_widget_host_->AccessibilitySetFocus(acc_obj_id); 2115 render_widget_host_->AccessibilitySetFocus(acc_obj_id);
2110 } 2116 }
2111 2117
2112 void RenderWidgetHostViewWin::AccessibilityDoDefaultAction(int acc_obj_id) { 2118 void RenderWidgetHostViewWin::AccessibilityDoDefaultAction(int acc_obj_id) {
2113 if (!render_widget_host_) 2119 if (!render_widget_host_)
2114 return; 2120 return;
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
2478 2484
2479 size_t offset = selection_range_.GetMin() - selection_text_offset_; 2485 size_t offset = selection_range_.GetMin() - selection_text_offset_;
2480 memcpy(reinterpret_cast<char*>(reconv) + sizeof(RECONVERTSTRING), 2486 memcpy(reinterpret_cast<char*>(reconv) + sizeof(RECONVERTSTRING),
2481 selection_text_.c_str() + offset, len * sizeof(WCHAR)); 2487 selection_text_.c_str() + offset, len * sizeof(WCHAR));
2482 2488
2483 // According to Microsft API document, IMR_RECONVERTSTRING and 2489 // According to Microsft API document, IMR_RECONVERTSTRING and
2484 // IMR_DOCUMENTFEED should return reconv, but some applications return 2490 // IMR_DOCUMENTFEED should return reconv, but some applications return
2485 // need_size. 2491 // need_size.
2486 return reinterpret_cast<LRESULT>(reconv); 2492 return reinterpret_cast<LRESULT>(reconv);
2487 } 2493 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.h ('k') | content/browser/renderer_host/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698