Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.h

Issue 2894043002: Add machinery to show touch editing context menus in OOPIFs. (Closed)
Patch Set: Don't fall back to mainframe, formatting. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 bool SelectionTextDirection(WebTextDirection& start, 143 bool SelectionTextDirection(WebTextDirection& start,
144 WebTextDirection& end) const override; 144 WebTextDirection& end) const override;
145 bool IsSelectionAnchorFirst() const override; 145 bool IsSelectionAnchorFirst() const override;
146 WebRange CaretOrSelectionRange() override; 146 WebRange CaretOrSelectionRange() override;
147 void SetTextDirection(WebTextDirection) override; 147 void SetTextDirection(WebTextDirection) override;
148 bool IsAcceleratedCompositingActive() const override; 148 bool IsAcceleratedCompositingActive() const override;
149 void WillCloseLayerTreeView() override; 149 void WillCloseLayerTreeView() override;
150 void DidAcquirePointerLock() override; 150 void DidAcquirePointerLock() override;
151 void DidNotAcquirePointerLock() override; 151 void DidNotAcquirePointerLock() override;
152 void DidLosePointerLock() override; 152 void DidLosePointerLock() override;
153 void ShowContextMenu(WebMenuSourceType) override;
153 154
154 // WebView methods: 155 // WebView methods:
155 virtual bool IsWebView() const { return true; } 156 virtual bool IsWebView() const { return true; }
156 void SetMainFrame(WebFrame*) override; 157 void SetMainFrame(WebFrame*) override;
157 void SetCredentialManagerClient(WebCredentialManagerClient*) override; 158 void SetCredentialManagerClient(WebCredentialManagerClient*) override;
158 void SetPrerendererClient(WebPrerendererClient*) override; 159 void SetPrerendererClient(WebPrerendererClient*) override;
159 void SetSpellCheckClient(WebSpellCheckClient*) override; 160 void SetSpellCheckClient(WebSpellCheckClient*) override;
160 WebSettings* GetSettings() override; 161 WebSettings* GetSettings() override;
161 WebString PageEncoding() const override; 162 WebString PageEncoding() const override;
162 bool TabsToLinks() const override; 163 bool TabsToLinks() const override;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 const WebSize&) override; 224 const WebSize&) override;
224 unsigned long CreateUniqueIdentifierForRequest() override; 225 unsigned long CreateUniqueIdentifierForRequest() override;
225 void EnableDeviceEmulation(const WebDeviceEmulationParams&) override; 226 void EnableDeviceEmulation(const WebDeviceEmulationParams&) override;
226 void DisableDeviceEmulation() override; 227 void DisableDeviceEmulation() override;
227 WebAXObject AccessibilityObject() override; 228 WebAXObject AccessibilityObject() override;
228 void SetSelectionColors(unsigned active_background_color, 229 void SetSelectionColors(unsigned active_background_color,
229 unsigned active_foreground_color, 230 unsigned active_foreground_color,
230 unsigned inactive_background_color, 231 unsigned inactive_background_color,
231 unsigned inactive_foreground_color) override; 232 unsigned inactive_foreground_color) override;
232 void PerformCustomContextMenuAction(unsigned action) override; 233 void PerformCustomContextMenuAction(unsigned action) override;
233 void ShowContextMenu(WebMenuSourceType) override;
234 void DidCloseContextMenu() override; 234 void DidCloseContextMenu() override;
235 void HidePopups() override; 235 void HidePopups() override;
236 void SetPageOverlayColor(WebColor) override; 236 void SetPageOverlayColor(WebColor) override;
237 WebPageImportanceSignals* PageImportanceSignals() override; 237 WebPageImportanceSignals* PageImportanceSignals() override;
238 void TransferActiveWheelFlingAnimation( 238 void TransferActiveWheelFlingAnimation(
239 const WebActiveWheelFlingParameters&) override; 239 const WebActiveWheelFlingParameters&) override;
240 bool EndActiveFlingAnimation() override; 240 bool EndActiveFlingAnimation() override;
241 bool IsFlinging() const override { return !!gesture_animation_.get(); } 241 bool IsFlinging() const override { return !!gesture_animation_.get(); }
242 void SetShowPaintRects(bool) override; 242 void SetShowPaintRects(bool) override;
243 void SetShowDebugBorders(bool) override; 243 void SetShowDebugBorders(bool) override;
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; 743 Persistent<ResizeViewportAnchor> resize_viewport_anchor_;
744 }; 744 };
745 745
746 // We have no ways to check if the specified WebView is an instance of 746 // We have no ways to check if the specified WebView is an instance of
747 // WebViewImpl because WebViewImpl is the only implementation of WebView. 747 // WebViewImpl because WebViewImpl is the only implementation of WebView.
748 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 748 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
749 749
750 } // namespace blink 750 } // namespace blink
751 751
752 #endif 752 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698