OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 void cancelPendingScopingEffort() override; | 236 void cancelPendingScopingEffort() override; |
237 void increaseMatchCount(int count, int identifier) override; | 237 void increaseMatchCount(int count, int identifier) override; |
238 void resetMatchCount() override; | 238 void resetMatchCount() override; |
239 int findMatchMarkersVersion() const override; | 239 int findMatchMarkersVersion() const override; |
240 WebFloatRect activeFindMatchRect() override; | 240 WebFloatRect activeFindMatchRect() override; |
241 void findMatchRects(WebVector<WebFloatRect>&) override; | 241 void findMatchRects(WebVector<WebFloatRect>&) override; |
242 int selectNearestFindMatch(const WebFloatPoint&, WebRect* selectionRect) ove
rride; | 242 int selectNearestFindMatch(const WebFloatPoint&, WebRect* selectionRect) ove
rride; |
243 float distanceToNearestFindMatch(const WebFloatPoint&) override; | 243 float distanceToNearestFindMatch(const WebFloatPoint&) override; |
244 void setTickmarks(const WebVector<WebRect>&) override; | 244 void setTickmarks(const WebVector<WebRect>&) override; |
245 WebFrameWidget* frameWidget() const override; | 245 WebFrameWidget* frameWidget() const override; |
| 246 void copyImageAt(const WebPoint&) override; |
| 247 void saveImageAt(const WebPoint&) override; |
246 void clearActiveFindMatch() override; | 248 void clearActiveFindMatch() override; |
247 | 249 |
248 // WebFrameImplBase methods: | 250 // WebFrameImplBase methods: |
249 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name,
const AtomicString& uniqueName) override; | 251 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name,
const AtomicString& uniqueName) override; |
250 LocalFrame* frame() const override { return m_frame.get(); } | 252 LocalFrame* frame() const override { return m_frame.get(); } |
251 | 253 |
252 void willBeDetached(); | 254 void willBeDetached(); |
253 void willDetachParent(); | 255 void willDetachParent(); |
254 | 256 |
255 static WebLocalFrameImpl* create(WebTreeScopeType, WebFrameClient*, WebFrame
* opener); | 257 static WebLocalFrameImpl* create(WebTreeScopeType, WebFrameClient*, WebFrame
* opener); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 bool isWebLocalFrame() const override; | 345 bool isWebLocalFrame() const override; |
344 WebLocalFrame* toWebLocalFrame() override; | 346 WebLocalFrame* toWebLocalFrame() override; |
345 bool isWebRemoteFrame() const override; | 347 bool isWebRemoteFrame() const override; |
346 WebRemoteFrame* toWebRemoteFrame() override; | 348 WebRemoteFrame* toWebRemoteFrame() override; |
347 | 349 |
348 // Sets the local core frame and registers destruction observers. | 350 // Sets the local core frame and registers destruction observers. |
349 void setCoreFrame(LocalFrame*); | 351 void setCoreFrame(LocalFrame*); |
350 | 352 |
351 void loadJavaScriptURL(const KURL&); | 353 void loadJavaScriptURL(const KURL&); |
352 | 354 |
| 355 HitTestResult hitTestResultForVisualViewportPos(const IntPoint&); |
| 356 |
353 WebPlugin* focusedPluginIfInputMethodSupported(); | 357 WebPlugin* focusedPluginIfInputMethodSupported(); |
354 ScrollableArea* layoutViewportScrollableArea() const; | 358 ScrollableArea* layoutViewportScrollableArea() const; |
355 | 359 |
356 // Returns true if the frame is focused. | 360 // Returns true if the frame is focused. |
357 bool isFocused() const; | 361 bool isFocused() const; |
358 | 362 |
359 Member<FrameLoaderClientImpl> m_frameLoaderClientImpl; | 363 Member<FrameLoaderClientImpl> m_frameLoaderClientImpl; |
360 | 364 |
361 // The embedder retains a reference to the WebCore LocalFrame while it is ac
tive in the DOM. This | 365 // The embedder retains a reference to the WebCore LocalFrame while it is ac
tive in the DOM. This |
362 // reference is released when the frame is removed from the DOM or the entir
e page is closed. | 366 // reference is released when the frame is removed from the DOM or the entir
e page is closed. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 // Accomplish that by keeping a self-referential Persistent<>. It is | 398 // Accomplish that by keeping a self-referential Persistent<>. It is |
395 // cleared upon close(). | 399 // cleared upon close(). |
396 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; | 400 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; |
397 }; | 401 }; |
398 | 402 |
399 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); | 403 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); |
400 | 404 |
401 } // namespace blink | 405 } // namespace blink |
402 | 406 |
403 #endif | 407 #endif |
OLD | NEW |