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

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

Issue 10218001: Add ZoomLevelChanged and DidChangeScrollOffset to RenderViewObserver (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #include "third_party/skia/include/core/SkPixelRef.h" 48 #include "third_party/skia/include/core/SkPixelRef.h"
49 #include "third_party/skia/include/core/SkMallocPixelRef.h" 49 #include "third_party/skia/include/core/SkMallocPixelRef.h"
50 #endif // defined(OS_POSIX) 50 #endif // defined(OS_POSIX)
51 51
52 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h" 52 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h"
53 53
54 using WebKit::WebCompositionUnderline; 54 using WebKit::WebCompositionUnderline;
55 using WebKit::WebCursorInfo; 55 using WebKit::WebCursorInfo;
56 using WebKit::WebInputEvent; 56 using WebKit::WebInputEvent;
57 using WebKit::WebMouseEvent; 57 using WebKit::WebMouseEvent;
58 using WebKit::WebMouseWheelEvent;
58 using WebKit::WebNavigationPolicy; 59 using WebKit::WebNavigationPolicy;
59 using WebKit::WebPagePopup; 60 using WebKit::WebPagePopup;
60 using WebKit::WebPoint; 61 using WebKit::WebPoint;
61 using WebKit::WebPopupMenu; 62 using WebKit::WebPopupMenu;
62 using WebKit::WebPopupMenuInfo; 63 using WebKit::WebPopupMenuInfo;
63 using WebKit::WebPopupType; 64 using WebKit::WebPopupType;
64 using WebKit::WebRange; 65 using WebKit::WebRange;
65 using WebKit::WebRect; 66 using WebKit::WebRect;
66 using WebKit::WebScreenInfo; 67 using WebKit::WebScreenInfo;
67 using WebKit::WebSize; 68 using WebKit::WebSize;
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 582
582 handling_input_event_ = false; 583 handling_input_event_ = false;
583 584
584 if (!prevent_default) { 585 if (!prevent_default) {
585 if (WebInputEvent::isKeyboardEventType(input_event->type)) 586 if (WebInputEvent::isKeyboardEventType(input_event->type))
586 DidHandleKeyEvent(); 587 DidHandleKeyEvent();
587 if (WebInputEvent::isMouseEventType(input_event->type)) 588 if (WebInputEvent::isMouseEventType(input_event->type))
588 DidHandleMouseEvent(*(static_cast<const WebMouseEvent*>(input_event))); 589 DidHandleMouseEvent(*(static_cast<const WebMouseEvent*>(input_event)));
589 if (WebInputEvent::isTouchEventType(input_event->type)) 590 if (WebInputEvent::isTouchEventType(input_event->type))
590 DidHandleTouchEvent(*(static_cast<const WebTouchEvent*>(input_event))); 591 DidHandleTouchEvent(*(static_cast<const WebTouchEvent*>(input_event)));
592 if (input_event->type == WebInputEvent::MouseWheel)
593 DidHandleWheelEvent(
594 *(static_cast<const WebMouseWheelEvent*>(input_event)));
591 } 595 }
592 } 596 }
593 597
594 void RenderWidget::OnMouseCaptureLost() { 598 void RenderWidget::OnMouseCaptureLost() {
595 if (webwidget_) 599 if (webwidget_)
596 webwidget_->mouseCaptureLost(); 600 webwidget_->mouseCaptureLost();
597 } 601 }
598 602
599 void RenderWidget::OnSetFocus(bool enable) { 603 void RenderWidget::OnSetFocus(bool enable) {
600 has_focus_ = enable; 604 has_focus_ = enable;
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after
1693 } 1697 }
1694 } 1698 }
1695 1699
1696 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { 1700 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) {
1697 return false; 1701 return false;
1698 } 1702 }
1699 1703
1700 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { 1704 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const {
1701 return false; 1705 return false;
1702 } 1706 }
OLDNEW
« chrome/renderer/autofill/autofill_agent.cc ('K') | « content/renderer/render_widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698