OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebLocalFrame_h | 5 #ifndef WebLocalFrame_h |
6 #define WebLocalFrame_h | 6 #define WebLocalFrame_h |
7 | 7 |
8 #include "WebFrame.h" | 8 #include "WebFrame.h" |
9 #include "WebFrameLoadType.h" | 9 #include "WebFrameLoadType.h" |
10 | 10 |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 | 328 |
329 // Context menu ----------------------------------------------------------- | 329 // Context menu ----------------------------------------------------------- |
330 | 330 |
331 // Returns the node that the context menu opened over. | 331 // Returns the node that the context menu opened over. |
332 virtual WebNode contextMenuNode() const = 0; | 332 virtual WebNode contextMenuNode() const = 0; |
333 | 333 |
334 // Returns the WebFrameWidget associated with this frame if there is one or | 334 // Returns the WebFrameWidget associated with this frame if there is one or |
335 // nullptr otherwise. | 335 // nullptr otherwise. |
336 virtual WebWidget* frameWidget() const = 0; | 336 virtual WebWidget* frameWidget() const = 0; |
337 | 337 |
| 338 // Copy to the clipboard the image located at a particular point in visual |
| 339 // viewport coordinates. |
| 340 virtual void copyImageAt(const WebPoint&) = 0; |
| 341 |
| 342 // Save as the image located at a particular point in visual viewport |
| 343 // coordinates. |
| 344 virtual void saveImageAt(const WebPoint&) = 0; |
| 345 |
338 protected: | 346 protected: |
339 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } | 347 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } |
340 | 348 |
341 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 349 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
342 // to call these on a WebLocalFrame. | 350 // to call these on a WebLocalFrame. |
343 bool isWebLocalFrame() const override = 0; | 351 bool isWebLocalFrame() const override = 0; |
344 WebLocalFrame* toWebLocalFrame() override = 0; | 352 WebLocalFrame* toWebLocalFrame() override = 0; |
345 bool isWebRemoteFrame() const override = 0; | 353 bool isWebRemoteFrame() const override = 0; |
346 WebRemoteFrame* toWebRemoteFrame() override = 0; | 354 WebRemoteFrame* toWebRemoteFrame() override = 0; |
347 }; | 355 }; |
348 | 356 |
349 } // namespace blink | 357 } // namespace blink |
350 | 358 |
351 #endif // WebLocalFrame_h | 359 #endif // WebLocalFrame_h |
OLD | NEW |