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

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

Issue 2136413002: Update Surface ID Terminology (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed webkit_unit_tests Created 4 years, 5 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/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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_ChangeResizeRect, OnChangeResizeRect) 486 IPC_MESSAGE_HANDLER(ViewMsg_ChangeResizeRect, OnChangeResizeRect)
487 IPC_MESSAGE_HANDLER(ViewMsg_WasHidden, OnWasHidden) 487 IPC_MESSAGE_HANDLER(ViewMsg_WasHidden, OnWasHidden)
488 IPC_MESSAGE_HANDLER(ViewMsg_WasShown, OnWasShown) 488 IPC_MESSAGE_HANDLER(ViewMsg_WasShown, OnWasShown)
489 IPC_MESSAGE_HANDLER(ViewMsg_Repaint, OnRepaint) 489 IPC_MESSAGE_HANDLER(ViewMsg_Repaint, OnRepaint)
490 IPC_MESSAGE_HANDLER(ViewMsg_SetTextDirection, OnSetTextDirection) 490 IPC_MESSAGE_HANDLER(ViewMsg_SetTextDirection, OnSetTextDirection)
491 IPC_MESSAGE_HANDLER(ViewMsg_Move_ACK, OnRequestMoveAck) 491 IPC_MESSAGE_HANDLER(ViewMsg_Move_ACK, OnRequestMoveAck)
492 IPC_MESSAGE_HANDLER(ViewMsg_UpdateScreenRects, OnUpdateScreenRects) 492 IPC_MESSAGE_HANDLER(ViewMsg_UpdateScreenRects, OnUpdateScreenRects)
493 IPC_MESSAGE_HANDLER(ViewMsg_SetSurfaceIdNamespace, OnSetSurfaceIdNamespace) 493 IPC_MESSAGE_HANDLER(ViewMsg_SetSurfaceClientId, OnSetSurfaceClientId)
494 IPC_MESSAGE_HANDLER(ViewMsg_WaitForNextFrameForTests, 494 IPC_MESSAGE_HANDLER(ViewMsg_WaitForNextFrameForTests,
495 OnWaitNextFrameForTests) 495 OnWaitNextFrameForTests)
496 #if defined(OS_ANDROID) 496 #if defined(OS_ANDROID)
497 IPC_MESSAGE_HANDLER(InputMsg_ImeEventAck, OnImeEventAck) 497 IPC_MESSAGE_HANDLER(InputMsg_ImeEventAck, OnImeEventAck)
498 IPC_MESSAGE_HANDLER(InputMsg_RequestTextInputStateUpdate, 498 IPC_MESSAGE_HANDLER(InputMsg_RequestTextInputStateUpdate,
499 OnRequestTextInputStateUpdate) 499 OnRequestTextInputStateUpdate)
500 IPC_MESSAGE_HANDLER(ViewMsg_ShowImeIfNeeded, OnShowImeIfNeeded) 500 IPC_MESSAGE_HANDLER(ViewMsg_ShowImeIfNeeded, OnShowImeIfNeeded)
501 #endif 501 #endif
502 IPC_MESSAGE_HANDLER(ViewMsg_HandleCompositorProto, OnHandleCompositorProto) 502 IPC_MESSAGE_HANDLER(ViewMsg_HandleCompositorProto, OnHandleCompositorProto)
503 IPC_MESSAGE_UNHANDLED(handled = false) 503 IPC_MESSAGE_UNHANDLED(handled = false)
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after
1442 1442
1443 void RenderWidget::OnUpdateWindowScreenRect( 1443 void RenderWidget::OnUpdateWindowScreenRect(
1444 const gfx::Rect& window_screen_rect) { 1444 const gfx::Rect& window_screen_rect) {
1445 if (screen_metrics_emulator_) { 1445 if (screen_metrics_emulator_) {
1446 screen_metrics_emulator_->OnUpdateWindowScreenRect(window_screen_rect); 1446 screen_metrics_emulator_->OnUpdateWindowScreenRect(window_screen_rect);
1447 } else { 1447 } else {
1448 window_screen_rect_ = window_screen_rect; 1448 window_screen_rect_ = window_screen_rect;
1449 } 1449 }
1450 } 1450 }
1451 1451
1452 void RenderWidget::OnSetSurfaceIdNamespace(uint32_t surface_id_namespace) { 1452 void RenderWidget::OnSetSurfaceClientId(uint32_t surface_id_namespace) {
1453 if (compositor_) 1453 if (compositor_)
1454 compositor_->SetSurfaceIdNamespace(surface_id_namespace); 1454 compositor_->SetSurfaceClientId(surface_id_namespace);
1455 } 1455 }
1456 1456
1457 void RenderWidget::OnHandleCompositorProto(const std::vector<uint8_t>& proto) { 1457 void RenderWidget::OnHandleCompositorProto(const std::vector<uint8_t>& proto) {
1458 if (compositor_) 1458 if (compositor_)
1459 compositor_->OnHandleCompositorProto(proto); 1459 compositor_->OnHandleCompositorProto(proto);
1460 } 1460 }
1461 1461
1462 void RenderWidget::showImeIfNeeded() { 1462 void RenderWidget::showImeIfNeeded() {
1463 OnShowImeIfNeeded(); 1463 OnShowImeIfNeeded();
1464 } 1464 }
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
1979 void RenderWidget::requestPointerUnlock() { 1979 void RenderWidget::requestPointerUnlock() {
1980 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get()); 1980 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get());
1981 } 1981 }
1982 1982
1983 bool RenderWidget::isPointerLocked() { 1983 bool RenderWidget::isPointerLocked() {
1984 return mouse_lock_dispatcher_->IsMouseLockedTo( 1984 return mouse_lock_dispatcher_->IsMouseLockedTo(
1985 webwidget_mouse_lock_target_.get()); 1985 webwidget_mouse_lock_target_.get());
1986 } 1986 }
1987 1987
1988 } // namespace content 1988 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698