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

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

Issue 566963003: Chromecast Android shell improvements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: style nits Created 6 years, 3 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/shell/browser/android/cast_window_android.h" 5 #include "chromecast/shell/browser/android/cast_window_android.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "chromecast/shell/browser/android/cast_window_manager.h" 9 #include "chromecast/shell/browser/android/cast_window_manager.h"
10 #include "content/public/browser/devtools_agent_host.h" 10 #include "content/public/browser/devtools_agent_host.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 void CastWindowAndroid::ActivateContents(content::WebContents* contents) { 119 void CastWindowAndroid::ActivateContents(content::WebContents* contents) {
120 DCHECK_EQ(contents, web_contents_.get()); 120 DCHECK_EQ(contents, web_contents_.get());
121 contents->GetRenderViewHost()->Focus(); 121 contents->GetRenderViewHost()->Focus();
122 } 122 }
123 123
124 void CastWindowAndroid::DeactivateContents(content::WebContents* contents) { 124 void CastWindowAndroid::DeactivateContents(content::WebContents* contents) {
125 DCHECK_EQ(contents, web_contents_.get()); 125 DCHECK_EQ(contents, web_contents_.get());
126 contents->GetRenderViewHost()->Blur(); 126 contents->GetRenderViewHost()->Blur();
127 } 127 }
128 128
129 void CastWindowAndroid::RenderProcessGone(base::TerminationStatus status) {
130 LOG(ERROR) << "Render process gone: status=" << status;
131 Close();
132 }
133
129 } // namespace shell 134 } // namespace shell
130 } // namespace chromecast 135 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/shell/browser/android/cast_window_android.h ('k') | chromecast/shell/browser/android/cast_window_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698