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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 9582003: Support browser side thumbnailing for GPU composited pages on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 9 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_mac.h" 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
6 6
7 #include <QuartzCore/QuartzCore.h> 7 #include <QuartzCore/QuartzCore.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 } 1119 }
1120 } 1120 }
1121 1121
1122 void RenderWidgetHostViewMac::SetBackground(const SkBitmap& background) { 1122 void RenderWidgetHostViewMac::SetBackground(const SkBitmap& background) {
1123 content::RenderWidgetHostViewBase::SetBackground(background); 1123 content::RenderWidgetHostViewBase::SetBackground(background);
1124 if (render_widget_host_) 1124 if (render_widget_host_)
1125 render_widget_host_->Send(new ViewMsg_SetBackground( 1125 render_widget_host_->Send(new ViewMsg_SetBackground(
1126 render_widget_host_->GetRoutingID(), background)); 1126 render_widget_host_->GetRoutingID(), background));
1127 } 1127 }
1128 1128
1129 bool RenderWidgetHostViewMac::CopyFromCompositingSurface(
1130 const gfx::Size& size,
1131 skia::PlatformCanvas* output) {
1132 // TODO(mazda): Implement this.
1133 NOTIMPLEMENTED();
1134 return false;
1135 }
1136
1129 void RenderWidgetHostViewMac::OnAccessibilityNotifications( 1137 void RenderWidgetHostViewMac::OnAccessibilityNotifications(
1130 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { 1138 const std::vector<AccessibilityHostMsg_NotificationParams>& params) {
1131 if (!GetBrowserAccessibilityManager()) { 1139 if (!GetBrowserAccessibilityManager()) {
1132 SetBrowserAccessibilityManager( 1140 SetBrowserAccessibilityManager(
1133 BrowserAccessibilityManager::CreateEmptyDocument( 1141 BrowserAccessibilityManager::CreateEmptyDocument(
1134 cocoa_view_, static_cast<WebAccessibility::State>(0), NULL)); 1142 cocoa_view_, static_cast<WebAccessibility::State>(0), NULL));
1135 } 1143 }
1136 GetBrowserAccessibilityManager()->OnAccessibilityNotifications(params); 1144 GetBrowserAccessibilityManager()->OnAccessibilityNotifications(params);
1137 } 1145 }
1138 1146
(...skipping 1630 matching lines...) Expand 10 before | Expand all | Expand 10 after
2769 if (!string) return NO; 2777 if (!string) return NO;
2770 2778
2771 // If the user is currently using an IME, confirm the IME input, 2779 // If the user is currently using an IME, confirm the IME input,
2772 // and then insert the text from the service, the same as TextEdit and Safari. 2780 // and then insert the text from the service, the same as TextEdit and Safari.
2773 [self confirmComposition]; 2781 [self confirmComposition];
2774 [self insertText:string]; 2782 [self insertText:string];
2775 return YES; 2783 return YES;
2776 } 2784 }
2777 2785
2778 @end 2786 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698