| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/browser/media/capture/web_contents_tracker.h" | 5 #include "content/browser/media/capture/web_contents_tracker.h" |
| 6 | 6 |
| 7 #include "base/thread_task_runner_handle.h" | 7 #include "base/thread_task_runner_handle.h" |
| 8 #include "content/browser/frame_host/render_frame_host_impl.h" | 8 #include "content/browser/frame_host/render_frame_host_impl.h" |
| 9 #include "content/browser/renderer_host/render_widget_host_impl.h" | 9 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 task_runner_->PostTask( | 156 task_runner_->PostTask( |
| 157 FROM_HERE, | 157 FROM_HERE, |
| 158 base::Bind(&WebContentsTracker::MaybeDoResizeCallback, this)); | 158 base::Bind(&WebContentsTracker::MaybeDoResizeCallback, this)); |
| 159 } | 159 } |
| 160 | 160 |
| 161 void WebContentsTracker::WebContentsDestroyed() { | 161 void WebContentsTracker::WebContentsDestroyed() { |
| 162 Observe(NULL); | 162 Observe(NULL); |
| 163 OnPossibleTargetChange(false); | 163 OnPossibleTargetChange(false); |
| 164 } | 164 } |
| 165 | 165 |
| 166 void WebContentsTracker::DidShowFullscreenWidget(int routing_id) { | 166 void WebContentsTracker::DidShowFullscreenWidget() { |
| 167 OnPossibleTargetChange(false); | 167 OnPossibleTargetChange(false); |
| 168 } | 168 } |
| 169 | 169 |
| 170 void WebContentsTracker::DidDestroyFullscreenWidget(int routing_id) { | 170 void WebContentsTracker::DidDestroyFullscreenWidget() { |
| 171 OnPossibleTargetChange(false); | 171 OnPossibleTargetChange(false); |
| 172 } | 172 } |
| 173 | 173 |
| 174 } // namespace content | 174 } // namespace content |
| OLD | NEW |