| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #define PageWidgetDelegate_h | 32 #define PageWidgetDelegate_h |
| 33 | 33 |
| 34 #include "public/platform/WebCanvas.h" | 34 #include "public/platform/WebCanvas.h" |
| 35 #include "public/web/WebWidget.h" | 35 #include "public/web/WebWidget.h" |
| 36 #include "wtf/OwnPtr.h" | 36 #include "wtf/OwnPtr.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class LocalFrame; | 40 class LocalFrame; |
| 41 class Page; | 41 class Page; |
| 42 class PageOverlayList; | 42 class PageOverlay; |
| 43 class WebGestureEvent; | 43 class WebGestureEvent; |
| 44 class WebInputEvent; | 44 class WebInputEvent; |
| 45 class WebKeyboardEvent; | 45 class WebKeyboardEvent; |
| 46 class WebMouseEvent; | 46 class WebMouseEvent; |
| 47 class WebMouseWheelEvent; | 47 class WebMouseWheelEvent; |
| 48 class WebTouchEvent; | 48 class WebTouchEvent; |
| 49 | 49 |
| 50 class PageWidgetEventHandler { | 50 class PageWidgetEventHandler { |
| 51 public: | 51 public: |
| 52 virtual void handleMouseMove(LocalFrame& mainFrame, const WebMouseEvent&); | 52 virtual void handleMouseMove(LocalFrame& mainFrame, const WebMouseEvent&); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 63 | 63 |
| 64 | 64 |
| 65 // Common implementation of WebViewImpl and WebPagePopupImpl. | 65 // Common implementation of WebViewImpl and WebPagePopupImpl. |
| 66 class PageWidgetDelegate { | 66 class PageWidgetDelegate { |
| 67 public: | 67 public: |
| 68 // rootFrame arguments indicate a root localFrame from which to start perfor
ming the | 68 // rootFrame arguments indicate a root localFrame from which to start perfor
ming the |
| 69 // specified operation. If rootFrame is 0, these methods will attempt to use
the | 69 // specified operation. If rootFrame is 0, these methods will attempt to use
the |
| 70 // Page's mainFrame(), if it is a LocalFrame. | 70 // Page's mainFrame(), if it is a LocalFrame. |
| 71 static void animate(Page&, double monotonicFrameBeginTime, LocalFrame& root)
; | 71 static void animate(Page&, double monotonicFrameBeginTime, LocalFrame& root)
; |
| 72 static void layout(Page&, LocalFrame& root); | 72 static void layout(Page&, LocalFrame& root); |
| 73 static void paint(Page&, PageOverlayList*, WebCanvas*, const WebRect&, Local
Frame& root); | 73 static void paint(Page&, PageOverlay*, WebCanvas*, const WebRect&, LocalFram
e& root); |
| 74 static void paintIgnoringCompositing(Page&, PageOverlayList*, WebCanvas*, co
nst WebRect&, LocalFrame& root); | 74 static void paintIgnoringCompositing(Page&, PageOverlay*, WebCanvas*, const
WebRect&, LocalFrame& root); |
| 75 static bool handleInputEvent(PageWidgetEventHandler&, const WebInputEvent&,
LocalFrame* root); | 75 static bool handleInputEvent(PageWidgetEventHandler&, const WebInputEvent&,
LocalFrame* root); |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 PageWidgetDelegate() { } | 78 PageWidgetDelegate() { } |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } | 81 } |
| 82 #endif | 82 #endif |
| OLD | NEW |