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

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

Issue 2085973004: Color: Remove ViewMsg_ColorProfile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't change profile yet Created 4 years, 6 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 #include <stdint.h> 10 #include <stdint.h>
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after
1516 } 1516 }
1517 1517
1518 void RenderWidgetHostViewMac::ClearCompositorFrame() { 1518 void RenderWidgetHostViewMac::ClearCompositorFrame() {
1519 delegated_frame_host_->ClearDelegatedFrame(); 1519 delegated_frame_host_->ClearDelegatedFrame();
1520 } 1520 }
1521 1521
1522 void RenderWidgetHostViewMac::GetScreenInfo(blink::WebScreenInfo* results) { 1522 void RenderWidgetHostViewMac::GetScreenInfo(blink::WebScreenInfo* results) {
1523 *results = GetWebScreenInfo(GetNativeView()); 1523 *results = GetWebScreenInfo(GetNativeView());
1524 } 1524 }
1525 1525
1526 bool RenderWidgetHostViewMac::GetScreenColorProfile(
1527 std::vector<char>* color_profile) {
1528 DCHECK(color_profile->empty());
1529 NSWindow* window = GetWebContents()->GetTopLevelNativeWindow();
1530 return gfx::GetDisplayColorProfile(window, color_profile);
1531 }
1532
1533 gfx::Rect RenderWidgetHostViewMac::GetBoundsInRootWindow() { 1526 gfx::Rect RenderWidgetHostViewMac::GetBoundsInRootWindow() {
1534 // TODO(shess): In case of !window, the view has been removed from 1527 // TODO(shess): In case of !window, the view has been removed from
1535 // the view hierarchy because the tab isn't main. Could retrieve 1528 // the view hierarchy because the tab isn't main. Could retrieve
1536 // the information from the main tab for our window. 1529 // the information from the main tab for our window.
1537 NSWindow* enclosing_window = ApparentWindowForView(cocoa_view_); 1530 NSWindow* enclosing_window = ApparentWindowForView(cocoa_view_);
1538 if (!enclosing_window) 1531 if (!enclosing_window)
1539 return gfx::Rect(); 1532 return gfx::Rect();
1540 1533
1541 NSRect bounds = [enclosing_window frame]; 1534 NSRect bounds = [enclosing_window frame];
1542 return FlipNSRectToRectScreen(bounds); 1535 return FlipNSRectToRectScreen(bounds);
(...skipping 1903 matching lines...) Expand 10 before | Expand all | Expand 10 after
3446 3439
3447 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding 3440 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding
3448 // regions that are not draggable. (See ControlRegionView in 3441 // regions that are not draggable. (See ControlRegionView in
3449 // native_app_window_cocoa.mm). This requires the render host view to be 3442 // native_app_window_cocoa.mm). This requires the render host view to be
3450 // draggable by default. 3443 // draggable by default.
3451 - (BOOL)mouseDownCanMoveWindow { 3444 - (BOOL)mouseDownCanMoveWindow {
3452 return YES; 3445 return YES;
3453 } 3446 }
3454 3447
3455 @end 3448 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698