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

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: comments and piman feedback 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 2232 matching lines...) Expand 10 before | Expand all | Expand 10 after
2243 NOTREACHED(); 2243 NOTREACHED();
2244 } 2244 }
2245 2245
2246 void RenderWidgetHostViewWin::AcceleratedSurfaceSuspend() { 2246 void RenderWidgetHostViewWin::AcceleratedSurfaceSuspend() {
2247 if (!accelerated_surface_.get()) 2247 if (!accelerated_surface_.get())
2248 return; 2248 return;
2249 2249
2250 accelerated_surface_->Suspend(); 2250 accelerated_surface_->Suspend();
2251 } 2251 }
2252 2252
2253 bool RenderWidgetHostViewWin::HasAcceleratedSurface(
2254 const gfx::Size& desired_size) {
2255 // TODO(jbates) Implement this so this view can use GetBackingStore for both
2256 // software and GPU frames. Defaulting to false just makes GetBackingStore
2257 // only useable for software frames.
2258 return false;
2259 }
2260
2253 void RenderWidgetHostViewWin::SetAccessibilityFocus(int acc_obj_id) { 2261 void RenderWidgetHostViewWin::SetAccessibilityFocus(int acc_obj_id) {
2254 if (!render_widget_host_) 2262 if (!render_widget_host_)
2255 return; 2263 return;
2256 2264
2257 render_widget_host_->AccessibilitySetFocus(acc_obj_id); 2265 render_widget_host_->AccessibilitySetFocus(acc_obj_id);
2258 } 2266 }
2259 2267
2260 void RenderWidgetHostViewWin::AccessibilityDoDefaultAction(int acc_obj_id) { 2268 void RenderWidgetHostViewWin::AccessibilityDoDefaultAction(int acc_obj_id) {
2261 if (!render_widget_host_) 2269 if (!render_widget_host_)
2262 return; 2270 return;
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
2691 void RenderWidgetHostViewWin::ResetPointerDownContext() { 2699 void RenderWidgetHostViewWin::ResetPointerDownContext() {
2692 // If the default focus on the page is on an edit field and we did not 2700 // If the default focus on the page is on an edit field and we did not
2693 // receive a focus change in the context of a pointer down message, it means 2701 // receive a focus change in the context of a pointer down message, it means
2694 // that the pointer down message occurred on the edit field and we should 2702 // that the pointer down message occurred on the edit field and we should
2695 // display the on screen keyboard 2703 // display the on screen keyboard
2696 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) 2704 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_)
2697 DisplayOnScreenKeyboardIfNeeded(); 2705 DisplayOnScreenKeyboardIfNeeded();
2698 received_focus_change_after_pointer_down_ = false; 2706 received_focus_change_after_pointer_down_ = false;
2699 pointer_down_context_ = false; 2707 pointer_down_context_ = false;
2700 } 2708 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698