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