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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_guest.cc

Issue 1858063002: Remove Mac NPAPI things (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more build fixes Created 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/frame_host/render_widget_host_view_guest.h" 5 #include "content/browser/frame_host/render_widget_host_view_guest.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 if (embedder_view) 440 if (embedder_view)
441 return embedder_view->GetScreenColorProfile(color_profile); 441 return embedder_view->GetScreenColorProfile(color_profile);
442 return false; 442 return false;
443 } 443 }
444 444
445 #if defined(OS_MACOSX) 445 #if defined(OS_MACOSX)
446 void RenderWidgetHostViewGuest::SetActive(bool active) { 446 void RenderWidgetHostViewGuest::SetActive(bool active) {
447 platform_view_->SetActive(active); 447 platform_view_->SetActive(active);
448 } 448 }
449 449
450 void RenderWidgetHostViewGuest::SetWindowVisibility(bool visible) {
451 platform_view_->SetWindowVisibility(visible);
452 }
453
454 void RenderWidgetHostViewGuest::WindowFrameChanged() {
455 platform_view_->WindowFrameChanged();
456 }
457
458 void RenderWidgetHostViewGuest::ShowDefinitionForSelection() { 450 void RenderWidgetHostViewGuest::ShowDefinitionForSelection() {
459 if (!guest_) 451 if (!guest_)
460 return; 452 return;
461 453
462 gfx::Point origin; 454 gfx::Point origin;
463 gfx::Rect guest_bounds = GetViewBounds(); 455 gfx::Rect guest_bounds = GetViewBounds();
464 RenderWidgetHostView* rwhv = guest_->GetOwnerRenderWidgetHostView(); 456 RenderWidgetHostView* rwhv = guest_->GetOwnerRenderWidgetHostView();
465 gfx::Rect embedder_bounds; 457 gfx::Rect embedder_bounds;
466 if (rwhv) 458 if (rwhv)
467 embedder_bounds = rwhv->GetViewBounds(); 459 embedder_bounds = rwhv->GetViewBounds();
(...skipping 18 matching lines...) Expand all
486 platform_view_->SpeakSelection(); 478 platform_view_->SpeakSelection();
487 } 479 }
488 480
489 bool RenderWidgetHostViewGuest::IsSpeaking() const { 481 bool RenderWidgetHostViewGuest::IsSpeaking() const {
490 return platform_view_->IsSpeaking(); 482 return platform_view_->IsSpeaking();
491 } 483 }
492 484
493 void RenderWidgetHostViewGuest::StopSpeaking() { 485 void RenderWidgetHostViewGuest::StopSpeaking() {
494 platform_view_->StopSpeaking(); 486 platform_view_->StopSpeaking();
495 } 487 }
496
497 bool RenderWidgetHostViewGuest::PostProcessEventForPluginIme(
498 const NativeWebKeyboardEvent& event) {
499 return false;
500 }
501
502 #endif // defined(OS_MACOSX) 488 #endif // defined(OS_MACOSX)
503 489
504 #if defined(OS_ANDROID) || defined(USE_AURA) 490 #if defined(OS_ANDROID) || defined(USE_AURA)
505 void RenderWidgetHostViewGuest::ShowDisambiguationPopup( 491 void RenderWidgetHostViewGuest::ShowDisambiguationPopup(
506 const gfx::Rect& rect_pixels, 492 const gfx::Rect& rect_pixels,
507 const SkBitmap& zoomed_bitmap) { 493 const SkBitmap& zoomed_bitmap) {
508 } 494 }
509 #endif // defined(OS_ANDROID) || defined(USE_AURA) 495 #endif // defined(OS_ANDROID) || defined(USE_AURA)
510 496
511 void RenderWidgetHostViewGuest::LockCompositingSurface() { 497 void RenderWidgetHostViewGuest::LockCompositingSurface() {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 if (gesture_event.type == blink::WebInputEvent::GestureScrollUpdate && 605 if (gesture_event.type == blink::WebInputEvent::GestureScrollUpdate &&
620 gesture_event.data.scrollUpdate.inertial) { 606 gesture_event.data.scrollUpdate.inertial) {
621 return; 607 return;
622 } 608 }
623 host_->ForwardGestureEvent(gesture_event); 609 host_->ForwardGestureEvent(gesture_event);
624 return; 610 return;
625 } 611 }
626 } 612 }
627 613
628 } // namespace content 614 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.h ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698