| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual WebInputEventResult handleTouchEvent(LocalFrame& mainFrame, | 61 virtual WebInputEventResult handleTouchEvent(LocalFrame& mainFrame, |
| 62 const WebTouchEvent&); | 62 const WebTouchEvent&); |
| 63 virtual ~PageWidgetEventHandler() {} | 63 virtual ~PageWidgetEventHandler() {} |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 // Common implementation of WebViewImpl and WebPagePopupImpl. | 66 // Common implementation of WebViewImpl and WebPagePopupImpl. |
| 67 class PageWidgetDelegate { | 67 class PageWidgetDelegate { |
| 68 public: | 68 public: |
| 69 static void animate(Page&, double monotonicFrameBeginTime); | 69 static void animate(Page&, double monotonicFrameBeginTime); |
| 70 | 70 |
| 71 // For the following methods, the |root| argument indicates a root localFrame
from which | 71 // For the following methods, the |root| argument indicates a root localFrame |
| 72 // to start performing the specified operation. | 72 // from which to start performing the specified operation. |
| 73 | 73 |
| 74 // See documents of methods with the same names in FrameView class. | 74 // See documents of methods with the same names in FrameView class. |
| 75 static void updateAllLifecyclePhases(Page&, LocalFrame& root); | 75 static void updateAllLifecyclePhases(Page&, LocalFrame& root); |
| 76 | 76 |
| 77 static void paint(Page&, WebCanvas*, const WebRect&, LocalFrame& root); | 77 static void paint(Page&, WebCanvas*, const WebRect&, LocalFrame& root); |
| 78 static void paintIgnoringCompositing(Page&, | 78 static void paintIgnoringCompositing(Page&, |
| 79 WebCanvas*, | 79 WebCanvas*, |
| 80 const WebRect&, | 80 const WebRect&, |
| 81 LocalFrame& root); | 81 LocalFrame& root); |
| 82 | 82 |
| 83 // See FIXME in the function body about nullptr |root|. | 83 // See FIXME in the function body about nullptr |root|. |
| 84 static WebInputEventResult handleInputEvent(PageWidgetEventHandler&, | 84 static WebInputEventResult handleInputEvent(PageWidgetEventHandler&, |
| 85 const WebInputEvent&, | 85 const WebInputEvent&, |
| 86 LocalFrame* root); | 86 LocalFrame* root); |
| 87 | 87 |
| 88 private: | 88 private: |
| 89 PageWidgetDelegate() {} | 89 PageWidgetDelegate() {} |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace blink | 92 } // namespace blink |
| 93 #endif | 93 #endif |
| OLD | NEW |