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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.cc

Issue 227043012: mac: History swiping doesn't work right with iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comment from avi. Created 6 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 (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_base.h" 5 #include "content/browser/renderer_host/render_widget_host_view_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/accessibility/browser_accessibility_manager.h" 8 #include "content/browser/accessibility/browser_accessibility_manager.h"
9 #include "content/browser/gpu/gpu_data_manager_impl.h" 9 #include "content/browser/gpu/gpu_data_manager_impl.h"
10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" 10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h"
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 return base::string16(); 446 return base::string16();
447 return selection_text_.substr( 447 return selection_text_.substr(
448 selection_range_.GetMin() - selection_text_offset_, 448 selection_range_.GetMin() - selection_text_offset_,
449 selection_range_.length()); 449 selection_range_.length());
450 } 450 }
451 451
452 bool RenderWidgetHostViewBase::IsMouseLocked() { 452 bool RenderWidgetHostViewBase::IsMouseLocked() {
453 return mouse_locked_; 453 return mouse_locked_;
454 } 454 }
455 455
456 void RenderWidgetHostViewBase::UnhandledWheelEvent( 456 void RenderWidgetHostViewBase::HandledWheelEvent(
457 const blink::WebMouseWheelEvent& event) { 457 const blink::WebMouseWheelEvent& event,
458 bool consumed) {
458 // Most implementations don't need to do anything here. 459 // Most implementations don't need to do anything here.
459 } 460 }
460 461
461 InputEventAckState RenderWidgetHostViewBase::FilterInputEvent( 462 InputEventAckState RenderWidgetHostViewBase::FilterInputEvent(
462 const blink::WebInputEvent& input_event) { 463 const blink::WebInputEvent& input_event) {
463 // By default, input events are simply forwarded to the renderer. 464 // By default, input events are simply forwarded to the renderer.
464 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; 465 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
465 } 466 }
466 467
467 void RenderWidgetHostViewBase::OnDidFlushInput() { 468 void RenderWidgetHostViewBase::OnDidFlushInput() {
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 if (!impl) 609 if (!impl)
609 return; 610 return;
610 impl->FlushInput(); 611 impl->FlushInput();
611 } 612 }
612 613
613 SkBitmap::Config RenderWidgetHostViewBase::PreferredReadbackFormat() { 614 SkBitmap::Config RenderWidgetHostViewBase::PreferredReadbackFormat() {
614 return SkBitmap::kARGB_8888_Config; 615 return SkBitmap::kARGB_8888_Config;
615 } 616 }
616 617
617 } // namespace content 618 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698