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

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

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 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <vector> 10 #include <vector>
(...skipping 22 matching lines...) Expand all
33 33
34 struct ViewHostMsg_UpdateRect_Params; 34 struct ViewHostMsg_UpdateRect_Params;
35 class ViewHostMsg_UpdateRect; 35 class ViewHostMsg_UpdateRect;
36 36
37 namespace IPC { 37 namespace IPC {
38 class SyncMessage; 38 class SyncMessage;
39 } 39 }
40 40
41 namespace WebKit { 41 namespace WebKit {
42 class WebMouseEvent; 42 class WebMouseEvent;
43 class WebMouseWheelEvent;
43 class WebTouchEvent; 44 class WebTouchEvent;
44 class WebWidget; 45 class WebWidget;
45 } 46 }
46 47
47 namespace gfx { 48 namespace gfx {
48 class Point; 49 class Point;
49 } 50 }
50 51
51 namespace skia { 52 namespace skia {
52 class PlatformCanvas; 53 class PlatformCanvas;
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 virtual bool WillHandleMouseEvent(const WebKit::WebMouseEvent& event); 350 virtual bool WillHandleMouseEvent(const WebKit::WebMouseEvent& event);
350 351
351 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was 352 // Called by OnHandleInputEvent() to notify subclasses that a mouse event was
352 // just handled. 353 // just handled.
353 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} 354 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {}
354 355
355 // Called by OnHandleInputEvent() to notify subclasses that a touch event was 356 // Called by OnHandleInputEvent() to notify subclasses that a touch event was
356 // just handled. 357 // just handled.
357 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} 358 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {}
358 359
360 // Called by OnHandleInputEvent() to notify subclasses that a wheel event was
361 // just handled.
362 virtual void DidHandleWheelEvent(const WebKit::WebMouseWheelEvent& event) {}
363
359 // Should return true if the underlying WebWidget is responsible for 364 // Should return true if the underlying WebWidget is responsible for
360 // the scheduling of compositing requests. 365 // the scheduling of compositing requests.
361 virtual bool WebWidgetHandlesCompositorScheduling() const; 366 virtual bool WebWidgetHandlesCompositorScheduling() const;
362 367
363 // Routing ID that allows us to communicate to the parent browser process 368 // Routing ID that allows us to communicate to the parent browser process
364 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent. 369 // RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent.
365 int32 routing_id_; 370 int32 routing_id_;
366 371
367 int32 surface_id_; 372 int32 surface_id_;
368 373
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 // Set to true if we should invert all pixels. 523 // Set to true if we should invert all pixels.
519 bool invert_; 524 bool invert_;
520 525
521 // The Skia paint object for inverting. 526 // The Skia paint object for inverting.
522 scoped_ptr<SkPaint> invert_paint_; 527 scoped_ptr<SkPaint> invert_paint_;
523 528
524 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 529 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
525 }; 530 };
526 531
527 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 532 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698