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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 class WebRemoteFrame; | 93 class WebRemoteFrame; |
94 class WebSelection; | 94 class WebSelection; |
95 class WebSettingsImpl; | 95 class WebSettingsImpl; |
96 class WebViewScheduler; | 96 class WebViewScheduler; |
97 | 97 |
98 class WEB_EXPORT WebViewImpl final : WTF_NON_EXPORTED_BASE(public WebView) | 98 class WEB_EXPORT WebViewImpl final : WTF_NON_EXPORTED_BASE(public WebView) |
99 , public RefCounted<WebViewImpl> | 99 , public RefCounted<WebViewImpl> |
100 , WTF_NON_EXPORTED_BASE(public WebGestureCurveTarget) | 100 , WTF_NON_EXPORTED_BASE(public WebGestureCurveTarget) |
101 , public PageWidgetEventHandler { | 101 , public PageWidgetEventHandler { |
102 public: | 102 public: |
103 static WebViewImpl* create(WebViewClient*); | 103 static WebViewImpl* create(WebViewClient*, bool); |
104 static HashSet<WebViewImpl*>& allInstances(); | 104 static HashSet<WebViewImpl*>& allInstances(); |
105 | 105 |
106 // WebWidget methods: | 106 // WebWidget methods: |
107 void close() override; | 107 void close() override; |
108 WebSize size() override; | 108 WebSize size() override; |
109 void resize(const WebSize&) override; | 109 void resize(const WebSize&) override; |
110 void resizeVisualViewport(const WebSize&) override; | 110 void resizeVisualViewport(const WebSize&) override; |
111 void didEnterFullScreen() override; | 111 void didEnterFullScreen() override; |
112 void didExitFullScreen() override; | 112 void didExitFullScreen() override; |
113 | 113 |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 | 549 |
550 friend class WebView; // So WebView::Create can call our constructor | 550 friend class WebView; // So WebView::Create can call our constructor |
551 friend class WTF::RefCounted<WebViewImpl>; | 551 friend class WTF::RefCounted<WebViewImpl>; |
552 friend void setCurrentInputEventForTest(const WebInputEvent*); | 552 friend void setCurrentInputEventForTest(const WebInputEvent*); |
553 | 553 |
554 enum DragAction { | 554 enum DragAction { |
555 DragEnter, | 555 DragEnter, |
556 DragOver | 556 DragOver |
557 }; | 557 }; |
558 | 558 |
559 explicit WebViewImpl(WebViewClient*); | 559 explicit WebViewImpl(WebViewClient*, bool); |
560 ~WebViewImpl() override; | 560 ~WebViewImpl() override; |
561 | 561 |
562 int textInputFlags(); | 562 int textInputFlags(); |
563 | 563 |
564 WebString inputModeOfFocusedElement(); | 564 WebString inputModeOfFocusedElement(); |
565 | 565 |
566 // Returns true if the event was actually processed. | 566 // Returns true if the event was actually processed. |
567 bool keyEventDefault(const WebKeyboardEvent&); | 567 bool keyEventDefault(const WebKeyboardEvent&); |
568 | 568 |
569 bool confirmComposition(const WebString& text, ConfirmCompositionBehavior); | 569 bool confirmComposition(const WebString& text, ConfirmCompositionBehavior); |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 double m_lastFrameTimeMonotonic; | 767 double m_lastFrameTimeMonotonic; |
768 }; | 768 }; |
769 | 769 |
770 // We have no ways to check if the specified WebView is an instance of | 770 // We have no ways to check if the specified WebView is an instance of |
771 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 771 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
772 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 772 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
773 | 773 |
774 } // namespace blink | 774 } // namespace blink |
775 | 775 |
776 #endif | 776 #endif |
OLD | NEW |