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

Side by Side Diff: content/renderer/render_widget.cc

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
« no previous file with comments | « content/renderer/render_widget.h ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 IPC_MESSAGE_HANDLER(InputMsg_MouseCaptureLost, OnMouseCaptureLost) 476 IPC_MESSAGE_HANDLER(InputMsg_MouseCaptureLost, OnMouseCaptureLost)
477 IPC_MESSAGE_HANDLER(InputMsg_SetFocus, OnSetFocus) 477 IPC_MESSAGE_HANDLER(InputMsg_SetFocus, OnSetFocus)
478 IPC_MESSAGE_HANDLER(InputMsg_SyntheticGestureCompleted, 478 IPC_MESSAGE_HANDLER(InputMsg_SyntheticGestureCompleted,
479 OnSyntheticGestureCompleted) 479 OnSyntheticGestureCompleted)
480 IPC_MESSAGE_HANDLER(ViewMsg_Close, OnClose) 480 IPC_MESSAGE_HANDLER(ViewMsg_Close, OnClose)
481 IPC_MESSAGE_HANDLER(ViewMsg_Resize, OnResize) 481 IPC_MESSAGE_HANDLER(ViewMsg_Resize, OnResize)
482 IPC_MESSAGE_HANDLER(ViewMsg_EnableDeviceEmulation, 482 IPC_MESSAGE_HANDLER(ViewMsg_EnableDeviceEmulation,
483 OnEnableDeviceEmulation) 483 OnEnableDeviceEmulation)
484 IPC_MESSAGE_HANDLER(ViewMsg_DisableDeviceEmulation, 484 IPC_MESSAGE_HANDLER(ViewMsg_DisableDeviceEmulation,
485 OnDisableDeviceEmulation) 485 OnDisableDeviceEmulation)
486 IPC_MESSAGE_HANDLER(ViewMsg_ColorProfile, OnColorProfile)
487 IPC_MESSAGE_HANDLER(ViewMsg_ChangeResizeRect, OnChangeResizeRect) 486 IPC_MESSAGE_HANDLER(ViewMsg_ChangeResizeRect, OnChangeResizeRect)
488 IPC_MESSAGE_HANDLER(ViewMsg_WasHidden, OnWasHidden) 487 IPC_MESSAGE_HANDLER(ViewMsg_WasHidden, OnWasHidden)
489 IPC_MESSAGE_HANDLER(ViewMsg_WasShown, OnWasShown) 488 IPC_MESSAGE_HANDLER(ViewMsg_WasShown, OnWasShown)
490 IPC_MESSAGE_HANDLER(ViewMsg_Repaint, OnRepaint) 489 IPC_MESSAGE_HANDLER(ViewMsg_Repaint, OnRepaint)
491 IPC_MESSAGE_HANDLER(ViewMsg_SetTextDirection, OnSetTextDirection) 490 IPC_MESSAGE_HANDLER(ViewMsg_SetTextDirection, OnSetTextDirection)
492 IPC_MESSAGE_HANDLER(ViewMsg_Move_ACK, OnRequestMoveAck) 491 IPC_MESSAGE_HANDLER(ViewMsg_Move_ACK, OnRequestMoveAck)
493 IPC_MESSAGE_HANDLER(ViewMsg_UpdateScreenRects, OnUpdateScreenRects) 492 IPC_MESSAGE_HANDLER(ViewMsg_UpdateScreenRects, OnUpdateScreenRects)
494 IPC_MESSAGE_HANDLER(ViewMsg_SetSurfaceIdNamespace, OnSetSurfaceIdNamespace) 493 IPC_MESSAGE_HANDLER(ViewMsg_SetSurfaceIdNamespace, OnSetSurfaceIdNamespace)
495 IPC_MESSAGE_HANDLER(ViewMsg_WaitForNextFrameForTests, 494 IPC_MESSAGE_HANDLER(ViewMsg_WaitForNextFrameForTests,
496 OnWaitNextFrameForTests) 495 OnWaitNextFrameForTests)
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 screen_metrics_emulator_->Apply(); 604 screen_metrics_emulator_->Apply();
606 } else { 605 } else {
607 screen_metrics_emulator_->ChangeEmulationParams(params); 606 screen_metrics_emulator_->ChangeEmulationParams(params);
608 } 607 }
609 } 608 }
610 609
611 void RenderWidget::OnDisableDeviceEmulation() { 610 void RenderWidget::OnDisableDeviceEmulation() {
612 screen_metrics_emulator_.reset(); 611 screen_metrics_emulator_.reset();
613 } 612 }
614 613
615 void RenderWidget::OnColorProfile(const std::vector<char>& color_profile) {
616 SetDeviceColorProfile(color_profile);
617 }
618
619 void RenderWidget::OnChangeResizeRect(const gfx::Rect& resizer_rect) { 614 void RenderWidget::OnChangeResizeRect(const gfx::Rect& resizer_rect) {
620 if (resizer_rect_ == resizer_rect) 615 if (resizer_rect_ == resizer_rect)
621 return; 616 return;
622 resizer_rect_ = resizer_rect; 617 resizer_rect_ = resizer_rect;
623 if (webwidget_) 618 if (webwidget_)
624 webwidget_->didChangeWindowResizerRect(); 619 webwidget_->didChangeWindowResizerRect();
625 } 620 }
626 621
627 void RenderWidget::OnWasHidden() { 622 void RenderWidget::OnWasHidden() {
628 TRACE_EVENT0("renderer", "RenderWidget::OnWasHidden"); 623 TRACE_EVENT0("renderer", "RenderWidget::OnWasHidden");
(...skipping 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1990 void RenderWidget::requestPointerUnlock() { 1985 void RenderWidget::requestPointerUnlock() {
1991 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get()); 1986 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get());
1992 } 1987 }
1993 1988
1994 bool RenderWidget::isPointerLocked() { 1989 bool RenderWidget::isPointerLocked() {
1995 return mouse_lock_dispatcher_->IsMouseLockedTo( 1990 return mouse_lock_dispatcher_->IsMouseLockedTo(
1996 webwidget_mouse_lock_target_.get()); 1991 webwidget_mouse_lock_target_.get());
1997 } 1992 }
1998 1993
1999 } // namespace content 1994 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget.h ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698