OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 PagePopup* OpenPagePopup(PagePopupClient*) override; | 369 PagePopup* OpenPagePopup(PagePopupClient*) override; |
370 void ClosePagePopup(PagePopup*) override; | 370 void ClosePagePopup(PagePopup*) override; |
371 void CleanupPagePopup() override; | 371 void CleanupPagePopup() override; |
372 LocalDOMWindow* PagePopupWindow() const override; | 372 LocalDOMWindow* PagePopupWindow() const override; |
373 | 373 |
374 // Returns the input event we're currently processing. This is used in some | 374 // Returns the input event we're currently processing. This is used in some |
375 // cases where the WebCore DOM event doesn't have the information we need. | 375 // cases where the WebCore DOM event doesn't have the information we need. |
376 static const WebInputEvent* CurrentInputEvent() { | 376 static const WebInputEvent* CurrentInputEvent() { |
377 return current_input_event_; | 377 return current_input_event_; |
378 } | 378 } |
379 void SetCurrentInputEventForTest(const WebInputEvent* event) override { | |
380 current_input_event_ = event; | |
381 } | |
382 | 379 |
383 GraphicsLayer* RootGraphicsLayer() override; | 380 GraphicsLayer* RootGraphicsLayer() override; |
384 void RegisterViewportLayersWithCompositor() override; | 381 void RegisterViewportLayersWithCompositor() override; |
385 PaintLayerCompositor* Compositor() const override; | 382 PaintLayerCompositor* Compositor() const override; |
386 CompositorAnimationTimeline* LinkHighlightsTimeline() const override { | 383 CompositorAnimationTimeline* LinkHighlightsTimeline() const override { |
387 return link_highlights_timeline_.get(); | 384 return link_highlights_timeline_.get(); |
388 } | 385 } |
389 | 386 |
390 WebViewScheduler* Scheduler() const override; | 387 WebViewScheduler* Scheduler() const override; |
391 void SetVisibilityState(WebPageVisibilityState, bool) override; | 388 void SetVisibilityState(WebPageVisibilityState, bool) override; |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; | 737 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; |
741 }; | 738 }; |
742 | 739 |
743 // We have no ways to check if the specified WebView is an instance of | 740 // We have no ways to check if the specified WebView is an instance of |
744 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 741 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
745 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 742 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
746 | 743 |
747 } // namespace blink | 744 } // namespace blink |
748 | 745 |
749 #endif | 746 #endif |
OLD | NEW |