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

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

Issue 1113573002: Maintain minimal error response. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build issue. Created 5 years, 7 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 "base/bind_helpers.h" 5 #include "base/bind_helpers.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "content/browser/browser_plugin/browser_plugin_guest.h" 9 #include "content/browser/browser_plugin/browser_plugin_guest.h"
10 #include "content/browser/frame_host/render_widget_host_view_guest.h" 10 #include "content/browser/frame_host/render_widget_host_view_guest.h"
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 ui::GestureRecognizer::Gestures* gestures) { 545 ui::GestureRecognizer::Gestures* gestures) {
546 if ((gestures == NULL) || gestures->empty()) 546 if ((gestures == NULL) || gestures->empty())
547 return; 547 return;
548 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); 548 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin();
549 g_it != gestures->end(); 549 g_it != gestures->end();
550 ++g_it) { 550 ++g_it) {
551 ForwardGestureEventToRenderer(*g_it); 551 ForwardGestureEventToRenderer(*g_it);
552 } 552 }
553 } 553 }
554 554
555 SkColorType RenderWidgetHostViewGuest::PreferredReadbackFormat() {
556 return kN32_SkColorType;
557 }
558
559 RenderWidgetHostViewBase* 555 RenderWidgetHostViewBase*
560 RenderWidgetHostViewGuest::GetOwnerRenderWidgetHostView() const { 556 RenderWidgetHostViewGuest::GetOwnerRenderWidgetHostView() const {
561 return static_cast<RenderWidgetHostViewBase*>( 557 return static_cast<RenderWidgetHostViewBase*>(
562 guest_->GetOwnerRenderWidgetHostView()); 558 guest_->GetOwnerRenderWidgetHostView());
563 } 559 }
564 560
565 void RenderWidgetHostViewGuest::OnHandleInputEvent( 561 void RenderWidgetHostViewGuest::OnHandleInputEvent(
566 RenderWidgetHostImpl* embedder, 562 RenderWidgetHostImpl* embedder,
567 int browser_plugin_instance_id, 563 int browser_plugin_instance_id,
568 const gfx::Rect& guest_window_rect, 564 const gfx::Rect& guest_window_rect,
(...skipping 26 matching lines...) Expand all
595 } 591 }
596 592
597 if (blink::WebInputEvent::isGestureEventType(event->type)) { 593 if (blink::WebInputEvent::isGestureEventType(event->type)) {
598 host_->ForwardGestureEvent( 594 host_->ForwardGestureEvent(
599 *static_cast<const blink::WebGestureEvent*>(event)); 595 *static_cast<const blink::WebGestureEvent*>(event));
600 return; 596 return;
601 } 597 }
602 } 598 }
603 599
604 } // namespace content 600 } // 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.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698