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

Side by Side Diff: Source/web/WebFrameImpl.h

Issue 135163006: WebFrame exports size information for remote frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Resolved merge conflict with master Created 6 years, 10 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
« no previous file with comments | « no previous file | Source/web/WebFrameImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 : public WebFrame 74 : public WebFrame
75 , public RefCounted<WebFrameImpl> { 75 , public RefCounted<WebFrameImpl> {
76 public: 76 public:
77 // WebFrame methods: 77 // WebFrame methods:
78 virtual void close() OVERRIDE; 78 virtual void close() OVERRIDE;
79 virtual WebString uniqueName() const OVERRIDE; 79 virtual WebString uniqueName() const OVERRIDE;
80 virtual WebString assignedName() const OVERRIDE; 80 virtual WebString assignedName() const OVERRIDE;
81 virtual void setName(const WebString&) OVERRIDE; 81 virtual void setName(const WebString&) OVERRIDE;
82 virtual long long embedderIdentifier() const OVERRIDE; 82 virtual long long embedderIdentifier() const OVERRIDE;
83 virtual WebVector<WebIconURL> iconURLs(int iconTypesMask) const OVERRIDE; 83 virtual WebVector<WebIconURL> iconURLs(int iconTypesMask) const OVERRIDE;
84 virtual void setIsRemote(bool) OVERRIDE;
84 virtual void setRemoteWebLayer(WebLayer*) OVERRIDE; 85 virtual void setRemoteWebLayer(WebLayer*) OVERRIDE;
85 virtual void setPermissionClient(WebPermissionClient*) OVERRIDE; 86 virtual void setPermissionClient(WebPermissionClient*) OVERRIDE;
86 virtual void setSharedWorkerRepositoryClient(WebSharedWorkerRepositoryClient *) OVERRIDE; 87 virtual void setSharedWorkerRepositoryClient(WebSharedWorkerRepositoryClient *) OVERRIDE;
87 virtual WebSize scrollOffset() const OVERRIDE; 88 virtual WebSize scrollOffset() const OVERRIDE;
88 virtual void setScrollOffset(const WebSize&) OVERRIDE; 89 virtual void setScrollOffset(const WebSize&) OVERRIDE;
89 virtual WebSize minimumScrollOffset() const OVERRIDE; 90 virtual WebSize minimumScrollOffset() const OVERRIDE;
90 virtual WebSize maximumScrollOffset() const OVERRIDE; 91 virtual WebSize maximumScrollOffset() const OVERRIDE;
91 virtual WebSize contentsSize() const OVERRIDE; 92 virtual WebSize contentsSize() const OVERRIDE;
92 virtual bool hasVisibleContent() const OVERRIDE; 93 virtual bool hasVisibleContent() const OVERRIDE;
93 virtual WebRect visibleContentRect() const OVERRIDE; 94 virtual WebRect visibleContentRect() const OVERRIDE;
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 } 434 }
434 435
435 FrameLoaderClientImpl m_frameLoaderClientImpl; 436 FrameLoaderClientImpl m_frameLoaderClientImpl;
436 }; 437 };
437 RefPtr<WebFrameInit> m_frameInit; 438 RefPtr<WebFrameInit> m_frameInit;
438 439
439 // The embedder retains a reference to the WebCore Frame while it is active in the DOM. This 440 // The embedder retains a reference to the WebCore Frame while it is active in the DOM. This
440 // reference is released when the frame is removed from the DOM or the entir e page is closed. 441 // reference is released when the frame is removed from the DOM or the entir e page is closed.
441 RefPtr<WebCore::Frame> m_frame; 442 RefPtr<WebCore::Frame> m_frame;
442 443
444 // Indicate whether the current Frame is local or remote. Remote frames are
445 // rendered in a different process from their parent frames.
446 bool m_isRemote;
447
443 WebFrameClient* m_client; 448 WebFrameClient* m_client;
444 WebPermissionClient* m_permissionClient; 449 WebPermissionClient* m_permissionClient;
445 OwnPtr<SharedWorkerRepositoryClientImpl> m_sharedWorkerRepositoryClient; 450 OwnPtr<SharedWorkerRepositoryClientImpl> m_sharedWorkerRepositoryClient;
446 451
447 // A way for the main frame to keep track of which frame has an active 452 // A way for the main frame to keep track of which frame has an active
448 // match. Should be 0 for all other frames. 453 // match. Should be 0 for all other frames.
449 WebFrameImpl* m_currentActiveMatchFrame; 454 WebFrameImpl* m_currentActiveMatchFrame;
450 455
451 // The range of the active match for the current frame. 456 // The range of the active match for the current frame.
452 RefPtr<WebCore::Range> m_activeMatch; 457 RefPtr<WebCore::Range> m_activeMatch;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 // Stores the additional input events offset and scale when device metrics e mulation is enabled. 529 // Stores the additional input events offset and scale when device metrics e mulation is enabled.
525 WebCore::IntSize m_inputEventsOffsetForEmulation; 530 WebCore::IntSize m_inputEventsOffsetForEmulation;
526 float m_inputEventsScaleFactorForEmulation; 531 float m_inputEventsScaleFactorForEmulation;
527 }; 532 };
528 533
529 DEFINE_TYPE_CASTS(WebFrameImpl, WebFrame, frame, true, true); 534 DEFINE_TYPE_CASTS(WebFrameImpl, WebFrame, frame, true, true);
530 535
531 } // namespace blink 536 } // namespace blink
532 537
533 #endif 538 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698