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

Side by Side Diff: components/guest_view/browser/guest_view_base.cc

Issue 1560553002: Framelet Prototype 2016 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + Applied Brett's Windows + Fixed security issue Created 4 years, 11 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 // 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 #include "components/guest_view/browser/guest_view_base.h" 5 #include "components/guest_view/browser/guest_view_base.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 while (GuestViewBase* guest = FromWebContents(web_contents)) 369 while (GuestViewBase* guest = FromWebContents(web_contents))
370 web_contents = guest->owner_web_contents(); 370 web_contents = guest->owner_web_contents();
371 return web_contents; 371 return web_contents;
372 } 372 }
373 373
374 // static 374 // static
375 bool GuestViewBase::IsGuest(WebContents* web_contents) { 375 bool GuestViewBase::IsGuest(WebContents* web_contents) {
376 return !!GuestViewBase::FromWebContents(web_contents); 376 return !!GuestViewBase::FromWebContents(web_contents);
377 } 377 }
378 378
379 bool GuestViewBase::OnMessageReceivedFromEmbedder(const IPC::Message& message) {
380 return false;
381 }
382
379 bool GuestViewBase::IsAutoSizeSupported() const { 383 bool GuestViewBase::IsAutoSizeSupported() const {
380 return false; 384 return false;
381 } 385 }
382 386
383 bool GuestViewBase::IsPreferredSizeModeEnabled() const { 387 bool GuestViewBase::IsPreferredSizeModeEnabled() const {
384 return false; 388 return false;
385 } 389 }
386 390
387 bool GuestViewBase::ZoomPropagatesFromEmbedderToGuest() const { 391 bool GuestViewBase::ZoomPropagatesFromEmbedderToGuest() const {
388 return true; 392 return true;
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 891
888 void GuestViewBase::UpdateGuestSize(const gfx::Size& new_size, 892 void GuestViewBase::UpdateGuestSize(const gfx::Size& new_size,
889 bool due_to_auto_resize) { 893 bool due_to_auto_resize) {
890 if (due_to_auto_resize) 894 if (due_to_auto_resize)
891 GuestSizeChangedDueToAutoSize(guest_size_, new_size); 895 GuestSizeChangedDueToAutoSize(guest_size_, new_size);
892 DispatchOnResizeEvent(guest_size_, new_size); 896 DispatchOnResizeEvent(guest_size_, new_size);
893 guest_size_ = new_size; 897 guest_size_ = new_size;
894 } 898 }
895 899
896 } // namespace guest_view 900 } // namespace guest_view
OLDNEW
« no previous file with comments | « components/guest_view/browser/guest_view_base.h ('k') | components/guest_view/browser/guest_view_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698