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

Side by Side Diff: chromecast/browser/android/cast_window_android.cc

Issue 1153813003: Add user_gesture param to WebContentsDelegate::ActivateContents Base URL: https://chromium.googlesource.com/chromium/src.git@ug1_WebContentsImpl_Activate
Patch Set: Update callers Created 5 years, 7 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 "chromecast/browser/android/cast_window_android.h" 5 #include "chromecast/browser/android/cast_window_android.h"
6 6
7 #include "base/single_thread_task_runner.h" 7 #include "base/single_thread_task_runner.h"
8 #include "base/thread_task_runner_handle.h" 8 #include "base/thread_task_runner_handle.h"
9 #include "chromecast/browser/android/cast_window_manager.h" 9 #include "chromecast/browser/android/cast_window_manager.h"
10 #include "chromecast/browser/cast_content_window.h" 10 #include "chromecast/browser/cast_content_window.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 } 137 }
138 138
139 bool CastWindowAndroid::AddMessageToConsole(content::WebContents* source, 139 bool CastWindowAndroid::AddMessageToConsole(content::WebContents* source,
140 int32 level, 140 int32 level,
141 const base::string16& message, 141 const base::string16& message,
142 int32 line_no, 142 int32 line_no,
143 const base::string16& source_id) { 143 const base::string16& source_id) {
144 return false; 144 return false;
145 } 145 }
146 146
147 void CastWindowAndroid::ActivateContents(content::WebContents* contents) { 147 void CastWindowAndroid::ActivateContents(content::WebContents* contents,
148 bool user_gesture) {
148 DCHECK_EQ(contents, web_contents_.get()); 149 DCHECK_EQ(contents, web_contents_.get());
149 contents->GetRenderViewHost()->Focus(); 150 contents->GetRenderViewHost()->Focus();
150 } 151 }
151 152
152 void CastWindowAndroid::DeactivateContents(content::WebContents* contents) { 153 void CastWindowAndroid::DeactivateContents(content::WebContents* contents) {
153 DCHECK_EQ(contents, web_contents_.get()); 154 DCHECK_EQ(contents, web_contents_.get());
154 contents->GetRenderViewHost()->Blur(); 155 contents->GetRenderViewHost()->Blur();
155 } 156 }
156 157
157 void CastWindowAndroid::RenderProcessGone(base::TerminationStatus status) { 158 void CastWindowAndroid::RenderProcessGone(base::TerminationStatus status) {
158 LOG(ERROR) << "Render process gone: status=" << status; 159 LOG(ERROR) << "Render process gone: status=" << status;
159 Destroy(); 160 Destroy();
160 } 161 }
161 162
162 } // namespace shell 163 } // namespace shell
163 } // namespace chromecast 164 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/android/cast_window_android.h ('k') | components/guest_view/browser/guest_view_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698