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

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

Issue 1345343003: Remove lots of old blur plumbing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase. Created 5 years, 2 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 "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "components/guest_view/browser/guest_view_event.h" 9 #include "components/guest_view/browser/guest_view_event.h"
10 #include "components/guest_view/browser/guest_view_manager.h" 10 #include "components/guest_view/browser/guest_view_manager.h"
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 } 582 }
583 583
584 void GuestViewBase::ActivateContents(WebContents* web_contents) { 584 void GuestViewBase::ActivateContents(WebContents* web_contents) {
585 if (!attached() || !embedder_web_contents()->GetDelegate()) 585 if (!attached() || !embedder_web_contents()->GetDelegate())
586 return; 586 return;
587 587
588 embedder_web_contents()->GetDelegate()->ActivateContents( 588 embedder_web_contents()->GetDelegate()->ActivateContents(
589 embedder_web_contents()); 589 embedder_web_contents());
590 } 590 }
591 591
592 void GuestViewBase::DeactivateContents(WebContents* web_contents) {
593 if (!attached() || !embedder_web_contents()->GetDelegate())
594 return;
595
596 embedder_web_contents()->GetDelegate()->DeactivateContents(
597 embedder_web_contents());
598 }
599
600 void GuestViewBase::ContentsMouseEvent(WebContents* source, 592 void GuestViewBase::ContentsMouseEvent(WebContents* source,
601 const gfx::Point& location, 593 const gfx::Point& location,
602 bool motion) { 594 bool motion) {
603 if (!attached() || !embedder_web_contents()->GetDelegate()) 595 if (!attached() || !embedder_web_contents()->GetDelegate())
604 return; 596 return;
605 597
606 embedder_web_contents()->GetDelegate()->ContentsMouseEvent( 598 embedder_web_contents()->GetDelegate()->ContentsMouseEvent(
607 embedder_web_contents(), location, motion); 599 embedder_web_contents(), location, motion);
608 } 600 }
609 601
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 864
873 void GuestViewBase::UpdateGuestSize(const gfx::Size& new_size, 865 void GuestViewBase::UpdateGuestSize(const gfx::Size& new_size,
874 bool due_to_auto_resize) { 866 bool due_to_auto_resize) {
875 if (due_to_auto_resize) 867 if (due_to_auto_resize)
876 GuestSizeChangedDueToAutoSize(guest_size_, new_size); 868 GuestSizeChangedDueToAutoSize(guest_size_, new_size);
877 DispatchOnResizeEvent(guest_size_, new_size); 869 DispatchOnResizeEvent(guest_size_, new_size);
878 guest_size_ = new_size; 870 guest_size_ = new_size;
879 } 871 }
880 872
881 } // namespace guest_view 873 } // namespace guest_view
OLDNEW
« no previous file with comments | « components/guest_view/browser/guest_view_base.h ('k') | components/test_runner/web_test_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698