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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 bool SelectionTextDirection(WebTextDirection& start, | 144 bool SelectionTextDirection(WebTextDirection& start, |
145 WebTextDirection& end) const override; | 145 WebTextDirection& end) const override; |
146 bool IsSelectionAnchorFirst() const override; | 146 bool IsSelectionAnchorFirst() const override; |
147 WebRange CaretOrSelectionRange() override; | 147 WebRange CaretOrSelectionRange() override; |
148 void SetTextDirection(WebTextDirection) override; | 148 void SetTextDirection(WebTextDirection) override; |
149 bool IsAcceleratedCompositingActive() const override; | 149 bool IsAcceleratedCompositingActive() const override; |
150 void WillCloseLayerTreeView() override; | 150 void WillCloseLayerTreeView() override; |
151 void DidAcquirePointerLock() override; | 151 void DidAcquirePointerLock() override; |
152 void DidNotAcquirePointerLock() override; | 152 void DidNotAcquirePointerLock() override; |
153 void DidLosePointerLock() override; | 153 void DidLosePointerLock() override; |
| 154 void ShowContextMenu() override; |
154 | 155 |
155 // WebView methods: | 156 // WebView methods: |
156 virtual bool IsWebView() const { return true; } | 157 virtual bool IsWebView() const { return true; } |
157 void SetMainFrame(WebFrame*) override; | 158 void SetMainFrame(WebFrame*) override; |
158 void SetCredentialManagerClient(WebCredentialManagerClient*) override; | 159 void SetCredentialManagerClient(WebCredentialManagerClient*) override; |
159 void SetPrerendererClient(WebPrerendererClient*) override; | 160 void SetPrerendererClient(WebPrerendererClient*) override; |
160 void SetSpellCheckClient(WebSpellCheckClient*) override; | 161 void SetSpellCheckClient(WebSpellCheckClient*) override; |
161 WebSettings* GetSettings() override; | 162 WebSettings* GetSettings() override; |
162 WebString PageEncoding() const override; | 163 WebString PageEncoding() const override; |
163 bool TabsToLinks() const override; | 164 bool TabsToLinks() const override; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 const WebSize&) override; | 225 const WebSize&) override; |
225 unsigned long CreateUniqueIdentifierForRequest() override; | 226 unsigned long CreateUniqueIdentifierForRequest() override; |
226 void EnableDeviceEmulation(const WebDeviceEmulationParams&) override; | 227 void EnableDeviceEmulation(const WebDeviceEmulationParams&) override; |
227 void DisableDeviceEmulation() override; | 228 void DisableDeviceEmulation() override; |
228 WebAXObject AccessibilityObject() override; | 229 WebAXObject AccessibilityObject() override; |
229 void SetSelectionColors(unsigned active_background_color, | 230 void SetSelectionColors(unsigned active_background_color, |
230 unsigned active_foreground_color, | 231 unsigned active_foreground_color, |
231 unsigned inactive_background_color, | 232 unsigned inactive_background_color, |
232 unsigned inactive_foreground_color) override; | 233 unsigned inactive_foreground_color) override; |
233 void PerformCustomContextMenuAction(unsigned action) override; | 234 void PerformCustomContextMenuAction(unsigned action) override; |
234 void ShowContextMenu() override; | |
235 void DidCloseContextMenu() override; | 235 void DidCloseContextMenu() override; |
236 void HidePopups() override; | 236 void HidePopups() override; |
237 void SetPageOverlayColor(WebColor) override; | 237 void SetPageOverlayColor(WebColor) override; |
238 WebPageImportanceSignals* PageImportanceSignals() override; | 238 WebPageImportanceSignals* PageImportanceSignals() override; |
239 void TransferActiveWheelFlingAnimation( | 239 void TransferActiveWheelFlingAnimation( |
240 const WebActiveWheelFlingParameters&) override; | 240 const WebActiveWheelFlingParameters&) override; |
241 bool EndActiveFlingAnimation() override; | 241 bool EndActiveFlingAnimation() override; |
242 bool IsFlinging() const override { return !!gesture_animation_.get(); } | 242 bool IsFlinging() const override { return !!gesture_animation_.get(); } |
243 void SetShowPaintRects(bool) override; | 243 void SetShowPaintRects(bool) override; |
244 void SetShowDebugBorders(bool) override; | 244 void SetShowDebugBorders(bool) override; |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; | 746 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; |
747 }; | 747 }; |
748 | 748 |
749 // We have no ways to check if the specified WebView is an instance of | 749 // We have no ways to check if the specified WebView is an instance of |
750 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 750 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
751 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 751 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
752 | 752 |
753 } // namespace blink | 753 } // namespace blink |
754 | 754 |
755 #endif | 755 #endif |
OLD | NEW |