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

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

Issue 9980016: Delete background tab IOSurfaces on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed some perf issues on mac Created 8 years, 8 months 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) 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_win.h" 5 #include "content/browser/renderer_host/render_widget_host_view_win.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <peninputpanel_i.c> 8 #include <peninputpanel_i.c>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 2227 matching lines...) Expand 10 before | Expand all | Expand 10 after
2238 NOTREACHED(); 2238 NOTREACHED();
2239 } 2239 }
2240 2240
2241 void RenderWidgetHostViewWin::AcceleratedSurfaceSuspend() { 2241 void RenderWidgetHostViewWin::AcceleratedSurfaceSuspend() {
2242 if (!accelerated_surface_.get()) 2242 if (!accelerated_surface_.get())
2243 return; 2243 return;
2244 2244
2245 accelerated_surface_->Suspend(); 2245 accelerated_surface_->Suspend();
2246 } 2246 }
2247 2247
2248 bool RenderWidgetHostViewWin::HasAcceleratedSurface(
2249 const gfx::Size& desired_size) {
2250 return false;
2251 }
2252
2248 void RenderWidgetHostViewWin::SetAccessibilityFocus(int acc_obj_id) { 2253 void RenderWidgetHostViewWin::SetAccessibilityFocus(int acc_obj_id) {
2249 if (!render_widget_host_) 2254 if (!render_widget_host_)
2250 return; 2255 return;
2251 2256
2252 render_widget_host_->AccessibilitySetFocus(acc_obj_id); 2257 render_widget_host_->AccessibilitySetFocus(acc_obj_id);
2253 } 2258 }
2254 2259
2255 void RenderWidgetHostViewWin::AccessibilityDoDefaultAction(int acc_obj_id) { 2260 void RenderWidgetHostViewWin::AccessibilityDoDefaultAction(int acc_obj_id) {
2256 if (!render_widget_host_) 2261 if (!render_widget_host_)
2257 return; 2262 return;
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
2686 void RenderWidgetHostViewWin::ResetPointerDownContext() { 2691 void RenderWidgetHostViewWin::ResetPointerDownContext() {
2687 // If the default focus on the page is on an edit field and we did not 2692 // If the default focus on the page is on an edit field and we did not
2688 // receive a focus change in the context of a pointer down message, it means 2693 // receive a focus change in the context of a pointer down message, it means
2689 // that the pointer down message occurred on the edit field and we should 2694 // that the pointer down message occurred on the edit field and we should
2690 // display the on screen keyboard 2695 // display the on screen keyboard
2691 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) 2696 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_)
2692 DisplayOnScreenKeyboardIfNeeded(); 2697 DisplayOnScreenKeyboardIfNeeded();
2693 received_focus_change_after_pointer_down_ = false; 2698 received_focus_change_after_pointer_down_ = false;
2694 pointer_down_context_ = false; 2699 pointer_down_context_ = false;
2695 } 2700 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698