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

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

Issue 798723004: Fix copying from interstitial pages on OSX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address more comments. Created 5 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
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 #import <objc/runtime.h> 7 #import <objc/runtime.h>
8 #include <OpenGL/gl.h> 8 #include <OpenGL/gl.h>
9 #include <QuartzCore/QuartzCore.h> 9 #include <QuartzCore/QuartzCore.h>
10 10
(...skipping 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 1403
1404 return gfx::Range( 1404 return gfx::Range(
1405 request_range.start() - composition_range_.start(), 1405 request_range.start() - composition_range_.start(),
1406 request_range.end() - composition_range_.start()); 1406 request_range.end() - composition_range_.start());
1407 } 1407 }
1408 1408
1409 WebContents* RenderWidgetHostViewMac::GetWebContents() { 1409 WebContents* RenderWidgetHostViewMac::GetWebContents() {
1410 if (!render_widget_host_->IsRenderView()) 1410 if (!render_widget_host_->IsRenderView())
1411 return NULL; 1411 return NULL;
1412 1412
1413 return WebContents::FromRenderViewHost( 1413 return WebContents::FromRenderFrameHost(
Charlie Reis 2015/04/28 22:37:27 I'm looking at some of the GetAsWebContents() call
1414 RenderViewHost::From(render_widget_host_)); 1414 RenderViewHost::From(render_widget_host_)->GetMainFrame());
1415 } 1415 }
1416 1416
1417 bool RenderWidgetHostViewMac::GetCachedFirstRectForCharacterRange( 1417 bool RenderWidgetHostViewMac::GetCachedFirstRectForCharacterRange(
1418 NSRange range, 1418 NSRange range,
1419 NSRect* rect, 1419 NSRect* rect,
1420 NSRange* actual_range) { 1420 NSRange* actual_range) {
1421 DCHECK(rect); 1421 DCHECK(rect);
1422 // This exists to make IMEs more responsive, see http://crbug.com/115920 1422 // This exists to make IMEs more responsive, see http://crbug.com/115920
1423 TRACE_EVENT0("browser", 1423 TRACE_EVENT0("browser",
1424 "RenderWidgetHostViewMac::GetFirstRectForCharacterRange"); 1424 "RenderWidgetHostViewMac::GetFirstRectForCharacterRange");
(...skipping 2039 matching lines...) Expand 10 before | Expand all | Expand 10 after
3464 3464
3465 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding 3465 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding
3466 // regions that are not draggable. (See ControlRegionView in 3466 // regions that are not draggable. (See ControlRegionView in
3467 // native_app_window_cocoa.mm). This requires the render host view to be 3467 // native_app_window_cocoa.mm). This requires the render host view to be
3468 // draggable by default. 3468 // draggable by default.
3469 - (BOOL)mouseDownCanMoveWindow { 3469 - (BOOL)mouseDownCanMoveWindow {
3470 return YES; 3470 return YES;
3471 } 3471 }
3472 3472
3473 @end 3473 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698